/*
  File: /css/new-style.css
  Description: New, modern stylesheet for the redesigned index page.
*/

:root {
    --primary-color: #003366; /* Deep Navy Blue */
    --secondary-color: #f39c12; /* Bright Orange */
    --accent-color: #e74c3c; /* Red */
    --light-gray: #f4f6f8;
    --dark-gray: #34495e;
    --text-color: #555;
    --white: #ffffff;
    --font-main: 'Montserrat', sans-serif;
    --font-headings: 'Montserrat', sans-serif;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 8px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
}

/* --- RESET & BASE --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4 {
    font-family: var(--font-headings);
    color: var(--primary-color);
    line-height: 1.3;
    font-weight: 600;
}

h1 { font-size: 2.8rem; margin-bottom: 1rem; }
h2 { font-size: 2.2rem; margin-bottom: 1.5rem; text-align: center; }
h3 { font-size: 1.5rem; margin-bottom: 0.8rem; }
p { margin-bottom: 1rem; }
a { color: var(--secondary-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--accent-color); }

section {
    padding: 5rem 0;
}

.section-highlight {
    background-color: var(--light-gray);
}

.hl {
    color: var(--secondary-color);
    font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}


/* --- HEADER --- */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    transition: box-shadow 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 120px;
}

.brand {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.brand-logo-img {
    height: 80px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
}

.nav a, .nav-label {
    margin: 0 20px;
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary-color);
    position: relative;
    padding: 10px 0;
    cursor: pointer;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

/* Nav Dropdown */
.nav-item {
    position: relative;
}

.nav-sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: var(--shadow-heavy);
    min-width: 220px;
    padding: 10px 0;
    z-index: 1010;
}

.nav-item:hover .nav-sub {
    display: block;
}

.nav-sub a {
    display: block;
    margin: 0;
    padding: 12px 20px;
    white-space: nowrap;
}

.nav-sub a::after {
    display: none;
}

.nav-sub a:hover {
    background-color: var(--light-gray);
}


/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1020;
}

.hamburger-box {
    width: 30px;
    height: 24px;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: transform 0.3s ease;
}

.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-inner::before {
    top: -10px;
}

.hamburger-inner::after {
    bottom: -10px;
}

/* Mobile Nav Open State */
.mobile-nav-open .hamburger-inner {
    transform: rotate(45deg);
}

.mobile-nav-open .hamburger-inner::before {
    top: 0;
    transform: rotate(0);
    opacity: 0;
}

.mobile-nav-open .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
}

.mobile-nav-open .nav {
    transform: translateX(0);
}


/* --- HERO SECTION --- */
#hero {
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.8)), url('../fotos/seguros-familia-ahorro-inversion.webp') no-repeat center center/cover;
    color: var(--white);
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    position: relative;
    text-align: left;
}

#hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--white), transparent);
    z-index: 1;
}

.hero-content {
    max-width: 750px;
    animation: fadeIn 1s ease-out forwards;
    position: relative;
    z-index: 2;
}

.hero-kicker {
    font-family: var(--font-headings);
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    display: block;
    font-size: 1.1rem;
}

#hero h1 { /* Visual Title */
    font-size: 3.5rem;
    color: var(--white);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-lead {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 35px;
    border-radius: 50px;
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn i {
    margin-right: 10px;
    font-size: 1.2em;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #d68910; /* Darker orange */
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
    margin-left: 15px;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* --- SOLUTIONS SECTION --- */
#solutions {
    text-align: center;
}

#solutions .section-lead {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.solution-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.solution-card .icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.solution-card h3 {
    color: var(--primary-color);
}

/* --- CTA SECTION --- */
.cta-section {
    background: var(--primary-color);
    color: var(--white);
    padding: 4rem;
    border-radius: var(--border-radius);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    opacity: 0.9;
}

.cta-section .btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}
.cta-section .btn-primary:hover {
    background-color: var(--white);
}

/* --- FOOTER --- */
footer {
    background-color: var(--dark-gray);
    color: var(--light-gray);
    padding: 3rem 0;
    text-align: center;
}

footer a {
    color: var(--light-gray);
    margin: 0 10px;
}

footer a:hover {
    color: var(--secondary-color);
}

footer .social-icons i {
    font-size: 1.5rem;
}

/* --- ANIMATIONS & UTILITIES --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- WHATSAPP FAB --- */
.fab-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-heavy);
    z-index: 999;
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.fab-whatsapp:hover {
    transform: scale(1.1);
    color: white;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 80%;
        max-width: 350px;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: 2px 0 15px rgba(0,0,0,0.1);
    }
    .nav a, .nav-item {
        margin: 0;
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid var(--light-gray);
    }
    .nav a::after {
        display: none;
    }
    .hamburger {
        display: block;
    }

    /* Dropdown mobile adjustments */
    .nav-item {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
    }
    .nav-label {
      width: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .nav-sub {
        position: static;
        display: none; /* Initially hidden */
        box-shadow: none;
        padding-left: 20px;
        width: 100%;
    }
    .nav-item.open .nav-sub {
      display: block;
    }
    .nav-sub a {
      padding: 10px 0;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    #hero h1 { font-size: 2.8rem; }
    h2 { font-size: 1.8rem; }
    section { padding: 3rem 0; }
    .cta-buttons {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    .btn {
      width: 100%;
      margin: 10px 0;
    }
    .btn-secondary {
      margin-left: 0;
    }
}
.h1-visual {
    color: var(--white);
}

/* --- Link Bubble --- */
.link-bubble {
    position: fixed;
    bottom: 100px; /* Position above the WhatsApp FAB */
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-heavy);
    z-index: 998; /* Below WhatsApp FAB but above other content */
    cursor: pointer;
    transition: all 0.3s ease;
}

.link-bubble:hover {
    transform: scale(1.1);
}

.link-bubble-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    padding: 10px 0;
    width: 250px;
    z-index: -1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.link-bubble.active .link-bubble-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.link-bubble-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--primary-color);
    font-weight: 600;
}

.link-bubble-menu a:hover {
    background-color: var(--light-gray);
    color: var(--secondary-color);
}

/* --- Benefits Section --- */
#benefits {
    background-color: var(--white);
}

.benefit-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
}

.benefit-item:last-child {
    margin-bottom: 0;
}

.benefit-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    object-fit: cover;
}

.benefit-content h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.benefit-content p {
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Reverse layout for even items */
.benefit-item:nth-child(even) .benefit-image {
    order: 2;
}
.benefit-item:nth-child(even) .benefit-content {
    order: 1;
}

@media (max-width: 992px) {
    .benefit-item {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .benefit-item:nth-child(even) .benefit-image,
    .benefit-item:nth-child(even) .benefit-content {
        order: initial; /* Reset order for mobile */
    }
}

/* --- Hook Section --- */
#hook-section {
    padding: 6rem 0;
    background-image: linear-gradient(rgba(0, 51, 102, 0.75), rgba(0, 51, 102, 0.75)), url('../fotos/equipo-profesional.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    color: var(--white);
}

#hook-section h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--white);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}
