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

:root {
    --blue:    #1d4ed8;
    --blue-dk: #0f2451;
    --blue-md: #1e3a5f;
    --blue-lt: #3b82f6;
    --sky:     #60a5fa;
    --bg:      #f0f4f8;
    --white:   #ffffff;
    --text:    #1e293b;
    --muted:   #64748b;
    --border:  #e2e8f0;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

/* ── NAVBAR ── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(12, 31, 74, 0.97);
    backdrop-filter: blur(10px);
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.nav-logo .monogram {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--blue);
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.nav-logo .brand {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
}
.nav-logo .brand small {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.65;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}
.nav-links a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.83rem;
    padding: 6px 11px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: white; background: rgba(255,255,255,0.1); }

.nav-cta {
    background: var(--blue);
    color: white !important;
    padding: 7px 16px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
}
.nav-cta:hover { background: var(--blue-lt) !important; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}
.hamburger span {
    display: block;
    width: 22px; height: 2px;
    background: white;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--blue-dk);
    padding: 16px 20px 24px;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
    display: block;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 0.95rem;
}
.mobile-menu a:last-child { border: none; }
.mobile-cta-wrap { margin-top: 16px; }
.mobile-cta-wrap a {
    display: block;
    text-align: center;
    background: var(--blue);
    color: white !important;
    padding: 12px !important;
    border-radius: 8px;
    font-weight: 600;
    border: none !important;
}

/* ── HERO ── */
#home {
    min-height: 100vh;
    background: linear-gradient(150deg, #080e26 0%, #0f2451 40%, #1d4ed8 80%, #3b82f6 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 24px 60px;
    position: relative;
    overflow: hidden;
}
#home::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(255,255,255,0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(59,130,246,0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9);
    padding: 6px 18px;
    border-radius: 24px;
    font-size: 0.8rem;
    margin-bottom: 28px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    color: white;
    line-height: 1.15;
    max-width: 700px;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}
.hero-title span { color: var(--sky); }

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.75);
    max-width: 520px;
    line-height: 1.65;
    margin-bottom: 38px;
}

.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #22c55e;
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 0.97rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(34,197,94,0.35); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.3);
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 0.97rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.2); }

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
    justify-content: center;
}
.hero-stat {
    text-align: center;
    color: white;
}
.hero-stat .num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--sky);
    line-height: 1;
}
.hero-stat .lbl {
    font-size: 0.78rem;
    opacity: 0.7;
    margin-top: 4px;
}

/* ── SECTIONS SHARED ── */
.section { padding: 80px 24px; }
.section-inner { max-width: 960px; margin: 0 auto; }

.section-label {
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 10px;
}
.section-title {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--blue-md);
    margin-bottom: 12px;
}
.section-sub {
    text-align: center;
    color: var(--muted);
    max-width: 540px;
    margin: 0 auto 44px;
    font-size: 0.95rem;
    line-height: 1.65;
}
.divider {
    width: 44px; height: 3px;
    background: var(--blue);
    border-radius: 2px;
    margin: 0 auto 44px;
}

/* ── SOBRE MÍ ── */
#sobremi { background: white; }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-photo-wrap {
    position: relative;
}
.about-photo {
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: 16px;
    background: linear-gradient(150deg, var(--bg) 0%, #dbeafe 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    gap: 12px;
    font-size: 0.85rem;
    border: 2px dashed var(--border);
    overflow: hidden;
}
.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}
.about-photo i { font-size: 3rem; opacity: 0.3; }

.about-badge {
    position: absolute;
    bottom: -16px; right: -16px;
    background: var(--blue);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(29,78,216,0.35);
}
.about-badge .big { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.about-badge .sm  { font-size: 0.72rem; opacity: 0.85; margin-top: 3px; }

.about-content h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--blue-md);
    margin-bottom: 16px;
    line-height: 1.3;
}
.about-content p {
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 14px;
    font-size: 0.96rem;
}
.about-content .highlight {
    font-style: italic;
    color: var(--blue-md);
    font-size: 1.05rem;
    border-left: 3px solid var(--blue);
    padding-left: 16px;
    margin: 24px 0;
}

.about-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 24px;
}
.pill {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #eff6ff;
    color: var(--blue-md);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
}
.pill i { color: var(--blue); font-size: 0.78rem; }

/* ── SERVICIOS ── */
#servicios { background: var(--bg); }

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
}
.servicio-card {
    background: white;
    border-radius: 14px;
    padding: 30px 22px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}
.servicio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(29,78,216,0.12);
}
.servicio-icon {
    width: 60px; height: 60px;
    border-radius: 14px;
    background: #eff6ff;
    color: var(--blue);
    font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}
.servicio-icon img {
    width: 30px; height: 30px;
    object-fit: contain;
}
.servicio-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--blue-md);
    margin-bottom: 8px;
}
.servicio-card p {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.55;
}

/* ── COBERTURAS ── */
#coberturas { background: white; }

.coberturas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.cobertura-card {
    border-radius: 12px;
    padding: 22px 18px;
    text-align: center;
    border: 1.5px solid var(--border);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    cursor: default;
}
.cobertura-card:hover {
    border-color: var(--blue);
    box-shadow: 0 6px 20px rgba(29,78,216,0.1);
    transform: translateY(-3px);
}
.cobertura-icon {
    font-size: 1.8rem;
    color: var(--blue);
    margin-bottom: 10px;
}
.cobertura-icon img {
    display: block;
    width: 32px; height: 32px;
    object-fit: contain;
    margin: 0 auto;
}
.cobertura-card h3 {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--blue-md);
    margin-bottom: 5px;
}
.cobertura-card p {
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.5;
}

/* ── COMPAÑÍAS ── */
#companias {
    background: linear-gradient(150deg, #0a1a3d 0%, #1d4ed8 100%);
}
#companias .section-title { color: white; }
#companias .section-sub   { color: rgba(255,255,255,0.65); }
#companias .divider       { background: var(--sky); }

.companias-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 13px;
}
.compania-pill {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.22);
    color: white;
    padding: 10px 24px;
    border-radius: 28px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
}
.compania-pill:hover { background: rgba(255,255,255,0.2); }

.ssn-note {
    text-align: center;
    margin-top: 36px;
    color: rgba(255,255,255,0.5);
    font-size: 0.78rem;
}
.ssn-note a { color: var(--sky); text-decoration: none; }
.ssn-note a:hover { text-decoration: underline; }

/* ── FAQ ── */
#faq { background: var(--bg); }

.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.faq-q {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--blue-md);
    transition: background 0.2s;
}
.faq-q:hover { background: #f8fafc; }
.faq-q .faq-icon {
    flex-shrink: 0;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: #eff6ff;
    color: var(--blue);
    font-size: 0.7rem;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s;
}
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 24px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
}
.faq-item.open .faq-a {
    max-height: 300px;
    padding: 0 24px 20px;
}

/* ── CONTACTO ── */
#contacto { background: white; }

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--blue-md);
    margin-bottom: 8px;
}
.contact-info > p {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 28px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text);
    padding: 14px 18px;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-item:hover {
    border-color: var(--blue);
    box-shadow: 0 4px 16px rgba(29,78,216,0.1);
}
.contact-item .ci-icon {
    width: 42px; height: 42px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.ci-wa   { background: #dcfce7; color: #16a34a; }
.ci-mail { background: #dbeafe; color: var(--blue); }
.ci-web  { background: #f1f5f9; color: var(--blue-md); }
.ci-address { background: #fef3c7; color: #b45309; }
.contact-item .ci-text small { display: block; font-size: 0.75rem; color: var(--muted); }
.contact-item .ci-text strong { font-size: 0.9rem; }

.horario-note {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--muted);
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 10px;
}
.horario-note i { color: var(--blue); }

/* FORM */
.contact-form h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--blue-md);
    margin-bottom: 22px;
}
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text);
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(29,78,216,0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.btn-form {
    width: 100%;
    padding: 13px;
    background: var(--blue);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 4px;
    transition: background 0.2s, transform 0.15s;
}
.btn-form:hover { background: #1a44c2; transform: translateY(-1px); }

#form-msg {
    display: none;
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.87rem;
    text-align: center;
}
#form-msg.ok   { background: #dcfce7; color: #15803d; }
#form-msg.err  { background: #fee2e2; color: #b91c1c; }

/* ── SOCIAL ROW ── */
.social-strip {
    background: var(--blue-dk);
    padding: 24px;
    text-align: center;
}
.social-strip p {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    margin-bottom: 14px;
}
.s-row { display: flex; gap: 12px; justify-content: center; }
.s-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem;
    text-decoration: none;
    transition: transform 0.2s;
}
.s-btn:hover { transform: scale(1.12); }
.s-ig { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: white; }
.s-fb { background: #1877f2; color: white; }
.s-li { background: #0a66c2; color: white; }

/* ── FOOTER ── */
footer {
    background: #070f1f;
    color: rgba(255,255,255,0.35);
    text-align: center;
    padding: 28px 20px;
    font-size: 0.78rem;
    line-height: 1.8;
}
footer strong { color: rgba(255,255,255,0.55); font-weight: 500; }
footer a { color: rgba(96,165,250,0.7); text-decoration: none; }
footer a:hover { color: var(--sky); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .about-grid   { grid-template-columns: 1fr; }
    .about-photo  { aspect-ratio: 3/2; }
    .about-badge  { bottom: -12px; right: 12px; }
    .contacto-grid { grid-template-columns: 1fr; gap: 40px; }
    .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
    .coberturas-grid { grid-template-columns: repeat(2,1fr); }
    .hero-stats { gap: 24px; }
}
