/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta Avantgard Robotics */
    --rhodonite: #38374C;
    --coral-rose: #E58554;
    --golden-poppy: #E3713D;
    --chinese-red: #C52938;
    --putty: #D3C8B7;
    
    /* Neutrales */
    --white: #FFFFFF;
    --black: #1A1A1A;
    --gray-light: #F5F5F5;
    --gray-mid: #E0E0E0;
    --gray-dark: #666666;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background: var(--white);
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

a {
    color: var(--coral-rose);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover { opacity: 0.8; }

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: transparent;
  transition: background-color 0.3s ease;
  gap: 30px;
}

.navbar-logo-link {
  flex-shrink: 0;
  display: block;
}

.navbar-logo {
  width: 120px;
  display: block;
}

/* NAVBAR CON FONDO (cuando haces scroll) */
.navbar.scrolled {
  background-color: rgba(56, 55, 76, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* LISTA DEL MENÚ */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 12px;
  margin: 0;
  padding: 0;
}

/* BOTONES PÍLDORA */
.nav-menu a {
  color: white;
  text-decoration: none;
  font-size: 15px;
  font-family: Arial, sans-serif;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 25px;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  display: block;
}

.nav-menu a:hover {
  background-color: rgba(229, 133, 84, 0.9);
  border-color: #E58554;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 133, 84, 0.3);
}

.nav-menu a.active {
  background-color: rgba(197, 41, 56, 0.9);
  border-color: #C52938;
}
/* Hero Section con Video */
.hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0;
}

/* Video de fondo */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

       
/* .hero-content ya no se usa - el contenido está en .programa-intro */
/*
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 4rem 0;
    margin-bottom: 6rem;
    text-align: center;
}
*/

/* Nueva sección de introducción del programa */
.programa-intro {
    background: linear-gradient(135deg, #38374C 0%, #2a2938 100%);
    padding: 5rem 0;
    margin-top: 4rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.programa-intro .container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 2rem;
}

.programa-titulo {
    color: var(--white);
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.programa-intro .hero-tagline {
    font-size: 1.3rem;
    color: var(--coral-rose);
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 2.5rem;
    display: block;
}

.convocatoria-fecha {
    font-size: 1.15rem;
    color: var(--white);
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 2rem;
    display: block;
    opacity: 0.95;
    letter-spacing: 0.3px;
}

.programa-intro .hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}


.hero h1 {
    color: var(--white);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.hero-tagline {
    font-size: 1.3rem;
    color: var(--coral-rose);
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}


.scroll-indicator::after {
    content: '↓';
    font-size: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: var(--coral-rose);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--golden-poppy);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 133, 84, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Section */
section {
    margin-bottom: 6rem;
}

#que-es {
    margin-top: 3rem;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--gray-dark);
}

#para-quien-es {
    margin-top: 3rem;
}

#la-experiencia-completa {
    margin-top: 5rem;
}

#mentores-principales {
    margin-top: 5rem;
}

#contenedor-final {
    margin-top: 3rem;
}

/* Pilares Grid */
.pilares-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pilar-card {
    background: var(--white);
    border: 1px solid var(--gray-mid);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.pilar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.pilar-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--coral-rose) 0%, var(--golden-poppy) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.875rem;
    text-align: center;
    padding: 1rem;
    position: relative;  /* AGREGAR */
    overflow: hidden;    /* AGREGAR */
}

/* AGREGAR: Estilo para las imágenes dentro */
.pilar-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.pilar-card:nth-child(2) .pilar-image {
    background: linear-gradient(135deg, var(--golden-poppy) 0%, var(--chinese-red) 100%);
}

.pilar-card:nth-child(3) .pilar-image {
    background: linear-gradient(135deg, var(--chinese-red) 0%, var(--rhodonite) 100%);
}

.pilar-content {
    padding: 1.5rem;
}

.pilar-content h3 {
    margin-bottom: 0.75rem;
}

.pilar-content p {
    font-size: 0.95rem;
    color: var(--gray-dark);
    margin: 0;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--white);
    border: 1px solid var(--gray-mid);
    border-radius: 12px;
    overflow: hidden;
}

.two-column-content {
    padding: 3rem;
}

.two-column-image {
    min-height: 400px;
    background: linear-gradient(135deg, var(--rhodonite) 0%, #2a2937 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.95rem;
    text-align: center;
    padding: 2rem;
    position: relative;  /* AGREGAR */
    overflow: hidden;    /* AGREGAR */
}

.two-column-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.gallery-item {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--coral-rose) 0%, var(--golden-poppy) 100%);
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.gallery-item:nth-child(2) {
    background: linear-gradient(135deg, var(--golden-poppy) 0%, var(--chinese-red) 100%);
}

.gallery-item:nth-child(3) {
    background: linear-gradient(135deg, var(--chinese-red) 0%, var(--rhodonite) 100%);
}

.gallery-item:nth-child(4) {
    background: linear-gradient(135deg, var(--rhodonite) 0%, #2a2937 100%);
}

/* Timeline */
.timeline {
    display: grid;
    gap: 1.5rem;
    margin-top: -1rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.5rem;
    background: var(--white);
    border: 1px solid var(--gray-mid);
    border-radius: 12px;
    overflow: hidden;
}

.timeline-image {
    height: 100%;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.875rem;
    text-align: center;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.timeline-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.timeline-item:nth-child(1) .timeline-image {
    background: linear-gradient(135deg, var(--coral-rose) 0%, var(--golden-poppy) 100%);
}

.timeline-item:nth-child(2) .timeline-image {
    background: linear-gradient(135deg, var(--golden-poppy) 0%, var(--chinese-red) 100%);
}

.timeline-item:nth-child(3) .timeline-image {
    background: linear-gradient(135deg, var(--chinese-red) 0%, var(--rhodonite) 100%);
}

.timeline-item:nth-child(4) .timeline-image {
    background: linear-gradient(135deg, var(--rhodonite) 0%, #2a2937 100%);
}

.timeline-content {
    padding: 1.5rem;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.75rem;
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--gray-dark);
    white-space: nowrap;
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--gray-dark);
    margin: 0;
}

/* Beneficios y Resultados */
.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.beneficio-card {
    background: var(--white);
    border: 1px solid var(--gray-mid);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.beneficio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.beneficio-card.destacado {
    border: 2px solid var(--coral-rose);
    background: linear-gradient(135deg, rgba(229, 133, 84, 0.05), rgba(197, 41, 56, 0.05));
}

.beneficio-icono {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.beneficio-titulo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--rhodonite);
    margin-bottom: 1rem;
}

.beneficio-descripcion {
    font-size: 1rem;
    color: var(--gray-dark);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.beneficio-detalles {
    list-style: none;
    padding: 0;
    margin: 0;
}

.beneficio-detalles li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
    color: var(--gray-dark);
}

.beneficio-detalles li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--coral-rose);
    font-weight: bold;
}

/* Ventajas competitivas */
.ventajas-section {
    background: var(--gray-light);
    border-radius: 12px;
    padding: 3rem 2rem;
    margin: 3rem 0;
}

.ventajas-titulo {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--rhodonite);
    margin-bottom: 2rem;
}

.ventajas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

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

.ventaja-numero {
    font-size: 3rem;
    font-weight: bold;
    color: var(--coral-rose);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.ventaja-texto {
    font-size: 0.875rem;
    color: var(--gray-dark);
    line-height: 1.5;
}

/* CTA de beneficios */
.beneficios-cta {
    background: linear-gradient(135deg, var(--rhodonite), #2a2937);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    margin-top: 3rem;
}

.beneficios-cta .cta-icono {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.beneficios-cta .cta-titulo {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1rem;
}

.beneficios-cta .cta-descripcion {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

/* CTA Final */
.cta-final {
    position: relative;
    background: linear-gradient(135deg, rgba(56, 55, 76, 0.95) 0%, rgba(42, 41, 55, 0.98) 100%);
    border-radius: 16px;
    padding: 4rem 3rem;
    text-align: center;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cta-final::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('multimedia/osaka-night.webp');
    background-size: cover;
    background-position: center;
    z-index: 0;
    opacity: 0.2;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.cta-final h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-final p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.newsletter-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.newsletter-form p {
    text-align: left;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.newsletter-input {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input input {
    flex: 1;
    padding: 0.875rem;
    border-radius: 8px;
    border: none;
    font-size: 0.95rem;
}

.newsletter-input button {
    padding: 0.875rem 1.75rem;
    background: var(--coral-rose);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
footer {
    margin-top: 5rem;
    padding: 3rem 0;
    border-top: 1px solid var(--gray-mid);
    text-align: center;
}

footer p {
    font-size: 0.95rem;
    color: var(--gray-dark);
    margin-bottom: 0.5rem;
}

footer p:last-child {
    font-size: 0.875rem;
    color: var(--gray-dark);
    margin: 0;
}

/* Gallery item hover */
.gallery-item {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ========================================
   RESPONSIVE DESIGN
   Breakpoints: 1023px (tablet) / 767px (mobile) / 480px (small mobile)
   ======================================== */

/* HAMBURGUESA (oculta en desktop) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: 0.3s;
}

/* TABLET (max-width: 1023px) */
@media (max-width: 1023px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.5rem; }

    .container {
        padding: 0 1.5rem;
    }

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

    .two-column {
        grid-template-columns: 1fr;
    }

    .two-column-image {
        min-height: 280px;
    }

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

    .timeline-item {
        grid-template-columns: 180px 1fr;
    }

    .beneficios-grid {
        grid-template-columns: 1fr;
    }

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

/* MOBILE (max-width: 767px) */
@media (max-width: 767px) {
    html, body {
        overflow-x: hidden;
    }

    /* NAVBAR */
    .navbar {
        padding: 12px 20px;
    }

    .navbar-logo {
        width: 90px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: rgba(56, 55, 76, 0.98);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.2);
        padding: 20px 0;
        z-index: 999;
        margin: 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 14px 0;
    }

    .hamburger {
        display: flex;
        padding: 6px;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* HERO */
    .hero {
        height: 55vh;
        min-height: 380px;
        margin-bottom: 0;
    }

    /* PROGRAMA INTRO */
    .programa-intro {
        padding: 3rem 0;
        margin-top: 2rem;
    }

    .programa-intro .container {
        padding: 0 1.5rem;
    }

    .programa-titulo {
        font-size: 2.5rem;
    }

    .programa-intro .hero-tagline {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .convocatoria-fecha {
        font-size: 1rem;
    }

    /* SECTIONS y CONTAINERS */
    section {
        margin-bottom: 4rem;
    }

    .container {
        padding: 0 1.25rem;
    }

    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.15rem; }

    /* PILARES */
    .pilares-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pilar-image {
        height: 180px;
    }

    /* TWO COLUMN */
    .two-column {
        grid-template-columns: 1fr;
    }

    .two-column-content {
        padding: 2rem 1.5rem;
    }

    .two-column-image {
        min-height: 240px;
        order: -1;
    }

    /* GALLERY */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    /* TIMELINE */
    .timeline-item {
        grid-template-columns: 1fr;
    }

    .timeline-image {
        min-height: 180px;
        height: 180px;
    }

    .timeline-content {
        padding: 1.25rem;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    /* BENEFICIOS */
    .beneficios-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .beneficio-card {
        padding: 1.5rem;
    }

    .ventajas-section {
        padding: 2rem 1.25rem;
    }

    .ventajas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .ventaja-numero {
        font-size: 2.25rem;
    }

    .beneficios-cta {
        padding: 2rem 1.5rem;
    }

    .beneficios-cta .cta-titulo {
        font-size: 1.4rem;
    }

    .beneficios-cta .cta-descripcion {
        font-size: 1rem;
    }

    /* CTA FINAL */
    .cta-final {
        padding: 3rem 1.5rem;
        min-height: auto;
    }

    .cta-final h2 {
        font-size: 1.65rem;
    }

    .newsletter-form {
        padding: 1.5rem;
    }

    .newsletter-input {
        flex-direction: column;
    }

    .newsletter-input input,
    .newsletter-input button {
        width: 100%;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        padding: 0.95rem 1.5rem;
        font-size: 1rem;
    }

    /* FOOTER */
    footer {
        padding: 2.5rem 0;
        margin-top: 3rem;
    }
}

/* MOBILE PEQUEÑO (max-width: 480px) */
@media (max-width: 480px) {
    .navbar {
        padding: 10px 15px;
    }

    .navbar-logo {
        width: 75px;
    }

    .hero {
        height: 50vh;
        min-height: 320px;
    }

    .programa-intro {
        padding: 2.5rem 0;
    }

    .programa-titulo {
        font-size: 2rem;
    }

    .programa-intro .hero-tagline {
        font-size: 1rem;
    }

    .convocatoria-fecha {
        font-size: 0.95rem;
    }

    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.1rem; }

    section {
        margin-bottom: 3rem;
    }

    .container {
        padding: 0 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .ventajas-grid {
        grid-template-columns: 1fr;
    }

    .cta-final {
        padding: 2.5rem 1.25rem;
    }

    .cta-final h2 {
        font-size: 1.5rem;
    }

    .beneficio-card {
        padding: 1.25rem;
    }
}

