/* ==========================================
   NEVES ASESORÍA SEGUROS — Main Stylesheet
   ========================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* Brand colors */
    --primary: #1a56db;
    --primary-dark: #1340a8;
    --primary-light: #e8eefb;
    --accent: #0ea5e9;
    --accent-light: #e0f2fe;

    /* Neutrals */
    --dark: #0f172a;
    --dark-soft: #1e293b;
    --gray-700: #334155;
    --gray-500: #64748b;
    --gray-300: #cbd5e1;
    --gray-100: #f1f5f9;
    --white: #ffffff;

    /* Feedback */
    --success: #16a34a;
    --error: #dc2626;

    /* Gradient */
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);

    /* Spacing */
    --section-py: 100px;

    /* Radius */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;

    /* Shadow */
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow: 0 4px 20px rgba(0,0,0,.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.12);

    /* Transition */
    --ease: cubic-bezier(.4,0,.2,1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color .25s var(--ease); }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Typography helpers ---------- */
.section-tag {
    display: inline-block;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark);
}

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: .95rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .3s var(--ease);
}

.btn--primary {
    background: var(--gradient);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(26,86,219,.35);
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26,86,219,.45);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,.5);
}
.btn--outline:hover {
    background: rgba(255,255,255,.1);
    border-color: var(--white);
}

.btn--white {
    background: var(--white);
    color: var(--primary);
}
.btn--white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,.2);
}

.btn--full { width: 100%; }


/* ==========================================
   HEADER
   ========================================== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all .35s var(--ease);
}

.header--scrolled {
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header__logo-icon {
    width: 70px;
    height: 70px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.header__logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header__logo-text {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--white);
    line-height: 1.3;
    transition: color .3s;
}
.header__logo-text span {
    display: block;
    font-weight: 400;
    font-size: .95rem;
    opacity: .8;
}
.header--scrolled .header__logo-text {
    color: var(--dark);
}

@media (max-width: 768px) {
    .header__logo-icon { width: 50px; height: 50px; }
    .header__logo-text { font-size: 1.1rem; }
    .header__logo-text span { font-size: .8rem; }
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header__link {
    font-size: .9rem;
    font-weight: 500;
    color: rgba(255,255,255,.9);
    position: relative;
    transition: color .25s;
}
.header__link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width .3s var(--ease);
}
.header__link:hover::after,
.header__link.active::after {
    width: 100%;
}

.header--scrolled .header__link {
    color: var(--dark);
}

.header__link--cta {
    background: var(--gradient);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
}
.header__link--cta::after { display: none; }
.header__link--cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(26,86,219,.35);
}

/* Burger */
.header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}
.header__burger span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all .3s var(--ease);
}
.header--scrolled .header__burger span {
    background: var(--dark);
}
.header__burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.header__burger.active span:nth-child(2) { opacity: 0; }
.header__burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }


/* ==========================================
   HERO
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1a56db 100%);
    z-index: -2;
}
.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(14,165,233,.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(26,86,219,.3) 0%, transparent 50%);
}

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

.hero__badge {
    display: inline-block;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 500;
    color: rgba(255,255,255,.9);
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.hero__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 20px;
}

.hero__subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,.75);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 500px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero visual - floating cards */
.hero__visual {
    position: relative;
    height: 400px;
}

.hero__card {
    position: absolute;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius);
    padding: 20px 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 8px 32px rgba(0,0,0,.1);
}
.hero__card-icon { font-size: 2rem; }
.hero__card-text { color: var(--white); font-weight: 600; font-size: .95rem; }

.hero__card--1 { top: 20%; left: 10%; animation-delay: 0s; }
.hero__card--2 { top: 45%; right: 5%; animation-delay: 2s; }
.hero__card--3 { bottom: 10%; left: 20%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.5);
    font-size: .75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.hero__scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(255,255,255,.4);
    border-bottom: 2px solid rgba(255,255,255,.4);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(8px); }
}


/* ==========================================
   STATS
   ========================================== */
.stats {
    background: var(--white);
    padding: 60px 0;
    border-bottom: 1px solid var(--gray-100);
}

.stats__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stats__item {
    text-align: center;
}

.stats__number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}
.stats__number::after {
    content: '+';
    font-size: 2rem;
}

.stats__label {
    font-size: .9rem;
    color: var(--gray-500);
    font-weight: 500;
}

.stats__divider {
    width: 1px;
    height: 50px;
    background: var(--gray-300);
}


/* ==========================================
   ABOUT
   ========================================== */
.about {
    padding: var(--section-py) 0;
    background: var(--gray-100);
}

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

.about__description {
    font-size: 1.05rem;
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 32px;
}

.about__features {
    display: grid;
    gap: 20px;
}

.about__feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.about__feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about__feature strong {
    display: block;
    margin-bottom: 2px;
    font-size: .95rem;
}

.about__feature p {
    font-size: .85rem;
    color: var(--gray-500);
    line-height: 1.5;
}

/* About image */
.about__image {
    position: relative;
}

.about__image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.about__image-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: var(--gradient);
    border-radius: var(--radius-lg);
    opacity: .15;
    z-index: 0;
}


/* ==========================================
   SERVICES
   ========================================== */
.services {
    padding: var(--section-py) 0;
    background: var(--white);
}

.services__header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px;
}

.services__subtitle {
    font-size: 1.05rem;
    color: var(--gray-500);
    line-height: 1.7;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 32px 24px;
    transition: all .35s var(--ease);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.service-card:hover::before {
    transform: scaleX(1);
}

.service-card__icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.service-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.service-card__text {
    font-size: .88rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 16px;
}

.service-card__link {
    font-size: .85rem;
    font-weight: 600;
    color: var(--primary);
    transition: gap .25s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.service-card__link:hover {
    gap: 8px;
    color: var(--primary-dark);
}


/* ==========================================
   CTA
   ========================================== */
.cta {
    padding: 80px 0;
    background: var(--gradient);
    text-align: center;
}

.cta__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: var(--white);
    margin-bottom: 16px;
}

.cta__text {
    color: rgba(255,255,255,.85);
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 auto 32px;
    line-height: 1.7;
}


/* ==========================================
   CONTACT
   ========================================== */
.contact {
    padding: var(--section-py) 0;
    background: var(--gray-100);
}

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

.contact__description {
    font-size: 1.05rem;
    color: var(--gray-500);
    margin-bottom: 32px;
    line-height: 1.7;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 28px;
}

.contact__detail {
    display: flex;
    gap: 14px;
    align-items: center;
}

.contact__detail-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact__detail-icon--whatsapp {
    background: #dcfce7;
    color: #25d366;
}

.contact__detail strong {
    display: block;
    font-size: .85rem;
    margin-bottom: 1px;
}
.contact__detail a,
.contact__detail span {
    font-size: .9rem;
    color: var(--gray-500);
}
.contact__detail a:hover {
    color: var(--primary);
}

/* Social */
.contact__social {
    display: flex;
    gap: 12px;
}
.contact__social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .25s;
    border: 1px solid var(--gray-300);
}
.contact__social-link:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Form */
.contact__form-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}

.contact__form-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 28px;
    color: var(--dark);
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    font-size: .85rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: .9rem;
    font-family: inherit;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--dark);
    transition: border-color .25s, box-shadow .25s;
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,86,219,.12);
}

.form-group textarea { resize: vertical; }

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* Checkbox */
.form-group--checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.form-group--checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--primary);
}
.form-group--checkbox label {
    font-size: .8rem;
    color: var(--gray-500);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Form message */
.form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 500;
    display: none;
}
.form-message--success {
    display: block;
    background: #f0fdf4;
    color: var(--success);
    border: 1px solid #bbf7d0;
}
.form-message--error {
    display: block;
    background: #fef2f2;
    color: var(--error);
    border: 1px solid #fecaca;
}


/* ==========================================
   MAP
   ========================================== */
.map {
    line-height: 0;
}
.map iframe {
    width: 100%;
    height: 400px;
    filter: grayscale(.3);
}


/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,.7);
    padding: 60px 0 0;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer__logo-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}
.footer__logo-icon {
    width: 48px;
    height: 48px;
    overflow: hidden;
    flex-shrink: 0;
}
.footer__logo-icon img {
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
}
.footer__logo-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
}

.footer__tagline {
    font-size: .9rem;
    line-height: 1.6;
    max-width: 280px;
}

.footer__links h4 {
    color: var(--white);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.footer__links a {
    display: block;
    font-size: .88rem;
    color: rgba(255,255,255,.6);
    padding: 5px 0;
    transition: color .25s, padding-left .25s;
}
.footer__links a:hover {
    color: var(--white);
    padding-left: 6px;
}

.footer__bottom {
    padding: 20px 0;
}
.footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .8rem;
    color: rgba(255,255,255,.4);
}
.footer__bottom a {
    color: var(--accent);
}
.footer__bottom a:hover {
    text-decoration: underline;
}


/* ==========================================
   WHATSAPP FLOAT
   ========================================== */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,.4);
    z-index: 999;
    transition: all .3s var(--ease);
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37,211,102,.55);
}


/* ==========================================
   ANIMATIONS
   ========================================== */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}


/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-py: 70px;
    }

    /* Header mobile */
    .header__burger { display: flex; }
    .header__nav {
        position: fixed;
        top: 0; right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        transition: right .35s var(--ease);
        box-shadow: -10px 0 40px rgba(0,0,0,.15);
    }
    .header__nav.open { right: 0; }
    .header__nav .header__link {
        color: var(--dark);
        font-size: 1.1rem;
    }
    .header__nav .header__link--cta {
        color: var(--white) !important;
    }

    /* Hero mobile */
    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero__subtitle { margin: 0 auto 32px; }
    .hero__actions { justify-content: center; }
    .hero__visual { display: none; }

    /* About mobile */
    .about__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about__image { order: -1; }

    /* Contact mobile */
    .contact__inner {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Stats mobile */
    .stats__inner { gap: 30px; }
    .stats__divider { display: none; }
    .stats__number { font-size: 2.2rem; }

    /* Footer mobile */
    .footer__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer__tagline { margin: 0 auto; }
    .footer__bottom-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .services__grid {
        grid-template-columns: 1fr;
    }
    .contact__form-wrapper {
        padding: 24px 20px;
    }
    .hero__title {
        font-size: 2rem;
    }
}
