/* =========================================
   1. DESIGN TOKENS & VARIABLES
   ========================================= */
:root {
    /* Brand Colors */
    --c-primary: #262262;       /* Azul Índigo Marca */
    --c-secondary: #38ACD8;     /* Azul Celeste Corporativo */
    
    /* UI Blues */
    --c-blue-bright: #099AD1;   /* Botones/Barras */
    --c-blue-mid: #2EA4D1;      /* Variación UI */
    --c-blue-deep: #1382AE;     /* Hover/Texto */
    --c-blue-light: #97DBEF;    /* Fondos suaves */
    
    /* Accents (Yellows/Oranges) */
    --c-accent: #E7964B;        /* Amarillo/Naranjo Principal */
    --c-accent-hover: #F9B44E;  /* Highlight */
    --c-accent-soft: #ECAC63;   /* Subrayados */
    
    /* Neutrals */
    --c-white: #FCFDFE;
    --c-bg-light: #EBEBEB;      /* Fondo general secciones */
    --c-border: #DFDFDF;        /* Separadores */
    --c-border-card: #C4C8C9;   /* Bordes cards */
    --c-text-muted: #555657;    /* Texto secundario */
    --c-text-main: #1E1E1E;     /* Texto principal */
    
    /* Typography */
    --font-main: 'Roboto', system-ui, -apple-system, sans-serif;
    --fs-base: 1rem;             /* 16px — Accesibilidad: mínimo 16px */
    --fs-sm: 0.875rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.25rem;
    --fs-2xl: 1.75rem;           /* 28px — section headings */
    --fs-3xl: 2.25rem;           /* 36px — page titles */
    
    /* Spacing */
    --sp-xs: 0.5rem;
    --sp-sm: 1rem;
    --sp-md: 1.5rem;
    --sp-lg: 2rem;
    --sp-xl: 3.5rem;
    
    /* UI Elements */
    --radius-sm: 4px;
    --radius-md: 8px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
}

/* =========================================
   2. RESET & BASE STYLES
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px !important;   /* Lock rem baseline — prevents WP/plugin overrides */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--c-text-main);
    background-color: var(--c-white);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

/* Focus visible for Accessibility */
:focus-visible {
    outline: 3px solid var(--c-accent);
    outline-offset: 2px;
}

/* =========================================
   3. UTILITIES & LAYOUT
   ========================================= */
.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding-left: var(--sp-md);
    padding-right: var(--sp-md);
}

.section {
    padding: var(--sp-xl) 0;
}

.section-title {
    font-size: var(--fs-2xl);
    color: var(--c-primary);
    margin-bottom: var(--sp-sm);
    font-weight: 700;
}

.section-subtitle {
    font-size: var(--fs-lg);
    color: var(--c-text-muted);
    margin-bottom: var(--sp-lg);
    max-width: 700px;
}

.text-center { text-align: center; }

/* Grid Utilities */
.grid {
    display: grid;
    gap: var(--sp-md);
}

.grid--2-cols {
    grid-template-columns: repeat(2, 1fr);
}

.grid--3-cols {
    grid-template-columns: repeat(3, 1fr);
}

.grid--4-cols {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
    .grid--2-cols, .grid--3-cols, .grid--4-cols {
        grid-template-columns: 1fr;
    }
}

/* Course Page Layout */
.course-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--sp-xl);
    align-items: start;
}

@media (max-width: 992px) {
    .course-layout {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   4. COMPONENTS
   ========================================= */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 1rem;
    border: 2px solid transparent;
}

.btn--primary {
    background-color: var(--c-primary);
    color: white;
}
.btn--primary:hover {
    background-color: #1a1744; /* Darker primary */
}

.btn--whatsapp {
    background-color: #25D366;
    color: white;
    border: 1px solid #25D366;
}

.btn--whatsapp:hover {
    background-color: #128C7E;
    border-color: #128C7E;
}

.btn--secondary {
    background-color: var(--c-accent);
    color: white;
    border: 1px solid var(--c-accent);
}
.btn--secondary:hover {
    background-color: var(--c-accent-hover);
    border-color: var(--c-accent-hover);
}

.btn--primary {
    background-color: var(--c-primary);
    color: white;
    border: 1px solid var(--c-primary);
}

.btn--primary:hover {
    background-color: var(--c-primary-dark);
}

.btn--outline {
    background-color: transparent;
    border-color: var(--c-primary);
    color: var(--c-primary);
}
.btn--outline:hover {
    background-color: var(--c-primary);
    color: white;
}

.btn--accent {
    background-color: var(--c-accent);
    color: white;
}

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

/* Top Bar */
.top-bar {
    background-color: var(--c-primary);
    color: white;
    font-size: var(--fs-sm);
    padding: var(--sp-xs) 0;
}

.top-bar__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sp-xs);
}

.top-bar__contact a, .top-bar__trust span {
    margin-right: var(--sp-md);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar__contact a:hover {
    color: var(--c-accent);
}

/* Header & Nav */
.site-header {
    background-color: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.site-logo__text {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--c-primary);
    letter-spacing: -0.5px;
}

.site-logo__img {
    max-height: 70px;
    width: auto;
    height: 70px;
    object-fit: contain;
}

.main-nav__list {
    display: flex;
    gap: var(--sp-md);
}

.main-nav__link {
    font-weight: 500;
    color: var(--c-text-muted);
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.main-nav__link:hover,
.main-nav__link[aria-current="page"] {
    color: var(--c-primary);
    border-bottom-color: var(--c-accent);
}

.main-nav__link--highlight {
    color: var(--c-secondary);
    font-weight: 700;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.hamburger-icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--c-primary);
    position: relative;
}
.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--c-primary);
    left: 0;
}
.hamburger-icon::before { top: -8px; }
.hamburger-icon::after { bottom: -8px; }

/* Hero Section */
.hero {
    background: linear-gradient(rgba(38, 34, 98, 0.85), rgba(38, 34, 98, 0.7)), url('../principal.jpg');
    background-size: cover;
    background-position: center;
    color: var(--c-white);
    padding: 6rem 0; /* Standard Home Padding */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero--compact {
    padding: 3.5rem 0; /* Compact Padding for internal pages */
}

/* Typing Effect Cursor */
.txt-type > .txt {
    border-right: 0.2rem solid var(--c-accent);
}

.hero__title {
    font-size: clamp(2.25rem, 5vw, 3.75rem); /* Responsive typography */
    font-weight: 700;
    margin-bottom: var(--sp-sm);
    line-height: 1.2;
    color: var(--c-white); /* Ensure title is always white */
    animation: fadeInDown 0.8s ease-out;
}

.hero__subtitle {
    font-size: 1.125rem;
    font-size: clamp(1rem, 3vw, 1.25rem);
    max-width: 800px;
    margin: 0 auto 2rem auto;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
}

.hero__actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* Area Cards with Backgrounds - Enhanced */
.area-card--bg {
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
    border: none;
    overflow: hidden;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    transition: transform 0.3s ease;
    border-radius: var(--radius-md);
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    z-index: 1;
}

.area-card--bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(38,34,98,0.4), rgba(38,34,98,0.9));
    z-index: -1;
    transition: background 0.3s ease;
}

.area-card--bg:hover::before {
    background: linear-gradient(to bottom, rgba(38,34,98,0.2), rgba(38,34,98,0.8));
}

.area-card--bg:hover {
    transform: translateY(-5px);
}

.area-title {
    font-size: 1.8rem; /* Bigger title */
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Step Cards Interaction */
.step-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.step-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.step-card:hover .step-details {
    max-height: 200px;
    opacity: 1;
    margin-top: 1rem;
}

/* Course Card Image */
.course-card__image-container {
    height: 180px;
    overflow: hidden;
    border-bottom: 3px solid var(--c-primary);
}

.course-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.course-card:hover .course-card__image {
    transform: scale(1.05);
}

.hero__subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--sp-lg);
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero__actions {
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero__actions {
    display: flex;
    gap: var(--sp-sm);
    justify-content: center;
    margin-bottom: var(--sp-lg);
    flex-wrap: wrap;
}

.hero__trust-badges {
    display: flex;
    justify-content: center;
    gap: var(--sp-lg);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--sp-md);
}

.category-card {
    background: white;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: var(--sp-md);
    text-align: center;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--c-secondary);
}

.category-card__icon {
    font-size: 2.5rem;
    color: var(--c-secondary);
    margin-bottom: var(--sp-sm);
}

.category-card__title {
    color: var(--c-primary);
    margin-bottom: 0.5rem;
}

.category-card__desc {
    font-size: 0.9rem;
    color: var(--c-text-muted);
}

/* Leveling Section */
.leveling-section {
    background-color: var(--c-bg-light);
}

.leveling-section__inner {
    display: flex;
    align-items: center;
    gap: var(--sp-xl);
}

.feature-list {
    margin: var(--sp-md) 0;
}

.feature-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-list i {
    color: var(--c-secondary);
}

/* Featured Courses */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--sp-lg);
    flex-wrap: wrap;
    gap: 1rem;
}

.link-arrow {
    color: var(--c-secondary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-lg);
}

@media (max-width: 992px) {
    .catalog-content .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }
}

.course-card {
    background: white;
    border: 1px solid var(--c-border-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition-fast);
}

.course-card:hover {
    box-shadow: var(--shadow-lg);
}

.course-card__header {
    padding: var(--sp-sm);
    background-color: #f8f9fa;
    border-bottom: 1px solid var(--c-border);
    display: flex;
    justify-content: space-between;
}

.badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge--technical { background-color: #e3f2fd; color: #1565c0; }
.badge--office { background-color: #e8f5e9; color: #2e7d32; }
.badge--soft { background-color: #fff3e0; color: #ef6c00; }
.badge--language { background-color: #f3e5f5; color: #7b1fa2; }
.badge--modality { background-color: var(--c-primary); color: white; }

.course-card__body {
    padding: var(--sp-md);
    flex-grow: 1;
}

.course-card__title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.course-card__title a {
    color: var(--c-primary);
}

.course-card__excerpt {
    font-size: 0.9rem;
    color: var(--c-text-muted);
    margin-bottom: var(--sp-sm);
}

.course-card__meta {
    display: flex;
    gap: var(--sp-sm);
    font-size: 0.85rem;
    color: var(--c-text-muted);
}

.course-card__footer {
    padding: var(--sp-sm) var(--sp-md);
    border-top: 1px solid var(--c-border);
}

/* Trust Section */
.trust-section {
    background-color: white;
    border-top: 1px solid var(--c-border);
}

.clients-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--sp-xl);
    flex-wrap: wrap;
    margin: var(--sp-lg) 0;
}

.client-logo-img {
    max-height: 60px;
    max-width: 150px;
    filter: grayscale(100%);
    transition: filter var(--transition-fast);
    opacity: 0.7;
}

.client-logo-img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Accreditation Section */
.accreditation-section {
    background-color: #f8f9fa;
    border-bottom: 1px solid var(--c-border);
    padding: var(--sp-md) 0;
}

.accreditation-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--sp-lg);
    flex-wrap: wrap;
    text-align: center;
}

.accreditation-text {
    font-weight: 500;
    color: var(--c-primary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.accreditation-logo {
    height: 50px;
    width: auto;
}

.trust-cta {
    text-align: center;
    background-color: #f0f7ff;
    padding: var(--sp-lg);
    border-radius: var(--radius-md);
    margin-top: var(--sp-lg);
}

.trust-cta p {
    margin-bottom: var(--sp-sm);
    font-size: 1.1rem;
}

/* Footer */
.site-footer {
    background-color: var(--c-primary);
    color: white;
    padding-top: var(--sp-xl);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--sp-xl);
    padding-bottom: var(--sp-xl);
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: var(--sp-md);
    color: var(--c-accent);
}

.footer-links li, .contact-list li {
    margin-bottom: 0.5rem;
}

.footer-links a, .contact-list a {
    opacity: 0.8;
}

.footer-links a:hover, .contact-list a:hover {
    opacity: 1;
    color: var(--c-accent);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.social-links a:hover {
    background-color: var(--c-accent);
}

.site-footer__bottom {
    background-color: rgba(0,0,0,0.2);
    padding: var(--sp-sm) 0;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* =========================================
   5. CATALOG & FILTERS
   ========================================= */
.page-header {
    background-color: var(--c-bg-light);
    padding: var(--sp-lg) 0;
    border-bottom: 1px solid var(--c-border);
}

.page-header__title {
    font-size: 2rem;
    color: var(--c-primary);
    margin-bottom: 0.5rem;
}

.container.catalog-layout {
    display: grid !important;
    grid-template-columns: 250px minmax(0, 1fr) !important;
    gap: var(--sp-lg);
    padding-top: var(--sp-lg);
    padding-bottom: var(--sp-lg);
    align-items: start;
}

.catalog-layout > .catalog-sidebar {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: 250px;
    min-width: 0;
    overflow: hidden;
    background-color: white;
    padding: var(--sp-md);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.catalog-layout > .catalog-content {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    width: 100%;
}

.filter-group {
    margin-bottom: var(--sp-lg);
}

.filter-title {
    font-size: 1rem;
    color: var(--c-primary);
    margin-bottom: var(--sp-sm);
    border-bottom: 2px solid var(--c-border);
    padding-bottom: 0.25rem;
}

.search-box {
    display: flex;
    gap: 0.5rem;
}

.search-box input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
}

.search-box button {
    background-color: var(--c-primary);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.filter-list li {
    margin-bottom: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-label input {
    margin-right: 0.5rem;
}

.catalog-status {
    margin-bottom: var(--sp-md);
    font-size: 0.9rem;
    color: var(--c-text-muted);
}

/* =========================================
   6. ACCORDION
   ========================================= */
.accordion-item {
    border-bottom: 1px solid var(--c-border);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--c-primary);
}

.accordion-header:hover {
    color: var(--c-blue-bright);
}

.accordion-content {
    padding-bottom: 1rem;
    color: var(--c-text-muted);
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-header[aria-expanded="true"] .accordion-icon {
    transform: rotate(180deg);
}

/* =========================================
   7. RESPONSIVE UPDATES
   ========================================= */
@media (max-width: 768px) {
    .top-bar__content {
        justify-content: center;
        text-align: center;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: var(--shadow-lg);
        padding: var(--sp-md);
    }
    
    .main-nav.is-open {
        display: block;
    }
    
    .main-nav__list {
        flex-direction: column;
        gap: 0;
    }
    
    .main-nav__link {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--c-border);
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .leveling-section__inner {
        flex-direction: column;
    }

    .container.catalog-layout {
        grid-template-columns: 1fr !important;
    }

    .catalog-layout > .catalog-sidebar {
        grid-column: 1;
        max-width: 100%;
        position: static;
    }

    .catalog-layout > .catalog-content {
        grid-column: 1;
    }
}

/* =========================================
   8. SCHEDULE & TABLES
   ========================================= */
.schedule-section {
    background-color: white;
}

.month-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--sp-lg);
    margin-bottom: var(--sp-lg);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--c-primary);
}

.month-nav__link {
    color: var(--c-text-muted);
    font-size: 1rem;
    font-weight: 500;
}

.month-nav__link:hover {
    color: var(--c-secondary);
}

.month-nav__link.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
}

.schedule-card {
    margin-bottom: var(--sp-lg);
}

.schedule-card__title {
    font-size: 1.4rem;
    color: var(--c-primary);
    margin: 0 0 var(--sp-sm);
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px; /* Force scroll on small screens */
}

.schedule-table th,
.schedule-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--c-border);
}

.schedule-table th {
    background-color: #f8f9fa;
    font-weight: 700;
    color: var(--c-primary);
    white-space: nowrap;
}

.schedule-table tr:last-child td {
    border-bottom: none;
}

.schedule-table tr:hover {
    background-color: #f0f7ff;
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.status-dot--green { background-color: #2e7d32; }
.status-dot--yellow { background-color: #f9a825; }
.status-dot--red { background-color: #c62828; }

.schedule-note {
    margin-top: var(--sp-md);
    font-size: 0.9rem;
    color: var(--c-text-muted);
    font-style: italic;
}

.schedule-commercial {
    margin: 1.5rem 0 0;
    text-align: center;
    font-weight: 700;
    color: var(--c-primary);
}

/* =========================================
   9. PDP (PRODUCT DETAIL PAGE)
   ========================================= */
.pdp-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--sp-xl);
    padding: var(--sp-xl) 0;
}

.pdp-section {
    margin-bottom: var(--sp-xl);
}

.pdp-title {
    font-size: 1.5rem;
    color: var(--c-primary);
    margin-bottom: var(--sp-md);
    border-bottom: 2px solid var(--c-bg-light);
    padding-bottom: 0.5rem;
}

.check-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.check-list li::before {
    content: '\f00c'; /* FontAwesome check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--c-secondary);
}

/* Sticky Sidebar */
.pdp-sidebar {
    position: relative;
}

.sticky-card {
    position: sticky;
    top: 100px; /* Adjust based on header height */
    background: white;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 10;
    padding: 1.5rem;
}

.sticky-card ul {
    font-size: 0.95rem;
}

.sticky-card .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.sticky-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.date-box {
    text-align: center;
    background-color: var(--c-bg-light);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.date-day {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--c-primary);
    line-height: 1;
}

.date-month {
    display: block;
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--c-text-muted);
}

.course-details-list {
    margin-bottom: 1.5rem;
}

.course-details-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--c-border);
}

.course-details-list li:last-child {
    border-bottom: none;
}

.price-box {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #e3f2fd;
    border-radius: var(--radius-sm);
}

.price-label {
    display: block;
    font-size: 0.9rem;
    color: var(--c-text-muted);
}

.price-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--c-primary);
}

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 3rem; }

/* =========================================
   10. RESPONSIVE TABLES & PDP
   ========================================= */
@media (max-width: 768px) {
    .pdp-layout {
        grid-template-columns: 1fr;
    }
    
    .sticky-card {
        position: static;
        margin-bottom: var(--sp-lg);
    }

    /* Mobile Table Card View */
    .schedule-table, .schedule-table thead, .schedule-table tbody, .schedule-table th, .schedule-table td, .schedule-table tr { 
        display: block; 
    }

    .schedule-table {
        min-width: 100%; /* Force full width, canceling desktop min-width */
    }
    
    .schedule-table thead tr { 
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .schedule-table tr { 
        border: 1px solid var(--c-border);
        margin-bottom: 1rem;
        border-radius: var(--radius-md);
        background: white;
    }
    
    .schedule-table td { 
        border: none;
        border-bottom: 1px solid var(--c-bg-light); 
        position: relative;
        padding-left: 50%; 
        text-align: right;
    }
    
    .schedule-table td:before { 
        position: absolute;
        top: 1rem;
        left: 1rem;
        width: 45%; 
        padding-right: 10px; 
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        content: attr(data-label);
        color: var(--c-text-muted);
    }

    .table-responsive {
        border: none;
        overflow: visible;
    }
}

/* =========================================
   11. NEW COMPONENTS (UPDATES)
   ========================================= */

/* Client Grid */
.client-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: center;
    justify-items: center;
    margin-top: 2rem;
}

/* Contact Page Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: var(--sp-lg) 0;
}

/* Contact Schedule Box */
.contact-schedule {
    margin-top: 2rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

@media (max-width: 768px) {
    .client-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--sp-lg);
    }

    .contact-schedule {
        text-align: center;
    }

    .schedule-table caption {
        display: block;
        text-align: center;
        margin-bottom: 1rem;
        font-weight: 700;
        color: var(--c-primary);
    }
}

@media (min-width: 768px) {
    .client-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 3-column variant for empresa page */
.client-grid--3cols {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .client-grid--3cols {
        grid-template-columns: repeat(3, 1fr);
    }
}

.client-grid img {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
    max-height: 100px;
    object-fit: contain;
}

.client-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.08);
}

.clients-grid-page {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
    margin-top: 2rem;
}

.client-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 120px;
    padding: 1rem;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    background: white;
    box-shadow: var(--shadow-sm);
    transform: translateY(0) scale(1);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.client-logo-item:hover {
    border-color: var(--c-primary);
    transform: translateY(-4px) scale(1.04);
    box-shadow: var(--shadow-md);
}

.client-logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.client-logo-item:hover img {
    filter: grayscale(0%);
}

/* Certification Badges */
.cert-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 220px;
}

.certification-badges {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .certification-badges {
        gap: 3rem;
    }
}

/* Services Grid - Empresa Page */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Area Cards with Backgrounds */
.area-card--bg {
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
    border: none;
    overflow: hidden;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem; /* Added padding */
}

.area-card--bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
    transition: background 0.3s ease;
}

.area-card--bg:hover::before {
    background: rgba(0, 0, 0, 0.4);
}

.area-card--bg > * {
    position: relative;
    z-index: 2;
}

.area-card--bg .area-title {
    font-size: 1.75rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.area-card--bg .area-icon {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.area-card--bg .area-desc {
    color: rgba(255, 255, 255, 0.9);
}

/* Course Cards with Images */
.course-card__image {
    height: 180px;
    width: 100%;
    object-fit: cover;
}

/* Interactive Steps */
.step-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.step-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    opacity: 0;
}

.step-card:hover .step-details {
    max-height: 300px;
    opacity: 1;
    margin-top: 1rem;
}

/* WhatsApp Button */
.btn--whatsapp {
    background-color: #25D366;
    color: white;
    border: none;
}

.btn--whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-1px);
}

/* =========================================
   10. COURSE PAGE STYLES
   ========================================= */

/* Course Page Header - Simpler structure */
.header {
    background-color: var(--c-primary);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem var(--sp-sm);
    max-width: 1200px;
    margin: 0 auto;
}

.header__logo img {
    height: 50px;
    width: auto;
}

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

.nav__list {
    display: flex;
    gap: var(--sp-md);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__list a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.nav__list a:hover,
.nav__list a.active {
    border-bottom-color: var(--c-accent);
}

.nav__elearning {
    color: var(--c-accent) !important;
    font-weight: 700 !important;
}

.header__cta {
    display: none; /* Hidden by default, can be shown if needed */
}

.header__mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
}

/* Breadcrumbs */
.breadcrumbs {
    background-color: var(--c-bg-light);
    padding: var(--sp-sm) 0;
    border-bottom: 1px solid var(--c-border);
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--c-text-muted);
}

.breadcrumbs a {
    color: var(--c-primary);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Course Hero Section */
.course-hero {
    padding: var(--sp-xl) 0;
    background-color: white;
    color: var(--c-text-main);
}

.course-hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-xl);
    align-items: start;
}

.course-hero .container::before,
.course-hero .container::after {
    display: none;
}

.course-hero__badges {
    display: flex;
    gap: var(--sp-sm);
    margin-bottom: var(--sp-sm);
    flex-wrap: wrap;
}

.badge--computer {
    background-color: #e3f2fd;
    color: #1565c0;
}

.badge--habilidades {
    background-color: #fff3e0;
    color: #ef6c00;
}

.badge--idiomas {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.badge--presencial {
    background-color: var(--c-primary);
    color: white;
}

.badge--elearning {
    background-color: var(--c-secondary);
    color: white;
}

.course-hero__title {
    font-size: 2.25rem;
    color: var(--c-primary);
    margin-bottom: var(--sp-sm);
    line-height: 1.2;
}

.course-hero__duration {
    color: var(--c-text-muted);
    margin-bottom: var(--sp-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.course-hero__description {
    font-size: 1.1rem;
    color: var(--c-text-main);
    line-height: 1.6;
}

.course-hero__image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.course-hero__text {
    margin-top: var(--sp-md);
}

.course-hero__text h2 {
    font-size: 1.25rem;
    color: var(--c-primary);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.course-hero__text h2:first-child {
    margin-top: 0;
}

.course-hero__text p {
    line-height: 1.7;
    color: var(--c-text-main);
}

/* Course Content Layout */
.course-content {
    padding: var(--sp-xl) 0;
    background-color: var(--c-bg-light);
}

.course-content__grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--sp-xl);
}

.course-content__main {
    background-color: white;
    padding: var(--sp-xl);
    padding-top: 2.5rem;
    padding-bottom: 3rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* Course Content Sections - Improved Spacing */
.course-description,
.course-objectives,
.course-syllabus {
    margin-bottom: 3rem;
}

.course-description h2,
.course-objectives h2,
.course-syllabus h2 {
    color: var(--c-primary);
    margin-bottom: 1.25rem;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
}

.course-description p,
.course-objectives p {
    line-height: 1.7;
    color: var(--c-text-main);
    margin-bottom: 1rem;
}

.course-syllabus h2 {
    color: var(--c-primary);
    margin-bottom: 1.25rem;
    font-size: 1.75rem;
    border-bottom: 3px solid var(--c-accent);
    padding-bottom: 0.75rem;
}

.syllabus-content h3 {
    color: var(--c-primary);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.syllabus-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.syllabus-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
    list-style-type: disc;
    color: var(--c-text-main);
}

/* Course Sidebar */
.course-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--sp-md);
}

.cta-box,
.course-info-box,
.download-box,
.related-courses {
    background-color: white;
    padding: var(--sp-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.cta-box h3,
.course-info-box h3,
.download-box h3,
.related-courses h3 {
    color: var(--c-primary);
    margin-bottom: var(--sp-md);
    font-size: 1.25rem;
}

.cta-box .btn {
    width: 100%;
    margin-bottom: var(--sp-sm);
}

.btn--phone {
    background-color: var(--c-blue-bright);
    color: white;
}

.btn--phone:hover {
    background-color: var(--c-blue-deep);
}

.btn--download {
    background-color: var(--c-accent);
    color: white;
}

.btn--download:hover {
    background-color: var(--c-accent-hover);
}

.course-info-box ul {
    list-style: none;
    padding: 0;
}

.course-info-box li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: var(--sp-sm);
    padding: var(--sp-sm);
    border-bottom: 1px solid var(--c-border);
}

.course-info-box li:last-child {
    border-bottom: none;
}

.course-info-box i {
    color: var(--c-primary);
    font-size: 1.25rem;
    min-width: 20px;
}

.related-courses ul {
    list-style: none;
    padding: 0;
}

.related-courses li {
    margin-bottom: 0.5rem;
}

.related-courses a {
    color: var(--c-primary);
    text-decoration: none;
    display: block;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s;
}

.related-courses a:hover {
    background-color: var(--c-bg-light);
    color: var(--c-blue-bright);
}

/* Footer in course pages */
.footer {
    background-color: var(--c-primary);
    color: white;
    padding: var(--sp-xl) 0;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--sp-sm);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--sp-xl);
}

.footer__column h3 {
    color: var(--c-accent);
    margin-bottom: var(--sp-md);
    font-size: 1.2rem;
}

.footer__column ul {
    list-style: none;
    padding: 0;
}

.footer__column li {
    margin-bottom: 0.5rem;
}

.footer__column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.footer__column a:hover {
    color: var(--c-accent);
}

.footer__social {
    display: flex;
    gap: 1rem;
    margin-top: var(--sp-md);
}

.footer__social a {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.footer__social a:hover {
    background-color: var(--c-accent);
}

.footer__bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: var(--sp-sm) 0;
    text-align: center;
    margin-top: var(--sp-lg);
}

.footer__bottom p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* =========================================
   11. RESPONSIVE - COURSE PAGES
   ========================================= */

@media (max-width: 968px) {
    .course-hero .container {
        grid-template-columns: 1fr;
    }
    
    .course-content__grid {
        grid-template-columns: 1fr;
    }
    
    .course-sidebar {
        order: -1; /* Show sidebar first on mobile */
    }
}

@media (max-width: 768px) {
    .nav__list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--c-primary);
        flex-direction: column;
        padding: var(--sp-md);
        box-shadow: var(--shadow-lg);
    }
    
    .nav__list.is-open {
        display: flex;
    }
    
    .header__mobile-toggle {
        display: block;
    }
    
    .header__mobile-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background-color: white;
        margin: 5px 0;
        transition: 0.3s;
    }
    
    .course-hero__title {
        font-size: 1.75rem;
    }
    
    .footer__container {
        grid-template-columns: 1fr;
    }
}

/* Carousel Styles */
.carousel-wrapper {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px; /* Space for arrows */
}

.carousel-container {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    gap: 20px;
    padding: 10px 0;
}

.carousel-slide {
    flex: 0 0 calc(33.333% - 14px); /* 3 items minus gap correction */
    max-width: calc(33.333% - 14px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    height: 120px;
    box-shadow: var(--shadow-sm);
}

.carousel-slide img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.carousel-slide:hover img {
    filter: grayscale(0%);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid var(--c-border);
    color: var(--c-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    z-index: 10;
    transition: all 0.2s;
}

.carousel-btn:hover {
    background: var(--c-primary);
    color: white;
}

.carousel-btn--prev { left: 0; }
.carousel-btn--next { right: 0; }

@media (max-width: 768px) {
    .carousel-slide {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .carousel-slide {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* =========================================
   Floating WhatsApp widget
   ========================================= */
:root {
    --wa-green: #25D366;
    --wa-green-dark: #128C7E;
}

.wa-float {
    position: fixed;
    bottom: var(--sp-lg);
    right: var(--sp-lg);
    z-index: 9990;
    font-family: var(--font-main);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--sp-sm);
}

/* Floating action button (bubble) */
.wa-float__fab {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background-color: var(--wa-green);
    color: var(--c-white);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(18, 140, 126, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.wa-float__fab:hover {
    background-color: var(--wa-green-dark);
    transform: translateY(-2px);
}

.wa-float__fab:focus-visible {
    outline: 3px solid var(--c-secondary);
    outline-offset: 2px;
}

/* Subtle attention pulse */
.wa-float__fab::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--wa-green);
    opacity: 0.6;
    z-index: -1;
    animation: wa-pulse 2.4s ease-out infinite;
}

@keyframes wa-pulse {
    0% { transform: scale(1); opacity: 0.5; }
    70% { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Keep bubble visible when panel is open; just stop the attention pulse */
.wa-float.is-open .wa-float__fab::after {
    animation: none;
    opacity: 0;
}

/* Chat panel */
.wa-float__panel {
    width: 320px;
    max-width: calc(100vw - 2 * var(--sp-md));
    background-color: var(--c-white);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    transform: translateY(16px) scale(0.96);
    transform-origin: bottom right;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
}

.wa-float.is-open .wa-float__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.wa-float__panel[hidden] {
    display: none;
}

/* Panel header */
.wa-float__header {
    display: flex;
    align-items: center;
    gap: var(--sp-xs);
    padding: var(--sp-sm);
    background-color: var(--c-primary);
    color: var(--c-white);
}

.wa-float__avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--wa-green);
    color: var(--c-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.wa-float__heading {
    flex: 1 1 auto;
    min-width: 0;
}

.wa-float__title {
    margin: 0;
    font-weight: 700;
    font-size: var(--fs-base);
    line-height: 1.2;
}

.wa-float__subtitle {
    margin: 2px 0 0;
    font-size: 0.75rem;
    opacity: 0.85;
}

.wa-float__close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--c-white);
    font-size: 1.1rem;
    cursor: pointer;
    padding: var(--sp-xs);
    line-height: 1;
    opacity: 0.85;
    transition: opacity var(--transition-fast);
}

.wa-float__close:hover {
    opacity: 1;
}

/* Panel body */
.wa-float__body {
    padding: var(--sp-md) var(--sp-sm) var(--sp-sm);
    background-color: var(--c-bg-light);
}

.wa-float__bubble {
    margin: 0 0 var(--sp-sm);
    background-color: var(--c-white);
    border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
    padding: var(--sp-xs) var(--sp-sm);
    font-size: var(--fs-sm);
    color: var(--c-text-main);
    box-shadow: var(--shadow-sm);
}

.wa-float__label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--c-text-muted);
}

.wa-float__input {
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    min-height: 64px;
    padding: var(--sp-xs);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: var(--fs-sm);
    color: var(--c-text-main);
    background-color: var(--c-white);
}

.wa-float__input:focus {
    outline: none;
    border-color: var(--wa-green);
    box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.2);
}

/* Panel footer */
.wa-float__footer {
    padding: var(--sp-sm);
    background-color: var(--c-bg-light);
}

.wa-float__send {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: var(--radius-sm);
    background-color: var(--wa-green);
    color: var(--c-white);
    font-weight: 500;
    font-size: var(--fs-base);
    cursor: pointer;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.wa-float__send:hover {
    background-color: var(--wa-green-dark);
    transform: translateY(-1px);
}

.wa-float__send:focus-visible {
    outline: 3px solid var(--c-secondary);
    outline-offset: 2px;
}

/* Mobile */
@media (max-width: 480px) {
    .wa-float {
        bottom: var(--sp-sm);
        right: var(--sp-sm);
        left: var(--sp-sm);
        align-items: flex-end;
    }

    .wa-float__panel {
        width: 100%;
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wa-float__fab::after {
        animation: none;
    }

    .wa-float__fab,
    .wa-float__panel,
    .wa-float__send {
        transition: none;
    }
}
