:root {
    --azul-oscuro: #0d1b2a;
    --azul-medio: #1b2d45;
    --azul-acento: #1e6fa8;
    --naranja: #e67e22;
    --texto-claro: #f0f4f8;
    --texto-gris: #a0aec0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: #fff;
    color: #2d3748;
}

/* ── Navbar ── */
.navbar {
    background: var(--azul-oscuro);
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand span { color: var(--naranja); }

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 0.2rem;
}

.navbar-nav a {
    color: var(--texto-gris);
    text-decoration: none;
    padding: 0.5rem 0.9rem;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: color 0.2s, background 0.2s;
}

.navbar-nav a:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

/* ── Hero ── */
.hero {
    background: linear-gradient(135deg, var(--azul-oscuro) 0%, var(--azul-medio) 60%, #163050 100%);
    color: #fff;
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231e6fa8' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content { position: relative; max-width: 800px; margin: 0 auto; }

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero h1 span { color: var(--naranja); }

.hero p {
    font-size: 1.15rem;
    color: var(--texto-gris);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.btn-hero {
    display: inline-block;
    background: var(--naranja);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s, transform 0.2s;
    margin: 0.3rem;
}

.btn-hero:hover { background: #cf6d17; transform: translateY(-2px); }

.btn-hero.secundario {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-hero.secundario:hover { background: rgba(255,255,255,0.1); }

/* ── Secciones ── */
section { padding: 5rem 2rem; }

.container { max-width: 1100px; margin: 0 auto; }

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--azul-oscuro);
    margin-bottom: 0.5rem;
}

.section-title .linea {
    width: 60px;
    height: 4px;
    background: var(--naranja);
    margin: 0.6rem auto;
    border-radius: 2px;
}

.section-title p {
    color: #718096;
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ── Servicios ── */
#servicios { background: #f7fafc; }

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card-servicio {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.07);
    transition: transform 0.2s, box-shadow 0.2s;
    border-top: 4px solid var(--azul-acento);
}

.card-servicio:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.card-icono {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card-servicio h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--azul-oscuro);
    margin-bottom: 0.7rem;
}

.card-servicio p {
    color: #718096;
    line-height: 1.7;
    font-size: 0.95rem;
}

.tag {
    display: inline-block;
    background: #ebf4ff;
    color: var(--azul-acento);
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    margin: 0.5rem 0.2rem 0 0;
    font-weight: 500;
}

/* ── Filosofía ── */
#filosofia { background: var(--azul-oscuro); color: #fff; }

#filosofia .section-title h2 { color: #fff; }

.filosofia-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.filosofia-texto p {
    color: var(--texto-gris);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 0.98rem;
}

.filosofia-lista {
    list-style: none;
}

.filosofia-lista li {
    color: var(--texto-gris);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.95rem;
}

.filosofia-lista li::before {
    content: '▸';
    color: var(--naranja);
    font-size: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
}

.stat-card .numero {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--naranja);
}

.stat-card .etiqueta {
    color: var(--texto-gris);
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

/* ── Tecnologías ── */
#tecnologias { background: #fff; }

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.tech-badge {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--azul-medio);
    transition: border-color 0.2s, color 0.2s;
}

.tech-badge:hover {
    border-color: var(--azul-acento);
    color: var(--azul-acento);
}

/* ── Contacto ── */
#contacto { background: #f7fafc; }

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contacto-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--azul-oscuro);
    margin-bottom: 1.5rem;
}

.contacto-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
    align-items: flex-start;
}

.contacto-icono {
    font-size: 1.4rem;
    min-width: 2rem;
}

.contacto-item p { color: #718096; line-height: 1.6; font-size: 0.95rem; }
.contacto-item strong { color: var(--azul-oscuro); display: block; margin-bottom: 0.2rem; }

.form-contacto { display: flex; flex-direction: column; gap: 1rem; }

.form-contacto input,
.form-contacto textarea {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
    outline: none;
}

.form-contacto input:focus,
.form-contacto textarea:focus { border-color: var(--azul-acento); }

.form-contacto textarea { resize: vertical; min-height: 130px; }

.btn-enviar {
    background: var(--azul-acento);
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-enviar:hover { background: #1558a0; }

/* ── Footer ── */
footer {
    background: var(--azul-oscuro);
    color: var(--texto-gris);
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}

footer a { color: var(--naranja); text-decoration: none; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .filosofia-grid,
    .contacto-grid { grid-template-columns: 1fr; gap: 2rem; }
    .navbar-nav { display: none; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}
