/* ============================================================
   VitalVitamina - Stylesheet
   CSS Foundation: Variables, Reset, Typography, Spacing, Buttons
   ============================================================ */

/* ============ CSS CUSTOM PROPERTIES ============ */
:root {
    /* Primary Colors (derived from logo - greens) */
    --color-primary: #1B6B3A;
    --color-primary-dark: #0D4D2A;
    --color-primary-light: #E8F5E9;

    /* Secondary Colors (medical blue) */
    --color-secondary: #1565C0;
    --color-secondary-light: #E3F2FD;

    /* Accent Colors (vitality orange) */
    --color-accent: #E65100;
    --color-accent-light: #FFF3E0;

    /* Teal (from logo drop) */
    --color-teal: #00695C;
    --color-teal-light: #E0F2F1;

    /* Text Colors */
    --color-text: #212121;
    --color-text-secondary: #616161;

    /* Background Colors */
    --color-bg: #FFFFFF;
    --color-bg-alt: #FAFAFA;

    /* Border */
    --color-border: #E0E0E0;

    /* WhatsApp */
    --color-whatsapp: #25D366;

    /* Typography */
    --font-heading: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;

    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-md: 1.1rem;
    --fs-lg: 1.25rem;
    --fs-xl: 1.5rem;
    --fs-2xl: 1.8rem;
    --fs-3xl: 2.2rem;
    --fs-4xl: 2.5rem;
    --fs-5xl: 3.5rem;

    --lh-tight: 1.2;
    --lh-normal: 1.5;
    --lh-relaxed: 1.8;

    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 5rem;
    --space-5xl: 6rem;

    /* Layout */
    --container-max: 1140px;
    --container-padding: 1rem;

    /* Borders & Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 50px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-nav: 0 2px 10px rgba(0, 0, 0, 0.08);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============ CSS RESET ============ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: var(--fw-regular);
    line-height: var(--lh-normal);
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: var(--lh-tight);
    overflow-wrap: break-word;
}

p {
    overflow-wrap: break-word;
}

/* Remove default fieldset/legend styles */
fieldset {
    border: none;
}

/* Accessible focus styles */
:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* Remove animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============ TYPOGRAPHY ============ */
h1 {
    font-size: var(--fs-3xl);
    font-weight: var(--fw-bold);
}

h2 {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-semibold);
}

h3 {
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
}

h4 {
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
}

/* Desktop typography scale */
@media (min-width: 768px) {
    h1 {
        font-size: var(--fs-5xl);
    }

    h2 {
        font-size: var(--fs-4xl);
    }

    h3 {
        font-size: var(--fs-lg);
    }
}

/* ============ LAYOUT: CONTAINER ============ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

@media (min-width: 768px) {
    .container {
        padding-inline: var(--space-xl);
    }
}

/* ============ SECTION UTILITIES ============ */
.section-title {
    font-family: var(--font-heading);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-semibold);
    color: var(--color-text);
    text-align: center;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: var(--fw-regular);
    color: var(--color-text-secondary);
    text-align: center;
    max-width: 700px;
    margin-inline: auto;
    margin-bottom: var(--space-2xl);
    line-height: var(--lh-relaxed);
}

@media (min-width: 768px) {
    .section-title {
        font-size: var(--fs-4xl);
    }

    .section-subtitle {
        font-size: var(--fs-md);
    }
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    line-height: 1;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-full);
    text-align: center;
    cursor: pointer;
    transition: background-color var(--transition-fast),
                color var(--transition-fast),
                border-color var(--transition-fast),
                transform var(--transition-fast),
                box-shadow var(--transition-fast);
    border: 2px solid transparent;
    min-height: 44px;
    min-width: 44px;
    text-decoration: none;
}

.btn:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* Primary Button - Solid brand color */
.btn-primary {
    background-color: var(--color-primary);
    color: #FFFFFF;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: scale(1.02);
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: scale(0.98);
}

/* Secondary Button - Outline/ghost style */
.btn-secondary {
    background-color: transparent;
    color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.btn-secondary:hover {
    background-color: var(--color-secondary);
    color: #FFFFFF;
    transform: scale(1.02);
}

.btn-secondary:active {
    transform: scale(0.98);
}

/* ============ FORM FIELD INDICATOR ============ */
.required {
    color: #D32F2F;
    font-weight: var(--fw-semibold);
}

/* ============ SCROLL ANIMATION UTILITY ============ */
[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

[data-animate].animate-in {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================================
   HEADER — Sticky, Shadow Transition, Navigation, Hamburger
   ============================================================ */

/* ============ SITE HEADER ============ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--color-bg);
    transition: box-shadow var(--transition-base);
}

.site-header.scrolled {
    box-shadow: var(--shadow-nav);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* ============ LOGO ============ */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    height: 40px;
    width: auto;
}

/* ============ MAIN NAVIGATION ============ */
.main-nav {
    display: none;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--color-text);
    position: relative;
    padding: var(--space-sm) 0;
    transition: color var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* ============ HEADER CTA (WhatsApp) ============ */
.header-cta {
    display: none;
    align-items: center;
    gap: var(--space-sm);
    background-color: var(--color-whatsapp);
    color: #FFFFFF;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-full);
    transition: background-color var(--transition-fast), transform var(--transition-fast);
    min-height: 44px;
}

.header-cta:hover {
    background-color: #1EBE5D;
    transform: scale(1.05);
}

.header-cta i {
    font-size: 1.2rem;
}

/* ============ HAMBURGER BUTTON ============ */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-base);
}

/* Hamburger → X animation when .active */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============ MOBILE MENU — Slide-in from right ============ */
@media (max-width: 767px) {
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        max-width: 80vw;
        height: 100vh;
        background-color: var(--color-bg);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        transform: translateX(100%);
        transition: transform var(--transition-base);
        padding: 5rem var(--space-xl) var(--space-xl);
        z-index: 999;
        overflow-y: auto;
    }

    .main-nav.active {
        display: block;
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: var(--space-md) 0;
        font-size: var(--fs-base);
        border-bottom: 1px solid var(--color-border);
    }

    .nav-link::after {
        display: none;
    }

    /* Overlay background when menu is open */
    body.nav-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }
}

/* ============ DESKTOP NAVIGATION (≥768px) ============ */
@media (min-width: 768px) {
    .main-nav {
        display: flex;
        align-items: center;
    }

    .hamburger {
        display: none;
    }

    .header-cta {
        display: flex;
    }
}

/* ============ BODY OFFSET for fixed header ============ */
body {
    padding-top: 70px;
}


/* ============================================================
   HERO SECTION — Gradient Background, 2-Column Grid, CTAs
   ============================================================ */

/* ============ HERO BASE ============ */
.hero {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-teal) 100%);
    padding: var(--space-3xl) 0;
    min-height: auto;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

/* ============ HERO CONTENT (Left Column) ============ */
.hero-content {
    text-align: center;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: var(--fs-3xl);
    font-weight: var(--fw-bold);
    color: #FFFFFF;
    margin-bottom: var(--space-md);
    line-height: var(--lh-tight);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: var(--fw-light);
    color: rgba(255, 255, 255, 0.9);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-xl);
    max-width: 540px;
    margin-inline: auto;
}

/* ============ HERO CTAs ============ */
.hero-ctas {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.hero-ctas .btn-primary {
    background-color: #FFFFFF;
    color: var(--color-primary-dark);
    border-color: #FFFFFF;
    font-weight: var(--fw-bold);
    padding: 1rem 2.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-ctas .btn-primary:hover {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary-light);
    color: var(--color-primary-dark);
    transform: scale(1.05);
}

.hero-ctas .btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.8);
    padding: 1rem 2.5rem;
}

.hero-ctas .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    border-color: #FFFFFF;
    transform: scale(1.05);
}

/* ============ HERO VISUAL (Right Column) ============ */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual-placeholder i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ============ HERO DESKTOP (≥768px) ============ */
@media (min-width: 768px) {
    .hero {
        min-height: 90vh;
        padding: var(--space-5xl) 0;
    }

    .hero-container {
        grid-template-columns: 3fr 2fr;
        gap: var(--space-3xl);
    }

    .hero-content {
        text-align: left;
    }

    .hero-title {
        font-size: var(--fs-5xl);
    }

    .hero-subtitle {
        font-size: var(--fs-md);
        margin-inline: 0;
    }

    .hero-ctas {
        flex-direction: row;
        justify-content: flex-start;
    }

    .hero-visual-placeholder {
        width: 280px;
        height: 280px;
    }

    .hero-visual-placeholder i {
        font-size: 6rem;
    }
}

/* ============ HERO LARGE DESKTOP (≥1200px) ============ */
@media (min-width: 1200px) {
    .hero-visual-placeholder {
        width: 320px;
        height: 320px;
    }

    .hero-visual-placeholder i {
        font-size: 7rem;
    }
}


/* ============================================================
   TRUST BAR — 3 Pilares Flex, Responsive Stack
   ============================================================ */

/* ============ TRUST BAR BASE (Mobile-first: stacked) ============ */
.trust-bar {
    background-color: var(--color-bg-alt);
    padding: var(--space-3xl) 0;
}

.trust-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.trust-item {
    text-align: center;
    padding: var(--space-lg);
}

.trust-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.trust-title {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.trust-text {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: var(--fw-regular);
    color: var(--color-text-secondary);
    line-height: var(--lh-relaxed);
    max-width: 320px;
    margin-inline: auto;
}

/* ============ TRUST BAR DESKTOP (≥768px) ============ */
@media (min-width: 768px) {
    .trust-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .trust-item {
        flex: 1;
        padding: var(--space-xl);
        border-left: 1px solid var(--color-border);
    }

    .trust-item:first-child {
        border-left: none;
    }
}


/* ============================================================
   ABOUT / SOBRE NOSOTROS — 2 Columnas, Responsive Stack
   ============================================================ */

/* ============ ABOUT BASE (Mobile-first: stacked) ============ */
.about {
    background-color: var(--color-bg);
    padding: var(--space-3xl) 0;
}

.about-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
    align-items: center;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-icon-wrapper {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-teal-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.about-icon-wrapper i {
    font-size: 4rem;
    color: var(--color-primary);
}

.about-content {
    text-align: center;
}

.about-content .section-title {
    margin-bottom: var(--space-lg);
}

.about-text {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: var(--fw-regular);
    color: var(--color-text-secondary);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-lg);
    max-width: 700px;
    margin-inline: auto;
}

.about-text:last-child {
    margin-bottom: 0;
}

.about-text strong {
    color: var(--color-text);
    font-weight: var(--fw-semibold);
}

/* ============ ABOUT DESKTOP (≥768px) — 2 Columns ============ */
@media (min-width: 768px) {
    .about {
        padding: var(--space-4xl) 0;
    }

    .about-container {
        flex-direction: row;
        align-items: center;
        gap: var(--space-3xl);
    }

    .about-visual {
        flex: 0 0 40%;
    }

    .about-icon-wrapper {
        width: 220px;
        height: 220px;
    }

    .about-icon-wrapper i {
        font-size: 5rem;
    }

    .about-content {
        flex: 1;
        text-align: left;
    }

    .about-content .section-title {
        text-align: left;
    }

    .about-text {
        margin-inline: 0;
    }
}

/* ============ ABOUT LARGE DESKTOP (≥1200px) ============ */
@media (min-width: 1200px) {
    .about-icon-wrapper {
        width: 260px;
        height: 260px;
    }

    .about-icon-wrapper i {
        font-size: 6rem;
    }
}


/* ============================================================
   SUEROS CATALOG — Grid Auto-fit, Cards, Hover, Expandable
   ============================================================ */

/* ============ SUEROS SECTION BASE ============ */
.sueros {
    background-color: var(--color-teal-light);
    padding: var(--space-3xl) 0;
}

@media (min-width: 768px) {
    .sueros {
        padding: var(--space-4xl) 0;
    }
}

/* ============ SUEROS GRID ============ */
.sueros-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .sueros-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: var(--space-lg);
    }
}

/* ============ SUERO CARD ============ */
.suero-card {
    background-color: var(--color-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    display: flex;
    flex-direction: column;
}

.suero-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* ============ SUERO CARD HEADER ============ */
.suero-card-header {
    border-top: 4px solid var(--color-primary);
    padding: var(--space-lg) var(--space-lg) var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* ============ SUERO ICON ============ */
.suero-icon {
    font-size: 1.5rem;
    color: var(--color-teal);
    flex-shrink: 0;
}

/* ============ SUERO NAME ============ */
.suero-name {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    color: var(--color-text);
    margin: 0;
}

/* ============ SUERO DESCRIPTION ============ */
.suero-description {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: var(--fw-regular);
    color: var(--color-text-secondary);
    line-height: var(--lh-relaxed);
    padding: 0 var(--space-lg);
    margin-bottom: var(--space-md);
}

/* ============ SUERO AUDIENCE ============ */
.suero-audience {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: var(--fw-regular);
    color: var(--color-text-secondary);
    line-height: var(--lh-normal);
    padding: 0 var(--space-lg);
    margin-bottom: var(--space-md);
}

.suero-audience strong {
    color: var(--color-text);
    font-weight: var(--fw-semibold);
}

/* ============ BUTTON VER MÁS ============ */
.btn-ver-mas {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--color-secondary);
    padding: var(--space-sm) var(--space-lg);
    margin-bottom: var(--space-md);
    cursor: pointer;
    background: none;
    border: none;
    transition: color var(--transition-fast);
    min-height: 44px;
}

.btn-ver-mas:hover {
    color: var(--color-primary);
}

.btn-ver-mas i {
    font-size: 0.75rem;
    transition: transform var(--transition-base);
}

/* Chevron rotates when card is expanded */
.suero-card.expanded .btn-ver-mas i {
    transform: rotate(180deg);
}

/* ============ SUERO DETAILS (Hidden by default) ============ */
.suero-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 var(--space-lg);
}

/* Expanded state (toggled via JS adding .expanded to .suero-card) */
.suero-card.expanded .suero-details {
    max-height: 600px;
    padding: 0 var(--space-lg) var(--space-lg);
}

/* ============ SUERO DETAIL SECTION ============ */
.suero-detail-section {
    margin-bottom: var(--space-md);
}

.suero-detail-section:last-child {
    margin-bottom: 0;
}

.suero-detail-section h4 {
    font-family: var(--font-heading);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.suero-detail-section ul {
    list-style: disc;
    padding-left: var(--space-lg);
}

.suero-detail-section li {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    color: var(--color-text-secondary);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-xs);
}

.suero-detail-section li:last-child {
    margin-bottom: 0;
}


/* ============================================================
   PROCESO DE ATENCIÓN — Timeline Horizontal/Vertical
   ============================================================ */

/* ============ PROCESO SECTION BASE ============ */
.proceso {
    background-color: var(--color-bg);
    padding: var(--space-3xl) 0;
}

@media (min-width: 768px) {
    .proceso {
        padding: var(--space-4xl) 0;
    }
}

/* ============ PROCESO TIMELINE (Mobile-first: vertical) ============ */
.proceso-timeline {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-left: var(--space-2xl);
}

/* Vertical connecting line (mobile) */
.proceso-timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    bottom: 30px;
    left: 20px;
    width: 2px;
    background: var(--color-border);
    border-style: dashed;
}

/* ============ PROCESO STEP ============ */
.proceso-step {
    position: relative;
    padding-bottom: var(--space-xl);
}

.proceso-step:last-child {
    padding-bottom: 0;
}

/* ============ PASO NUMERO (Circle) ============ */
.paso-numero {
    position: absolute;
    left: calc(-1 * var(--space-2xl));
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: var(--fs-base);
    font-weight: var(--fw-bold);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* ============ PASO TITULO ============ */
.paso-titulo {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-sm);
    padding-top: var(--space-xs);
}

/* ============ PASO DESCRIPCION ============ */
.paso-descripcion {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: var(--fw-regular);
    color: var(--color-text-secondary);
    line-height: var(--lh-relaxed);
    max-width: 280px;
}

/* ============ PROCESO TIMELINE DESKTOP (≥768px) — Horizontal ============ */
@media (min-width: 768px) {
    .proceso-timeline {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        padding-left: 0;
    }

    /* Horizontal connecting line (desktop) */
    .proceso-timeline::before {
        top: 30px;
        bottom: auto;
        left: 60px;
        right: 60px;
        width: auto;
        height: 2px;
        border-style: dashed;
    }

    .proceso-step {
        flex: 1;
        text-align: center;
        padding-bottom: 0;
    }

    .paso-numero {
        position: relative;
        left: auto;
        top: auto;
        width: 60px;
        height: 60px;
        font-size: var(--fs-lg);
        margin: 0 auto var(--space-md);
    }

    .paso-titulo {
        padding-top: 0;
    }

    .paso-descripcion {
        max-width: 220px;
        margin-inline: auto;
    }
}


/* ============================================================
   FORMULARIO DE EVALUACIÓN — Elevated Card, Inputs, Grid
   ============================================================ */

/* ============ EVALUACION SECTION BASE ============ */
.evaluacion {
    background-color: var(--color-secondary-light);
    padding: var(--space-3xl) 0;
}

@media (min-width: 768px) {
    .evaluacion {
        padding: var(--space-4xl) 0;
    }
}

/* ============ FORM CARD (Elevated) ============ */
.form-evaluacion {
    background-color: var(--color-bg);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    max-width: 800px;
    margin-inline: auto;
    box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
    .form-evaluacion {
        padding: var(--space-2xl);
    }
}

/* ============ FORM ROW — 2-Column Grid (Desktop) ============ */
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }
}

/* ============ FORM GROUP ============ */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--space-md);
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group label {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

/* ============ FORM GROUP FULL WIDTH ============ */
.form-group-full {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--space-md);
}

.form-group-full label {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

/* ============ INPUTS, TEXTAREAS, SELECTS ============ */
.form-evaluacion input,
.form-evaluacion textarea,
.form-evaluacion select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-evaluacion input::placeholder,
.form-evaluacion textarea::placeholder {
    color: var(--color-text-secondary);
    opacity: 0.7;
}

/* Focus State */
.form-evaluacion input:focus,
.form-evaluacion textarea:focus,
.form-evaluacion select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(27, 107, 58, 0.1);
}

/* Invalid/Error State */
.form-evaluacion input.invalid,
.form-evaluacion textarea.invalid,
.form-evaluacion select.invalid {
    border-color: #D32F2F;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

/* ============ ERROR MESSAGE ============ */
.error-message {
    display: none;
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    color: #D32F2F;
    margin-top: var(--space-xs);
    line-height: var(--lh-normal);
}

.error-message.visible {
    display: block;
}

/* ============ SUBMIT BUTTON — Full Width ============ */
.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    padding: 1rem 2.5rem;
    margin-top: var(--space-lg);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    color: #FFFFFF;
    background-color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-full);
    min-height: 56px;
    cursor: pointer;
    transition: background-color var(--transition-fast),
                border-color var(--transition-fast),
                transform var(--transition-fast),
                filter var(--transition-fast);
}

.btn-submit:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: scale(1.02);
    filter: brightness(1.1);
}

.btn-submit:active {
    transform: scale(0.98);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============ BUTTON TEXT ============ */
.btn-text {
    display: inline;
}

/* ============ BUTTON SPINNER (Hidden by default) ============ */
.btn-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Show spinner during loading state */
.btn-submit.loading .btn-spinner {
    display: inline-block;
}

.btn-submit.loading .btn-text {
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============ FORM MESSAGE (Success/Error after submission) ============ */
.form-message {
    display: none;
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    text-align: center;
    margin-top: var(--space-lg);
    line-height: var(--lh-normal);
}

.form-message.visible {
    display: block;
}

.form-message.success {
    background-color: var(--color-primary-light);
    color: var(--color-primary-dark);
    border: 1px solid var(--color-primary);
}

.form-message.error {
    background-color: #FFEBEE;
    color: #C62828;
    border: 1px solid #EF5350;
}


/* ============================================================
   FAQ ACCORDION — Collapsible Items, Rotating Icon
   ============================================================ */

/* ============ FAQ SECTION BASE ============ */
.faq {
    background-color: var(--color-bg-alt);
    padding: var(--space-3xl) 0;
}

@media (min-width: 768px) {
    .faq {
        padding: var(--space-4xl) 0;
    }
}

/* ============ FAQ CONTAINER ============ */
.faq-container {
    max-width: 800px;
    margin-inline: auto;
}

/* ============ FAQ ITEM ============ */
.faq-item {
    background-color: var(--color-bg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition-base);
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

/* ============ FAQ QUESTION (Button) ============ */
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-lg) var(--space-xl);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: var(--fw-medium);
    color: var(--color-text);
    text-align: left;
    cursor: pointer;
    background: none;
    border: none;
    gap: var(--space-md);
    min-height: 44px;
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--color-primary);
}

/* ============ FAQ ICON (Rotates 45deg on active → becomes X) ============ */
.faq-icon {
    font-size: var(--fs-sm);
    color: var(--color-primary);
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* ============ FAQ ANSWER (Hidden by default, shown on .active) ============ */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 var(--space-xl);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 var(--space-xl) var(--space-lg);
}

.faq-answer p {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: var(--fw-regular);
    color: var(--color-text-secondary);
    line-height: var(--lh-relaxed);
}


/* ============================================================
   CONTACTO — Dark Background, Grid, Clickable Links, Social
   ============================================================ */

/* ============ CONTACTO SECTION BASE ============ */
.contacto {
    background-color: var(--color-primary-dark);
    padding: var(--space-3xl) 0;
}

@media (min-width: 768px) {
    .contacto {
        padding: var(--space-4xl) 0;
    }
}

/* ============ SECTION TITLE LIGHT (White text on dark bg) ============ */
.section-title-light {
    color: #FFFFFF;
}

/* ============ CONTACTO GRID ============ */
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
    .contacto-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }
}

/* ============ CONTACTO ITEM ============ */
.contacto-item {
    text-align: center;
    padding: var(--space-lg);
}

@media (min-width: 768px) {
    .contacto-item {
        text-align: left;
    }
}

.contacto-item h3 {
    font-family: var(--font-heading);
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    color: #FFFFFF;
    margin-bottom: var(--space-sm);
}

/* ============ CONTACTO ICON ============ */
.contacto-icon {
    font-size: 1.5rem;
    color: var(--color-whatsapp);
    margin-bottom: var(--space-sm);
}

/* ============ CONTACTO LINK (Clickable phone/email) ============ */
.contacto-link {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: var(--fw-regular);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color var(--transition-fast), text-decoration var(--transition-fast);
    display: inline-block;
}

.contacto-link:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

/* ============ CONTACTO TEXT ============ */
.contacto-text {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: var(--fw-regular);
    color: rgba(255, 255, 255, 0.85);
    line-height: var(--lh-relaxed);
}

/* ============ CONTACTO SOCIAL ============ */
.contacto-social {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

/* ============ SOCIAL LINK (Circular icons with border) ============ */
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #FFFFFF;
    font-size: 1.2rem;
    transition: background-color var(--transition-fast),
                border-color var(--transition-fast),
                transform var(--transition-fast);
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #FFFFFF;
    transform: scale(1.1);
}


/* ============================================================
   FOOTER — 4-Column Grid, Dark Background, Bottom Bar
   ============================================================ */

/* ============ FOOTER BASE ============ */
.site-footer {
    background-color: #0A3D1F;
    padding-top: var(--space-3xl);
    color: rgba(255, 255, 255, 0.85);
}

/* ============ FOOTER CONTAINER (4-Column Grid) ============ */
.footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: var(--space-2xl);
    }
}

/* ============ FOOTER BRAND ============ */
.footer-brand {
    text-align: center;
}

@media (min-width: 768px) {
    .footer-brand {
        text-align: left;
    }
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: var(--space-md);
    display: inline-block;
}

.footer-tagline {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: var(--fw-light);
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    line-height: var(--lh-relaxed);
}

/* ============ FOOTER LINKS & LEGAL ============ */
.footer-links,
.footer-legal {
    text-align: center;
}

@media (min-width: 768px) {
    .footer-links,
    .footer-legal {
        text-align: left;
    }
}

.footer-links h4,
.footer-legal h4,
.footer-social h4 {
    font-family: var(--font-heading);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: #FFFFFF;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links ul,
.footer-legal ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-legal li {
    margin-bottom: var(--space-sm);
}

.footer-links a,
.footer-legal a {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: var(--fw-regular);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-legal a:hover {
    color: #FFFFFF;
}

/* ============ FOOTER SOCIAL ============ */
.footer-social {
    text-align: center;
}

@media (min-width: 768px) {
    .footer-social {
        text-align: left;
    }
}

.footer-social-links {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .footer-social-links {
        justify-content: flex-start;
    }
}

.footer-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    transition: background-color var(--transition-fast),
                border-color var(--transition-fast),
                color var(--transition-fast),
                transform var(--transition-fast);
}

.footer-social-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #FFFFFF;
    color: #FFFFFF;
    transform: scale(1.1);
}

/* ============ FOOTER BOTTOM (Border-top separator) ============ */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: var(--space-lg) 0;
    text-align: center;
}

.footer-bottom p {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: var(--fw-regular);
    color: rgba(255, 255, 255, 0.6);
    line-height: var(--lh-normal);
    margin-bottom: var(--space-xs);
}

.footer-bottom p:last-child {
    margin-bottom: 0;
}

/* ============ FOOTER DISCLAIMER ============ */
.footer-disclaimer {
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.45);
    font-style: italic;
}


/* ============================================================
   WHATSAPP FAB — Fixed, Circular, Pulse Animation
   ============================================================ */

/* ============ WHATSAPP FAB BASE ============ */
.whatsapp-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-whatsapp);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    animation: whatsapp-pulse 2s infinite ease-in-out;
    text-decoration: none;
}

.whatsapp-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-fab:focus-visible {
    outline: 3px solid #FFFFFF;
    outline-offset: 3px;
}

.whatsapp-fab svg {
    width: 28px;
    height: 28px;
}

/* ============ PULSE ANIMATION KEYFRAMES ============ */
@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
}
