@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
    --color-blue-darkest: #1A365D;
    --color-blue-primary: #254B85;
    --color-blue-gradient-start: #1e3a8a;
    --color-blue-gradient-mid: #2756a8;
    --color-blue-gradient-end: #3b82f6;
    --color-blue-button: #1E4085;

    --color-orange-cta: #E07A1F;
    --color-orange-accent: #F59E0B;
    --color-green-whatsapp: #2E8B57;

    --color-bg-light: #EEF2F8;
    --color-bg-white: #FFFFFF;
    --color-bg-cards: #FFFFFF;
    --color-gray-text: #4B5563;
    --color-divider-gray: #E5E7EB;

    --font-family-base: 'Inter', sans-serif;
    --shadow-card: 0 10px 40px rgba(26, 54, 93, 0.08);
    --shadow-card-lg: 0 20px 60px rgba(26, 54, 93, 0.12);

    --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overflow-x: hidden; }
body {
    font-family: var(--font-family-base);
    background-color: var(--color-bg-light);
    color: var(--color-gray-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    gap: 10px;
    font-family: inherit;
}

.btn-orange {
    background-color: var(--color-orange-cta);
    color: white;
    box-shadow: 0 4px 12px rgba(224, 122, 31, 0.25);
}
.btn-orange:hover { background-color: #c76715; transform: translateY(-1px); }

.btn-whatsapp-outline {
    background-color: rgba(255, 255, 255, 0.12);
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(6px);
}
.btn-whatsapp-outline:hover { background-color: rgba(255, 255, 255, 0.22); }

.btn-whatsapp-solid {
    background-color: var(--color-green-whatsapp);
    color: white;
    padding: 16px 36px;
    font-size: 16px;
    box-shadow: 0 6px 18px rgba(46, 139, 87, 0.28);
}
.btn-whatsapp-solid:hover { background-color: #247045; transform: translateY(-1px); }

.btn-blue {
    background-color: var(--color-blue-button);
    color: white;
    padding: 14px 32px;
    box-shadow: 0 4px 12px rgba(30, 64, 133, 0.25);
}
.btn-blue:hover { background-color: #152f61; transform: translateY(-1px); }

.header {
    background-color: var(--color-bg-cards);
    padding: 18px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-divider-gray);
    position: relative;
    z-index: 100;
}

.header-logo { display: flex; align-items: center; }

.logo-img {
    height: 54px;
    width: auto;
    display: block;
}

.nav-links { display: flex; gap: 32px; }

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-blue-darkest);
    padding-bottom: 6px;
    position: relative;
    transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--color-orange-cta); }

.nav-links a.active {
    color: var(--color-blue-darkest);
    font-weight: 600;
}
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-orange-cta);
    border-radius: 2px;
}

.hero-wrapper {
    position: relative;
    z-index: 1;
    overflow: visible;
}

.hero {
    position: relative;
    min-height: 520px;
    padding: 100px 5% 160px 5%;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;

    background-image:
        linear-gradient(95deg,
            rgba(30, 58, 138, 0.96) 0%,
            rgba(37, 75, 133, 0.90) 45%,
            rgba(59, 130, 246, 0.0) 75%,
            rgba(59, 130, 246, 0.0) 100%),
        url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    filter: blur(100px);
    top: -120px;
    left: -120px;
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 55%;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: var(--max-width);
}

.hero:not(.hero-center) .hero-content {
    max-width: var(--max-width);
}
.hero:not(.hero-center) .hero-content-inner {
    max-width: 55%;
}

.hero-content h1 {
    color: white;
    font-size: 48px;
    line-height: 1.15;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.hero-content p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 18px;
    margin-bottom: 36px;
    line-height: 1.5;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-wave {
    display: none;
}
.hero-wave svg {
    display: none;
}

.section-wave-top {
    position: absolute;
    top: -99px;
    left: 0;
    width: 100%;
    z-index: 30;
    line-height: 0;
    pointer-events: none;
}
.section-wave-top svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

.hero-person-image {
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 44%;
    max-width: 600px;
    z-index: 20;
    pointer-events: none;
}
.hero-person-image img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-center {
    justify-content: center;
    text-align: center;
    min-height: 380px;
    padding-top: 90px;
    padding-bottom: 140px;
}
.hero-center .hero-content {
    max-width: 720px;
}
.hero-center .hero-content p {
    margin-left: auto;
    margin-right: auto;
}

.white-section {
    position: relative;
    background-color: var(--color-bg-white);
    padding: 60px 5% 100px 5%;
    margin-top: -1px;
    z-index: 30;
}

.section-wave-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 1;
    line-height: 0;
    pointer-events: none;
}
.section-wave-bottom svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.floating-card {
    background-color: var(--color-bg-cards);
    border-radius: 16px;
    box-shadow: var(--shadow-card-lg);
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 36px;
    position: relative;
    z-index: 30;
}

.tabs-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.tab-group {
    padding: 0 20px;
}

.tab-group + .tab-group {
    border-left: 1px solid var(--color-divider-gray);
}

.tab-title {
    text-align: center;
    padding-bottom: 18px;
    margin-bottom: 24px;
    font-weight: 700;
    color: var(--color-blue-darkest);
    font-size: 18px;
    border-bottom: 1px solid var(--color-divider-gray);
}

.tab-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 16px;
    text-align: center;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px 6px;
}

.icon-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.icon-placeholder.blue {
    background-color: #E8F0FE;
    color: var(--color-blue-primary);
}

.icon-placeholder.seguros {
    background-color: #E8F0FE;
    color: var(--color-blue-primary);
}

.icon-item span {
    font-size: 13px;
    color: var(--color-gray-text);
    font-weight: 500;
    line-height: 1.3;
}

.benefits-section {
    padding: 80px 5% 60px 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--color-bg-light);
    position: relative;
    z-index: 2;
}
.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 36px;
}
.benefits-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-blue-darkest);
    font-size: 17px;
}
.benefits-list li strong {
    font-weight: 700;
}
.benefits-list li span.orange {
    color: var(--color-orange-cta);
    font-weight: 700;
}
.check-icon {
    color: var(--color-orange-cta);
    font-size: 16px;
    font-weight: 900;
}

.insurance-grid-section {
    background: var(--color-bg-white);
    padding: 60px 5% 80px 5%;
    position: relative;
    z-index: 30;
}

.insurance-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 30;
}

.insurance-card {
    background-color: var(--color-bg-cards);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
    position: relative;
    min-height: 220px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.insurance-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-lg);
}

.insurance-card-text {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    width: 100%;
}
.insurance-card-text h3 {
    color: var(--color-blue-darkest);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
    text-shadow: 0px 1px 2px rgb(255, 255, 255);
}
.insurance-card-text p {
    color: white;
    font-size: 14px;
    line-height: 1.5;
    text-shadow: 0px 1px 4px rgb(0, 0, 0);
}

.insurance-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}
.insurance-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
}

.insurance-card-image.bg-auto     { background: linear-gradient(180deg, #F0F6FF 0%, #D3E4FD 100%); }
.insurance-card-image.bg-moto     { background: linear-gradient(180deg, #FFF4EB 0%, #FDE0D3 100%); }
.insurance-card-image.bg-hogar    { background: linear-gradient(180deg, #FFF7E6 0%, #FDE8BF 100%); }
.insurance-card-image.bg-comercio { background: linear-gradient(180deg, #F1F5F9 0%, #CBD5E1 100%); }

.bottom-cta-section {
    padding: 80px 5%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--color-bg-light);
    position: relative;
    z-index: 2;
}
.bottom-cta-section h2 {
    color: var(--color-blue-darkest);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}
.bottom-cta-section p {
    color: var(--color-gray-text);
    font-size: 17px;
    margin-bottom: 28px;
}

.accounting-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 20px 12px;
}
.accounting-column {
    display: flex;
    flex-direction: column;
    position: relative;
}
.accounting-column + .accounting-column::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 10%;
    bottom: 10%;
    width: 1px;
    background: var(--color-divider-gray);
}
.accounting-column h4 {
    color: var(--color-blue-darkest);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 22px;
    text-align: center;
    line-height: 1.3;
}
.accounting-column ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.accounting-column li {
    position: relative;
    font-size: 14px;
    color: var(--color-gray-text);
    line-height: 1.5;
    font-weight: 500;
    text-align: center;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.accounting-column li::before {
    content: '•';
    color: var(--color-orange-cta);
    font-size: 18px;
    line-height: 1.3;
    margin-right: 6px;
}

.accounting-bottom-cta {
    padding: 80px 5% 100px 5%;
    text-align: center;
    background-color: var(--color-bg-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}
.accounting-bottom-cta h2 {
    color: var(--color-blue-darkest);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 28px;
}

.footer {
    background-color: white;
    margin-top: 0;
}
.footer-contact {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 22px 5%;
    background-color: #EBF0F6;
    gap: 48px;
    flex-wrap: wrap;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--color-blue-darkest);
    font-weight: 500;
    position: relative;
}
.contact-item + .contact-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background: #C8D2E0;
}
.contact-icon {
    fill: none;
    stroke: var(--color-blue-primary);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.footer-social {
    display: flex;
    justify-content: center;
    gap: 18px;
    padding: 26px 0 22px 0;
    background: white;
}
.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.2s ease;
}
.social-icon:hover { transform: translateY(-2px); }
.social-icon.fb { background-color: #3b5998; }
.social-icon.yt { background-color: #F6B828; }
.social-icon.tw { background-color: #1DA1F2; }
.social-icon.ig { background: linear-gradient(45deg, #feda75, #d62976, #4f5bd5); }

.footer-copyright {
    background-color: var(--color-blue-darkest);
    color: white;
    text-align: center;
    padding: 16px;
    font-size: 13px;
    position: relative;
}

.footer-copyright::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-orange-cta);
}

.menu-toggle {
    display: none;
}
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1000;
}
.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--color-blue-darkest);
    border-radius: 3px;
    transition: all 0.3s ease;
}

@media (max-width: 900px) {
    .header {
        padding: 15px 5%;
    }
    .hamburger {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: right 0.4s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 999;
    }
    .menu-toggle:checked ~ .nav-links {
        right: 0;
    }
    .menu-toggle:checked ~ .hamburger span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle:checked ~ .hamburger span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle:checked ~ .hamburger span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    .nav-links a {
        font-size: 20px;
    }
    
    .hero {
        padding: 80px 5% 120px 5%;
        text-align: center;
        justify-content: center;
        background-image: 
            linear-gradient(rgba(30, 58, 138, 0.85), rgba(30, 58, 138, 0.85)),
            url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1920&q=80');
    }
    .hero-content {
        max-width: 100% !important;
        margin: 0 auto;
    }
    .hero-content h1 {
        font-size: 36px;
    }
    .hero-content p {
        margin: 0 auto 30px auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero:not(.hero-center) .hero-content-inner {
        max-width: 100%;
    }
    .hero-person-image {
        display: none;
    }

    .floating-card {
        padding: 30px 20px;
        margin-top: 0;
    }
    .tabs-container {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .tab-group {
        padding: 0;
    }
    .tab-group + .tab-group {
        border-left: none;
        border-top: 1px solid var(--color-divider-gray);
        padding-top: 30px;
        margin-top: 30px;
    }
    .tab-title {
        margin-bottom: 20px;
    }

    .insurance-grid {
        grid-template-columns: 1fr;
    }
    
    .accounting-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .accounting-column + .accounting-column::before {
        display: none;
    }

    .footer-contact {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .contact-item + .contact-item::before {
        display: none;
    }
}

@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 28px;
    }
    .hero-content p {
        font-size: 16px;
    }
    .logo-img {
        height: 45px;
    }
    .btn {
        width: 100%;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    .benefits-list li {
        font-size: 15px;
        text-align: left;
    }
    .bottom-cta-section h2, .accounting-bottom-cta h2 {
        font-size: 22px;
    }
}