@layer components {
  /* ==========================================================================
     BOTONES (CTAS)
     ========================================================================== */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    font-size: 0.9rem;
    font-weight: 700; /* Verdana Bold */
    border-radius: var(--border-radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    line-height: 1.2;
    transition: all var(--transition-smooth);
    font-family: var(--font-primary);
  }

  .btn-primary {
    background-color: var(--orange-accent);
    color: var(--white-base);
  }
  .btn-primary:hover {
    background-color: #a45d27; /* Tono ocre oscuro */
  }

  .btn-secondary {
    background-color: transparent;
    border-color: var(--ocre-secondary);
    color: var(--navy-primary);
  }
  .btn-secondary:hover {
    background-color: var(--ocre-secondary);
    color: var(--white-base);
  }

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

  .btn-whatsapp {
    background-color: #25D366;
    color: var(--white-base);
    border: none;
  }
  .btn-whatsapp:hover {
    background-color: #1ebd58;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35) !important;
  }

  /* Botón de Whatsapp Flotante Permanente */
  .btn-whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--white-base);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    font-size: 2rem;
    transition: transform var(--transition-smooth), background-color var(--transition-smooth);
  }
  .btn-whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    background-color: #1ebd58;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  }
  
  .btn-whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
  }

  /* ==========================================================================
     HERO SECCIÓN
     ========================================================================== */
  .hero-section {
    background-color: var(--bg-navy-dark);
    color: var(--white-base);
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    padding-block: 4rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
  }

  /* Slider en Hero */
  .hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }

  .hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 8s ease-out;
    transform: scale(1.05);
    z-index: 1;
  }

  .hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
  }

  .hero-slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(6, 30, 79, 0.85) 0%, rgba(6, 30, 79, 0.6) 100%);
    z-index: 3;
    pointer-events: none;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .hero-tagline {
    font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
    color: var(--ocre-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
  }

  .hero-badge-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .badge-24h {
    background-color: var(--orange-accent);
    color: var(--white-base);
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--border-radius-full);
    letter-spacing: 1px;
  }

  .hero-title {
    color: var(--white-base);
  }

  .hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
  }

  .hero-social-links {
    display: flex;
    gap: 1.25rem;
    margin-top: 1.5rem;
    align-items: center;
  }

  .hero-social-links span {
    font-size: 0.85rem;
    color: var(--grey-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .social-link svg {
    width: 24px;
    height: 24px;
    fill: var(--ocre-secondary);
    transition: fill var(--transition-smooth);
  }

  .social-link:hover svg {
    fill: var(--orange-accent);
  }

  /* ==========================================================================
     CONÓCENOS (VALORES Y DOCENTES)
     ========================================================================== */
  .section-subtitle {
    font-size: 1rem;
    color: var(--orange-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 0.5rem;
  }

  .section-title {
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 0.75rem;
  }

  .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--orange-accent);
    border-radius: 2px;
  }

  .center-title {
    text-align: center;
  }
  .center-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  /* Valores Grid */
  .values-grid {
    margin-top: 3rem;
  }

  .value-card {
    background-color: var(--white-base);
    padding: 2rem;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--grey-medium);
    transition: all var(--transition-smooth);
  }

  .value-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.25rem;
    color: var(--orange-accent);
    fill: currentColor;
  }

  .value-title {
    font-size: 1.15rem;
    color: var(--navy-primary);
    margin-bottom: 0.75rem;
  }

  /* Docentes */
  .docentes-section {
    background-color: var(--grey-light);
    margin-top: 4rem;
    padding: 3.5rem 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--grey-medium);
  }

  .docente-card {
    background-color: var(--white-base);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--ocre-secondary);
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .docente-photo-wrapper {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: var(--navy-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
  }
  
  .docente-photo-wrapper svg {
    width: 64px;
    height: 64px;
    fill: rgba(255, 255, 255, 0.2);
  }

  .docente-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-smooth);
  }

  .docente-card:hover .docente-photo {
    transform: scale(1.05);
  }

  .docente-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }

  .docente-role {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--orange-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
  }

  .docente-name {
    font-size: 1.25rem;
    color: var(--navy-primary);
    margin-bottom: 0.75rem;
  }

  .docente-bio {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
  }

  /* ==========================================================================
     QUÉ OFRECEMOS (DUALIDAD Y SERVICIOS)
     ========================================================================== */
  .dual-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
  }

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

  .dual-column-card {
    background-color: var(--navy-primary);
    color: var(--white-base);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-left: 5px solid var(--ocre-secondary);
  }

  .dual-column-card.accent {
    background-color: var(--white-base);
    color: var(--navy-primary);
    border: 1px solid var(--grey-medium);
    border-left: 5px solid var(--orange-accent);
  }

  .dual-column-card h3 {
    color: inherit;
    font-size: 1.4rem;
  }

  .dual-column-card p {
    color: inherit;
    opacity: 0.9;
    font-size: 0.95rem;
    margin-bottom: 0;
  }

  /* Servicios Grid */
  .services-grid {
    margin-top: 2rem;
  }

  .service-card {
    background-color: var(--white-base);
    border: 1px solid var(--grey-medium);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
  }

  .service-number {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--grey-medium);
    opacity: 0.3;
    line-height: 1;
    font-family: var(--font-primary);
  }

  .service-title {
    font-size: 1.15rem;
    color: var(--navy-primary);
    padding-right: 2rem; /* Evitar colisión con número */
    margin-bottom: 0.25rem;
  }

  .service-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0;
  }

  /* ==========================================================================
     CAPACITACIONES (INFORMACIÓN, TEMARIO Y FORMULARIO)
     ========================================================================== */
  .course-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  @media (min-width: 1024px) {
    .course-layout {
      grid-template-columns: 3fr 2fr;
    }
  }

  .course-info-panel {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .course-detail-card {
    background-color: var(--grey-light);
    border: 1px solid var(--grey-medium);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
  }

  .course-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
  }

  @media (min-width: 600px) {
    .course-details-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  .detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .detail-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--orange-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .detail-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy-primary);
  }

  /* Temario */
  .syllabus-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .syllabus-item {
    border: 1px solid var(--grey-medium);
    border-radius: var(--border-radius-md);
    overflow: hidden;
  }

  .syllabus-header {
    background-color: var(--white-base);
    padding: 1.25rem 1.5rem;
    width: 100%;
    text-align: left;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--navy-primary);
    font-size: 1rem;
    transition: background-color var(--transition-smooth);
  }

  .syllabus-header:hover {
    background-color: var(--grey-light);
  }

  .syllabus-icon {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-smooth);
    fill: var(--ocre-secondary);
  }

  .syllabus-item.active .syllabus-icon {
    transform: rotate(180deg);
  }

  .syllabus-content {
    background-color: var(--white-base);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-smooth), padding var(--transition-smooth);
  }

  .syllabus-item.active .syllabus-content {
    padding: 1.25rem 1.5rem;
    max-height: 300px;
    border-top: 1px solid var(--grey-medium);
  }

  .syllabus-content ul {
    list-style: disc;
    padding-left: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  /* Público Objetivo */
  .audience-box {
    margin-top: 2rem;
  }

  .audience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .audience-tag {
    background-color: rgba(6, 30, 79, 0.05);
    color: var(--navy-primary);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: var(--border-radius-full);
    border: 1px solid rgba(6, 30, 79, 0.1);
  }

  /* Formulario Curso */
  .course-form-panel {
    background-color: var(--navy-primary);
    color: var(--white-base);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    height: fit-content;
  }

  .course-form-panel h3 {
    color: var(--white-base);
    margin-bottom: 0.5rem;
  }

  .course-form-panel p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-bottom: 2rem;
  }

  .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .form-group label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ocre-secondary);
  }

  .form-control {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-md);
    padding: 0.85rem 1rem;
    color: var(--white-base);
    font-size: 0.95rem;
    width: 100%;
    transition: border-color var(--transition-smooth), background-color var(--transition-smooth), box-shadow var(--transition-smooth);
  }

  .form-control:focus {
    outline: none;
    border-color: var(--orange-accent);
    background-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(192, 113, 51, 0.25);
  }

  .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
  }

  select.form-control option {
    background-color: var(--navy-primary);
    color: var(--white-base);
  }

  /* Validación accesible en tiempo de escritura (después de interacción) */
  .form-control:user-invalid {
    border-color: #f87171 !important;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.25) !important;
  }

  .form-submit-btn {
    width: 100%;
    margin-top: 1rem;
  }

  /* ==========================================================================
     BLOG EPM (CARDS, FILTROS Y GALERÍA)
     ========================================================================== */
  .blog-filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
  }

  .filter-btn {
    background-color: var(--grey-light);
    border: 1px solid var(--grey-medium);
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy-primary);
    cursor: pointer;
    transition: all var(--transition-smooth);
  }

  .filter-btn:hover {
    background-color: var(--grey-medium);
  }

  .filter-btn.active {
    background-color: var(--orange-accent);
    border-color: var(--orange-accent);
    color: var(--white-base);
  }

  .blog-card {
    background-color: var(--white-base);
    border: 1px solid var(--grey-medium);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .blog-image-placeholder {
    width: 100%;
    aspect-ratio: 16/10;
    background-color: var(--navy-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.25);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
  }

  .blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }

  .blog-category-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--orange-accent);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
  }

  .blog-card-title {
    font-size: 1.1rem;
    color: var(--navy-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
  }

  .blog-card-excerpt {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.25rem;
  }

  .blog-read-more {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ocre-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: auto;
  }

  .blog-read-more svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform var(--transition-smooth);
  }

  .blog-read-more:hover svg {
    transform: translateX(3px);
  }

  /* Galería */
  .gallery-section-wrapper {
    margin-top: 5rem;
    border-top: 1px solid var(--grey-medium);
    padding-top: 4rem;
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
  }

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

  .gallery-item {
    aspect-ratio: 1;
    background-color: var(--grey-light);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--grey-medium);
    cursor: pointer;
  }

  .gallery-item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--grey-dark);
    font-size: 0.75rem;
    gap: 0.5rem;
  }

  .gallery-item-placeholder svg {
    width: 32px;
    height: 32px;
    fill: rgba(6,30,79,0.15);
  }

  /* ==========================================================================
     PRODUCTOS Y DISTRIBUIDORES
     ========================================================================== */
  .products-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  @media (min-width: 1024px) {
    .products-layout {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  .catalog-card {
    background-color: var(--white-base);
    border: 1px solid var(--grey-medium);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: var(--shadow-md);
    border-top: 5px solid var(--orange-accent);
  }

  .catalog-card.secondary {
    border-top: 5px solid var(--ocre-secondary);
  }

  .catalog-header {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .catalog-icon {
    width: 48px;
    height: 48px;
    color: var(--orange-accent);
    fill: currentColor;
  }

  .catalog-card.secondary .catalog-icon {
    color: var(--ocre-secondary);
  }

  .catalog-title {
    font-size: 1.3rem;
    color: var(--navy-primary);
    margin-bottom: 0;
  }

  .catalog-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
  }

  /* Distribuidores Preservia */
  .brand-highlight-box {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--navy-primary) 0%, var(--bg-navy-dark) 100%);
    color: var(--white-base);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    border: 1px solid rgba(204,145,80,0.3);
    margin-top: 2rem;
  }

  .brand-highlight-box h3 {
    color: var(--ocre-secondary);
    font-size: 1.5rem;
    margin-bottom: 0;
  }

  .brand-highlight-box p {
    color: rgba(255,255,255,0.85);
    max-width: 700px;
    margin-bottom: 0;
    line-height: 1.6;
  }

  .brand-logo-simulated {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--white-base);
    border: 2px solid var(--ocre-secondary);
    padding: 0.5rem 2rem;
    border-radius: var(--border-radius-sm);
  }

  .ambassadors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    width: 100%;
  }

  .ambassador-badge {
    background-color: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ocre-secondary);
  }

  /* ==========================================================================
     CONTACTO Y CAPTURA
     ========================================================================== */
  .contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  @media (min-width: 1024px) {
    .contact-layout {
      grid-template-columns: 5fr 4fr;
    }
  }

  .contact-form-wrapper {
    background-color: var(--white-base);
    border: 1px solid var(--grey-medium);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
  }

  .contact-form-wrapper h3 {
    margin-bottom: 1.5rem;
  }

  .contact-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  @media (min-width: 600px) {
    .contact-form {
      grid-template-columns: repeat(2, 1fr);
    }
    .form-group-full {
      grid-column: span 2;
    }
  }

  .contact-form .form-control {
    background-color: var(--grey-light);
    border: 1px solid var(--grey-medium);
    color: var(--navy-primary);
  }

  .contact-form .form-control:focus {
    background-color: var(--white-base);
    border-color: var(--orange-accent);
    box-shadow: 0 0 0 3px rgba(192, 113, 51, 0.15);
  }

  .contact-form .form-control::placeholder {
    color: var(--grey-dark);
    opacity: 0.7;
  }

  .contact-form label {
    color: var(--navy-primary);
  }

  /* Panel de Información Contiguo */
  .contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .qr-card {
    background-color: var(--grey-light);
    border: 1px solid var(--grey-medium);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .qr-container {
    width: 180px;
    height: 180px;
    background-color: var(--white-base);
    border: 2px solid var(--ocre-secondary);
    border-radius: var(--border-radius-md);
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .qr-code-placeholder {
    width: 100%;
    height: 100%;
    fill: var(--navy-primary);
  }

  .qr-caption {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy-primary);
    line-height: 1.4;
  }

  .info-links-card {
    background-color: var(--navy-primary);
    color: var(--white-base);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .info-links-card h4 {
    color: var(--ocre-secondary);
    margin-bottom: 0.5rem;
  }

  .contact-detail-row {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .contact-detail-icon {
    width: 24px;
    height: 24px;
    color: var(--ocre-secondary);
    fill: currentColor;
    flex-shrink: 0;
  }

  .contact-detail-text {
    font-size: 0.95rem;
  }

  .contact-detail-text a {
    transition: color var(--transition-smooth);
  }

  .contact-detail-text a:hover {
    color: var(--ocre-secondary);
  }

  /* ==========================================================================
     FOOTER GLOBAL COMPARTIDO
     ========================================================================== */
  footer {
    background-color: var(--dark-brown);
    color: var(--white-base);
    padding-block: 4rem 2rem;
    font-size: 0.9rem;
    border-top: 4px solid var(--orange-accent);
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
  }

  @media (min-width: 768px) {
    .footer-grid {
      grid-template-columns: 2fr 1fr 1fr;
    }
  }

  .footer-about {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .footer-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
  }

  .footer-logo-img {
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
  }

  .footer-logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white-base);
  }

  .footer-logo-slogan {
    font-size: 0.7rem;
    color: var(--ocre-secondary);
    font-weight: 700;
  }

  .footer-about-text {
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
  }

  .footer-column-title {
    font-size: 1rem;
    color: var(--ocre-secondary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .footer-link {
    color: rgba(255,255,255,0.75);
    transition: color var(--transition-smooth), transform var(--transition-smooth);
    display: inline-block;
  }

  .footer-link:hover {
    color: var(--orange-accent);
    transform: translateX(3px);
  }

  .footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    color: rgba(255,255,255,0.75);
  }

  .footer-contact-item {
    display: flex;
    gap: 0.75rem;
    line-height: 1.4;
  }

  .footer-contact-icon {
    width: 18px;
    height: 18px;
    color: var(--ocre-secondary);
    fill: currentColor;
    flex-shrink: 0;
    margin-top: 2px;
  }

  .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
  }

  @media (min-width: 768px) {
    .footer-bottom {
      flex-direction: row;
      justify-content: space-between;
      text-align: left;
    }
  }

  .footer-legal-links {
    display: flex;
    gap: 1.5rem;
  }

  .footer-legal-link {
    color: rgba(255,255,255,0.5);
    transition: color var(--transition-smooth);
  }

  .footer-legal-link:hover {
    color: var(--ocre-secondary);
  }
}

@layer components {
  /* ==========================================================================
     CLIENTES / CONVENIOS
     ========================================================================== */
  .client-logos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  @media (min-width: 600px) {
    .client-logos-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  .client-logo-card {
    background-color: var(--white-base);
    border: 1px solid var(--grey-medium);
    padding: 1.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  }

  .client-logo-card:hover {
    transform: translateY(-3px);
    border-color: var(--orange-accent);
    box-shadow: var(--shadow-md);
  }

  .client-logo-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy-primary);
  }

  .client-logo-subtitle {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--grey-dark);
    text-transform: uppercase;
  }

  /* ==========================================================================
     SKULL BULLETS LIST
     ========================================================================== */
  ul.skull-bullets {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  ul.skull-bullets li {
    position: relative;
    padding-left: 2rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
  }

  ul.skull-bullets li::before {
    content: '💀';
    position: absolute;
    left: 0;
    top: 0.1rem;
    font-size: 1rem;
  }

  /* ==========================================================================
     CALENDARIO DE FECHAS
     ========================================================================== */
  .calendar-section-wrapper {
    margin-top: 4rem;
    border-top: 1px solid var(--grey-medium);
    padding-top: 3.5rem;
  }

  .calendar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
  }

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

  @media (min-width: 1024px) {
    .calendar-grid {
      grid-template-columns: repeat(4, 1fr);
    }
  }

  .calendar-month-card {
    background-color: var(--white-base);
    border: 1px solid var(--grey-medium);
    border-radius: var(--border-radius-md);
    padding: 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth);
  }

  .calendar-month-card.active {
    border: 2px solid var(--orange-accent);
    box-shadow: var(--shadow-md);
  }

  .calendar-month-name {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--grey-dark);
  }

  .calendar-month-card.active .calendar-month-name {
    color: var(--orange-accent);
  }

  .calendar-dates {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy-primary);
  }

  .calendar-status {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--grey-dark);
  }

  .calendar-month-card.active .calendar-status {
    color: var(--ocre-secondary);
  }

  .calendar-month-card.disabled {
    opacity: 0.5;
    background-color: var(--grey-light);
  }
}

@layer components {
  /* ==========================================================================
     TABS E INTERACTIVOS DE INFORMACIÓN
     ========================================================================== */
  .tabs-container {
    width: 100%;
    margin-block: 2rem;
    border: 1px solid var(--grey-medium);
    border-radius: var(--border-radius-lg);
    background-color: var(--white-base);
    overflow: hidden;
    box-shadow: var(--shadow-md);
  }

  .tab-buttons {
    display: flex;
    background-color: var(--grey-light);
    border-bottom: 1px solid var(--grey-medium);
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
  }

  .tab-buttons::-webkit-scrollbar {
    display: none; /* Safari & Chrome */
  }

  .tab-btn {
    flex: 1;
    min-width: 150px;
    padding: 1.25rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: all var(--transition-smooth);
    font-family: var(--font-primary);
  }

  .tab-btn:hover {
    color: var(--navy-primary);
    background-color: rgba(6, 30, 79, 0.02);
  }

  .tab-btn.active {
    color: var(--orange-accent);
    border-bottom-color: var(--orange-accent);
    background-color: var(--white-base);
  }

  .tab-panel {
    display: none;
    padding: 2.5rem;
    animation: fadeIn var(--transition-smooth);
  }

  .tab-panel.active {
    display: block;
  }

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

  /* ==========================================================================
     COLLAPSIBLES / VER MÁS
     ========================================================================== */
  .collapse-wrapper {
    width: 100%;
    margin-top: 1rem;
  }

  .collapse-trigger {
    background: none;
    border: none;
    color: var(--ocre-secondary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0;
    transition: color var(--transition-smooth);
    font-family: var(--font-primary);
  }

  .collapse-trigger:hover {
    color: var(--orange-accent);
  }

  .collapse-trigger svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform var(--transition-smooth);
  }

  .collapse-trigger.active svg {
    transform: rotate(180deg);
  }

  .collapse-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-smooth), padding-top var(--transition-smooth);
  }

  .collapse-content.active {
    max-height: 1200px; /* Suficiente para contenidos largos */
    padding-top: 1rem;
  }

  /* ==========================================================================
     ARTÍCULOS COMPLETOS / INLINE READER
     ========================================================================== */
  .article-full-view {
    display: none;
    grid-column: 1 / -1;
    background-color: var(--grey-light);
    border: 1px solid var(--grey-medium);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    margin-top: 2rem;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.05);
    animation: slideDown var(--transition-smooth);
  }

  .article-full-view.active {
    display: block;
  }

  .article-header {
    border-bottom: 2px solid var(--ocre-secondary);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .article-meta {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--orange-accent);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
  }

  .article-title-expanded {
    font-size: 1.75rem;
    color: var(--navy-primary);
    margin-bottom: 0;
  }

  .article-body {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
  }

  .article-body p {
    margin-bottom: 1.5rem;
  }

  .article-body ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .article-close-btn {
    background-color: transparent;
    border: 1px solid var(--grey-medium);
    color: var(--navy-primary);
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: 1rem;
    transition: all var(--transition-smooth);
    font-family: var(--font-primary);
  }

  .article-close-btn:hover {
    background-color: var(--navy-primary);
    color: var(--white-base);
    border-color: var(--navy-primary);
  }

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

  /* Mobile responsive optimizations for padding and spacing */
  @media (max-width: 767px) {
    .course-detail-card {
      padding: 1.5rem 1.25rem;
    }

    .course-form-panel {
      padding: 1.5rem 1.25rem;
    }

    .tab-panel {
      padding: 1.5rem 1rem;
    }

    .docente-info {
      padding: 1.25rem 1rem;
    }

    .syllabus-header {
      padding: 1rem 0.75rem;
      font-size: 0.85rem;
    }

    .service-card {
      padding: 1.5rem;
    }

    .catalog-card {
      padding: 1.5rem 1.25rem;
    }

    /* Vertical stack for tab buttons to avoid horizontal overflow */
    .tab-buttons {
      flex-direction: column;
    }

    .tab-btn {
      width: 100%;
      min-width: 0;
      border-bottom: 1px solid var(--grey-medium);
      border-right: none;
      padding: 1rem 1.25rem;
    }

    .tab-btn.active {
      border-bottom-color: var(--orange-accent);
      background-color: rgba(6, 30, 79, 0.03);
    }

    /* Prevent overflow in Preservia Brand Box */
    .brand-highlight-box {
      padding: 2rem 1.25rem;
    }

    .brand-logo-simulated {
      font-size: 1.5rem;
      padding: 0.5rem 1rem;
      letter-spacing: 2px;
    }

    .ambassadors-grid {
      gap: 1rem;
    }
  }
}
