:root{
  --blue-900:#041E42;
  --blue-800:#06274A;
  --accent: #FFD166;
  --accent-2:#E0B24A;
  --white:#ffffff;
  --muted: rgba(255,255,255,0.75);
  --glass: rgba(255,255,255,0.06);
  --glass-strong: rgba(0,0,0,0.45);
  --max-width:1200px;
  --radius:12px;
  --card-shadow: 0 12px 30px rgba(2,6,23,0.45);
  --ease: cubic-bezier(.2,.9,.2,1);
  --whatsapp-green: #16a34a; 
  --white-100:#fff;
}
*{box-sizing:border-box}

html, body {
    min-height: 100%;
    margin: 0;
    font-family: Montserrat, system-ui, Arial, sans-serif;
    background: linear-gradient(180deg,var(--blue-900),#001029);
    color: var(--white);
    -webkit-font-smoothing: antialiased;
    
    /* AGREGA ESTO: */
    width: 100%;
    overflow-x: hidden; /* Corta cualquier cosa que se salga del ancho */
}

a{color:inherit;text-decoration:none;transition: color 0.2s;}
a:hover{color:var(--accent);}

.wrap{max-width:var(--max-width);margin:0 auto;padding:20px}

/* Header */
header.site-header{
  position:sticky;top:0;z-index:90;
  background:linear-gradient(180deg, rgba(4,30,66,0.98), rgba(4,30,66,0.9));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav{
  display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 20px;
}
.brand{display:flex;align-items:center;gap:12px}
.logo-mark{
  width:52px;height:52px;border-radius:10px;background:linear-gradient(135deg,var(--white-100),var(--white-100));display:inline-flex;align-items:center;justify-content:center;color:var(--blue-900);font-weight:800;font-size:1.05rem;
  box-shadow:0 8px 26px rgba(1,10,30,0.45); flex-shrink: 0;
}
.brand h1{font-size:1.05rem;margin:0;letter-spacing:0.2px}
.brand .tag{font-size:0.82rem;color:rgba(255,255,255,0.85);margin-top:2px}

nav[aria-label] {display:flex;align-items:center;gap:16px}
.menu{display:flex;gap:18px;list-style:none;margin:0;padding:0}
.menu a{padding:8px 10px;border-radius:8px;font-weight:600;color:var(--muted);transition:color .18s var(--ease)}
.menu a:hover{color:var(--accent); transform:translateY(-3px);box-shadow:0 18px 40px rgba(0,0,0,0.45)}

.cta{display:flex;align-items:center;gap:10px}
.btn-cta{background:var(--accent);color:var(--blue-900);font-weight:800;padding:10px 16px;border-radius:10px;border:none;cursor:pointer;box-shadow:0 10px 26px rgba(0,0,0,0.35);transition:transform .18s var(--ease), box-shadow .18s var(--ease); text-align: center;}
.btn-cta:hover{transform:translateY(-3px);box-shadow:0 18px 40px rgba(0,0,0,0.45);color:#041e42;}
.ghost{background:transparent;border:1px solid rgba(255,255,255,0.08);padding:8px 12px;border-radius:10px;color:var(--muted);font-weight:700}
#mobileMenu .btn-cta{background:var(--accent);color:var(--blue-900);font-weight:800;padding:10px 16px;border-radius:10px;border:none;cursor:pointer;box-shadow:0 10px 26px rgba(0,0,0,0.35);transition:transform .18s var(--ease), box-shadow .18s var(--ease); text-align: center;}
/* Mobile Nav Toggle */
.nav-toggle{display:none;background:rgba(255,255,255,0.1);border:1px solid rgba(255,255,255,0.1);color:var(--white);font-weight:700;padding:10px 14px;border-radius:8px; cursor: pointer;}
.mobile-menu{
    display:none;
    flex-direction:column;
    gap:10px;
    padding:20px;
    background: var(--blue-900);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    animation: slideDown 0.3s ease-out;
}
@keyframes slideDown { from {opacity:0; transform:translateY(-10px);} to {opacity:1; transform:translateY(0);} }
.mobile-menu a { display: block; text-align: center; padding: 12px; border-radius: 8px; background: rgba(255,255,255,0.03); }

/* Hero */
.hero{
  position:relative;overflow:hidden;padding:48px 20px;
  background-color: var(--blue-900); 
}
.hero-inner{max-width:var(--max-width);margin:0 auto;display:grid;grid-template-columns:1fr 420px;gap:36px;align-items:center}
.eyebrow{display:inline-block;background:var(--glass);padding:8px 12px;border-radius:999px;color:var(--accent);font-weight:800;margin-bottom:12px; font-size: 0.85rem;}

.hero h2{
    font-size:2.6rem;
    margin:0 0 12px;
    line-height:1.05;
    text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}

.hero p{color:rgba(255,255,255,0.92);font-size:1.05rem;margin-bottom:24px; line-height: 1.6;}
.hero-actions{display:flex;gap:12px;align-items:center; flex-wrap: wrap;}
.secondary{background:transparent;border:1px solid rgba(255,255,255,0.10);padding:10px 14px;border-radius:10px;color:var(--muted);font-weight:700; text-align: center;}

/* Slider */
.slider{position:relative;border-radius:var(--radius);overflow:hidden;box-shadow:var(--card-shadow);background:#071430}
#slides {
    display: flex;
    transition: transform 0.5s ease-in-out; /* Esto hace el movimiento fluido */
    width: 100%;
}
.slide{min-width:100%;display:grid;grid-template-columns:1fr;gap:0;align-items:center;padding:36px}
.slide .left{padding-right:12px}
.slide .meta{color:var(--accent);font-weight:800;margin-bottom:8px}
.slide h3{margin:0 0 8px;font-size:1.35rem}
.slide p{margin:0;color:rgba(255,255,255,0.85); font-size: 0.95rem;}
.slide-figure{margin-top:18px;border-radius:10px;overflow:hidden;height:170px;background-size:cover;background-position:center;margin-bottom:25px;}
.slider-nav{position:absolute;left:12px;right:12px;bottom:12px;display:flex;justify-content:space-between;align-items:center;gap:12px;}
.dots{display:flex;gap:8px}
.dot{width:10px;height:10px;border-radius:999px;background:rgba(255,255,255,0.12);cursor:pointer;border:1px solid rgba(255,255,255,0.04)}
.dot.active{background:var(--accent);transform:scale(1.12)}
.arrow{background:rgba(224,178,74);border-radius:8px;padding:8px;border:1px solid rgba(255,255,255,0.04);cursor:pointer}

/* 1. Contenedor principal: le damos una altura definida y respiro */
.infinite-scroller {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(180deg, #041E42, #001029); 
    padding: 20px 0; /* Espacio justo para que no se corte el efecto hover */
    display: flex;
    align-items: center;
}

/* 2. El "riel" que se mueve */
.infinite-track {
    display: flex;
    width: calc(240px * 20); /* Ajusta según el número de items */
    animation: scroll 30s linear infinite;
}


/* 3. Cada item del carrusel */
.infinite-item {
    flex: 0 0 auto;
    width: 200px;  /* Medida exacta solicitada */
    height: 100px; /* Medida exacta solicitada */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 50px; /* Espacio entre logos */
    overflow: visible; /* Permitir que el logo respire si usamos escala */
}


/* 4. La imagen (el logo) - Aquí es donde ocurre la magia */
.infinite-item img {
    /* Forzamos a que intente llenar la caja */
    width: 160%; 
    height: 100%;
    
    /* 'contain' hace que el logo crezca hasta tocar el primer borde 
       (ya sea ancho o alto) sin deformarse */
    object-fit: cover; 
    
    /* Si tus logos tienen mucho espacio en blanco alrededor, 
       podemos "agrandarlos" artificialmente con scale */
    transform: scale(1.0);
    
    /*filter: grayscale(100%);*/
    opacity: 0.8;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* Efecto hover opcional para que se vea profesional */
.infinite-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.3); /* Crece un poquito al pasar el mouse */
}

/* 5. La animación (asegúrate de tenerla definida así) */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-240px * 11)); } /* Ajusta según la cantidad de logos */
}

/* Sections General */
section { padding: 80px 0; } /* Padding por defecto para desktop */

/* Cursos */
section.cursos{padding:60px 20px;background:linear-gradient(180deg,var(--blue-800),var(--blue-900))}
.section-head{text-align:center;margin-bottom:32px}
.section-head h3{color:var(--accent);font-size:2rem;margin:0 0 8px}
.section-head p{color:var(--muted);margin:0; padding: 0 10px;}
.grid {
  display: flex;         /* Cambiamos a Flex para mejor control de centrado */
  flex-wrap: wrap;       /* Permite que los elementos bajen si no caben */
  justify-content: center; /* ESTO centra los elementos si hay menos de los que caben */
  gap: 2rem;             /* El espacio entre las tarjetas */
  margin: 0 auto;
  max-width: 1200px;     /* Opcional: para que no se estiren demasiado */
} 
.card{
    flex: 0 1 350px;       /* No crecen, pueden encogerse, base de 350px */
    background:linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.06));
    border-radius:12px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,0.04);
    transition:transform .22s var(--ease), box-shadow .22s var(--ease)
}
.card:hover{transform:translateY(-8px);box-shadow:0 30px 60px rgba(2,6,23,0.6)}
.card .thumb{width: 100%;
    height: 290px; /* Tu altura deseada */
    object-fit: cover;  /*Rellena el cuadro sin deformar la imagen */
    object-position: top center; /* Centra la imagen perfectamente */}
.card .body{padding:20px}
.card h4{margin:0 0 8px;font-size:1.1rem; line-height: 1.4;}
.card p{margin:0;color:rgba(255,255,255,0.88);font-size:0.95rem; line-height: 1.5;}
.card .meta{display:flex;justify-content:space-between;align-items:center;margin-top:16px; flex-wrap: wrap; gap: 10px;}
.pill{background:rgba(255,255,255,0.06);padding:6px 10px;border-radius:999px;font-weight:800;color:var(--accent);font-size:0.8rem}
.enroll{background:var(--accent);color:var(--blue-900);padding:8px 14px;border-radius:8px;font-weight:800;border:none;cursor:pointer; font-size: 0.9rem;}
a.enroll:hover{background:var(--white)!important;color:var(--accent) !important;}
/* NUEVA CLASE PARA EL ASIDE */
.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: stretch;

    /* ESTO SOLUCIONA EL DESBORDAMIENTO EN MÓVIL: */
    width: 100%;       /* Asegura que no sea más ancho que su padre */
    max-width: 100%;   /* Límite duro */
    min-width: 0;      /* Truco vital: permite que el flexbox se encoja dentro de un grid */
}

/* Certificado 3D - Optimizado */
.bg-landing-certi {
    background-image: 
    linear-gradient(to right, rgba(4, 30, 66, 0.95), rgba(6, 39, 74, 0.85)),
    url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?q=80&w=1600'); 
    background-size: cover;
    background-position: center;
}
.cert-section {
    position: relative;
    width: 100%;
    padding: 60px 24px;
    min-height: 850px; 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.cert-container {
    max-width: var(--max-width);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.cert-text { flex: 1; padding-right: 40px; z-index: 10; }
.cert-text h2 { font-size: 2.5rem; color: var(--white); margin-bottom: 20px; line-height: 1.1; }
.cert-text span.highlight { color: var(--accent); }
.cert-text p { font-size: 1.1rem; color: var(--muted); margin-bottom: 30px; line-height: 1.6; }
.cert-features { display: flex; flex-direction: column; gap: 15px; margin-bottom: 30px; }
.cert-feature { display: flex; align-items: center; gap: 12px; color: var(--white); font-weight: 600; }
.check-icon { width: 24px; height: 24px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--blue-900); font-weight: bold; font-size: 14px; flex-shrink: 0; }

/* El envoltorio principal */
.cert-mockup-wrapper {
    display: block; /* O inline-block */
    width: fit-content; /* <--- LA CLAVE: Se ajusta al tamaño de lo que tiene dentro */
    width: -moz-fit-content; /* Soporte Firefox */
    margin: 0 auto; /* Centra todo el bloque en la pantalla */
    max-width: 100%;
}

/* =========================================
   ESTILOS BASE (DESKTOP)
   ========================================= */

/* El envoltorio principal */
.cert-mockup-wrapper {
    display: block;
    width: fit-content; 
    width: -moz-fit-content;
    margin: 0 auto;
    max-width: 100%;
}

/* El contenedor que gira */
.image-perspective-container {
    position: relative;
    width: fit-content !important; /* IMPORTANTE */
    width: -moz-fit-content !important;
    margin: 0 auto;
    perspective: 1000px;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

/* Imagen */
.cert-img-fluid {
    display: block;
    max-width: 500px; /* Ajusta según el tamaño de tu diseño */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15), 0 1px 8px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s ease;
}

/* Badge Verificado */
.verified-badge-float {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #28a745;
    color: white;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: 2px solid white;
    white-space: nowrap; 
}

/* Nombre Alumno (Base Desktop) */
.nombre-alumno-certificado {
    position: absolute;
    top: 33%;      
    right: 17%;    
    width: 90%;    
    text-align: right; 
    display: flex;
    justify-content: flex-end; 
    color: #053B81;
    font-family: 'Arial', sans-serif; 
    font-size: 1.2rem; 
    font-weight: bold;
    line-height: 1.2;
    z-index: 11;
    padding: 0; 
    pointer-events: none; 
}

/* =========================================
   MEDIA QUERIES (EN ORDEN DESCENDENTE)
   ========================================= */

/* 1. NUEVO: IPAD PRO HORIZONTAL (Landscape 1366px) */
/* Este bloque cubre el hueco que tenías. */
@media (max-width: 1366px) {
    .nombre-alumno-certificado {
        font-size: 1.1rem; /* Más grande que PC (1.2) pero menos que Tablet (2) */
        top: 33%;
        right: 22%; /* Ajuste fino para landscape */
    }
    
    .verified-badge-float {
        font-size: 0.8rem;
        padding: 5px 12px;
    }
}

/* 2. IPAD PRO VERTICAL / TABLETS (max 1024px) */
@media (max-width: 1024px) {
    .nombre-alumno-certificado {
        font-size: 1rem; 
        top: 35%; 
        right: 22%;
    }
}

/* 3. CELULARES GRANDES (max 844px) */
@media (max-width: 844px) {
    .verified-badge-float {
        font-size: 0.7rem;
        padding: 4px 10px;
        border-width: 1.5px;
    }
    
    .nombre-alumno-certificado {
        font-size: 1rem; 
        top: 35%;
        right: 23%;
    }
}

/* 4. CELULARES MEDIANOS (max 768px) */
@media (max-width: 768px) {
    .verified-badge-float {
        font-size: 0.7rem;
        padding: 4px 10px;
        border-width: 1.5px;
    }
    
    .nombre-alumno-certificado {
        font-size: 1rem; 
        top: 35%;
        right: 23%;
    }
}

/* 5. CELULARES PEQUEÑOS (max 480px) */
@media (max-width: 480px) {
    .verified-badge-float {
        font-size: 0.55rem; 
        padding: 3px 8px;
        top: 3px;
        right: 3px;
        border-width: 1px;
    }

    .nombre-alumno-certificado {
        font-size: 0.7rem; 
        top: 34%; 
        right: 22%;
        width: 70%; 
    }
}

/* Efecto Hover: La imagen se levanta ligeramente al pasar el mouse */
.image-perspective-container:hover .cert-img-fluid {
    transform: translateY(-10px) rotateX(2deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.diploma-card { 
    background: #fff; color: #333; padding: 40px; border-radius: 4px; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); border: 10px solid #f0f0f0; 
    position: relative; 
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%239C92AC' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E"); 
}
.diploma-header { text-align: center; border-bottom: 2px solid var(--gold); padding-bottom: 20px; margin-bottom: 20px; }
.diploma-title { font-size: 2rem; font-family: 'Times New Roman', serif; text-transform: uppercase; letter-spacing: 2px; color: var(--blue-900); font-weight: bold; }
.diploma-body { text-align: center; padding: 20px 0; }
.student-name { font-size: 2.2rem; color: #000; margin: 15px 0; font-family: 'Pinyon Script', cursive; }
.course-title { font-size: 1.4rem; font-weight: bold; color: var(--blue-800); margin-bottom: 10px; }
.diploma-footer { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 40px; }
.signature { text-align: center; border-top: 1px solid #999; padding-top: 10px; width: 45%; }
.seal { width: 80px; height: 80px; border-radius: 50%; border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center; color: var(--accent-2); font-weight: bold; font-size: 0.8rem; text-align: center; text-transform: uppercase; box-shadow: 0 0 0 4px rgba(224, 178, 74, 0.2); background: #fff; flex-shrink: 0; }
.verified-badge { position: absolute; top: -15px; right: -15px; background: #27ae60; color: white; padding: 8px 16px; border-radius: 50px; font-weight: bold; box-shadow: 0 5px 15px rgba(0,0,0,0.2); display: flex; align-items: center; gap: 6px; font-size: 0.9rem; }

/* Planes */
.plans-section {
    padding: 80px 20px;
    background: radial-gradient(circle at center top, var(--blue-800), var(--blue-900));
    position: relative;
}
/* Contenedor de los planes */
.plans-container {
    display: flex;
    flex-wrap: wrap;       /* Permite que las tarjetas bajen si no hay espacio */
    justify-content: center; /* Centra las tarjetas */
    gap: 30px;             /* Esto reemplaza tus márgenes de 55px de forma inteligente */
    padding: 20px;
    max-width: 1200px;     /* Evita que se estiren demasiado en pantallas gigantes */
    margin: 0 auto;        /* Centra el contenedor en la página */
}
/* Cada tarjeta de plan */
.plan-card {
    flex: 1;               /* Hace que todas midan lo mismo */
    min-width: 300px;      /* Tamaño mínimo para que no se vean muy flacas */
    max-width: 380px;      /* Tamaño máximo para mantener la estética */
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-10px); /* Efecto de levante al pasar el mouse */
}

/* Ajustes para Celulares (Responsive) */
@media (max-width: 768px) {
    .plans-container {
        gap: 20px;         /* Reducimos el espacio en móviles */
        padding: 10px;
    }
    
    .plan-card {
        min-width: 100%;   /* En celulares, cada tarjeta ocupa todo el ancho */
    }
}

.plan-card.basic, .plan-card.premium { transform: scale(0.92); z-index: 1; background: rgba(255, 255, 255, 0.02); }
.plan-card.pro { transform: scale(1.05); z-index: 10; background: #082f63; border: 2px solid var(--accent); box-shadow: 0 25px 60px rgba(0,0,0,0.4); }
.plan-card h4 { font-size: 1.5rem; margin: 0 0 10px; color: var(--accent); }
.plan-price { 
    display: flex;
    font-size: 2.5rem; 
    font-weight: 800; 
    margin-bottom: 20px; 
    color: var(--white) !important;
    align-items: center; 
}

.plan-price small {
    display: block;
    color: #fff !important; /* Color oscuro solicitado */
    text-decoration: line-through; /* Línea en el medio (tachado) */
    font-size: 0.9rem; /* Tamaño más pequeño */
    font-weight: 400; /* Menos grosor que el precio principal */
    margin-top: 5px;
    opacity: 0.8;
}


.plan-features { list-style: none; padding: 0; margin: 0 0 30px; width: 100%; text-align: left; }
.plan-features li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); color: var(--muted); display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }
.plan-features li::before { content: "✓"; color: var(--accent); font-weight: bold; }
.plan-features li.dim { opacity: 0.4; text-decoration: line-through; }
.plan-features li.dim::before { content: "×"; color: #666; }
.btn-plan { width: 100%; padding: 14px; border-radius: 12px; font-weight: 800; cursor: pointer; transition: 0.3s; border: none; }
.btn-plan.outline { background: transparent; border: 2px solid rgba(255,255,255,0.2); color: var(--white); }
.btn-plan.outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-plan.fill { background: var(--accent); color: var(--blue-900); box-shadow: 0 10px 30px rgba(255, 209, 102, 0.3); }
.btn-plan.fill:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(255, 209, 102, 0.5); }
.best-seller-badge { position: absolute; top: -15px; background: var(--accent); color: var(--blue-900); padding: 6px 16px; border-radius: 20px; font-weight: 800; font-size: 0.85rem; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

/* Docentes */
.teachers-section {
    padding: 80px 0;
    width: 100%;
    position: relative;
    background: linear-gradient(180deg, var(--blue-800), #001029);
}
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding-top: 20px;
}
.teacher-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.2));
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}
.teacher-img-wrap {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}
.teacher-img { width: 100%; height: 100%; object-fit: cover; }
.teacher-name { font-size: 1.35rem; color: var(--white); margin: 0 0 5px; font-weight: 700; }
.teacher-role { color: var(--accent); font-size: 0.95rem; font-weight: 600; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.teacher-bio { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

/* Why */
section.why{padding:60px 20px}
.why-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.why-item{background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.06));padding:20px;border-radius:12px;border:1px solid rgba(255,255,255,0.03)}
.why-item h5{margin:0 0 10px;color:var(--accent);font-size:1.1rem}
.why-item p{margin:0;color:var(--muted); line-height: 1.5;}

/* About */
section.about{padding:60px 20px;background:linear-gradient(180deg,var(--blue-900),#000)}
.about-inner{display:flex;gap:40px;align-items:center;flex-wrap:wrap}
.about .text{flex:1;min-width:260px}
.about .visual{
    flex-basis:420px;border-radius:12px;
    overflow:hidden;height:300px;background-size:cover;
    background-position:center;box-shadow:var(--card-shadow);
    opacity: 0.7;
}

/* Footer */
footer{
    background: #020b16; 
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--muted);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h3 { color: var(--white); margin-bottom: 20px; font-size: 1.1rem; font-weight: 700; border-left: 3px solid var(--accent); padding-left: 10px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 12px; font-size: 0.95rem; }
.contact-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 15px; }
.social-links { display: flex; gap: 12px; margin-top: 20px; }
.social-btn { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: bold; transition: 0.3s; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; font-size: 0.9rem; gap: 15px; }

/* WhatsApp Floating Button */
.whatsapp-btn {
    position: fixed; right: 2rem; bottom: 2rem; z-index: 40; width: 4rem; height: 4rem; padding: 0.8rem;
    background-color: var(--whatsapp-green); color: white; border-radius: 9999px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; align-items: center; justify-content: center;
}
.whatsapp-btn svg { width: 100%; height: 100%; fill: currentColor; }

    /* =========================================
       MEDIA QUERIES (RESPONSIVE) 
       ========================================= */

       @media (max-width:1024px){
          .hero-inner{grid-template-columns:1fr 360px}
          .cert-section { height: auto; padding: 60px 20px; }
          .cert-container { flex-direction: column; text-align: center; }
          .cert-text { margin-bottom: 40px; padding-right: 0 !important;}
          .cert-features { align-items: center; } /* Centrar features en tablet */
          .cert-mockup-wrapper { width: 100% !important; transform: none !important; }
      }

      /* Tablet & Small Laptop */
      @media (max-width:900px){
        .grid{grid-template-columns:repeat(2,1fr)}
        .plans-container { flex-direction: column; gap: 30px; }
        .plan-card.basic, .plan-card.premium, .plan-card.pro { transform: scale(1); max-width: 100%; }
        .plan-card.pro { order: -1; }
        .hero h2 { font-size: 2.2rem; }
    }

    /* Mobile Landscape & Large Phones */
    @media (max-width:780px){
        .menu { display:none }
        /* AGREGA ESTA LÍNEA DE ABAJO: */
        .cta { display: none; } 
        /* Esto oculta los botones "Contacto" e "Inscribirme" del header 
           porque ya los tienes dentro del menú desplegable */
        .nav-toggle { display:inline-flex }
        .mobile-menu { display:flex }
      
      .hero{padding:30px 16px}
      .hero-inner{grid-template-columns:1fr;gap:30px}
      .hero h2{font-size:2rem}
      .hero-actions { justify-content: flex-start; width: 100%; }
      .btn-cta, .secondary { flex: 1; } /* Botones ancho completo en móvil */
      
      .why-grid{grid-template-columns:repeat(2,1fr)}
      .about-inner{flex-direction:column}
      .footer-bottom { justify-content: center; text-align: center; }
      
      /* Ajuste diploma en movil */
      .diploma-card { padding: 25px; border-width: 6px; }
      .diploma-title { font-size: 1.5rem; letter-spacing: 1px; }
      .student-name { font-size: 1.8rem; }
      .course-title { font-size: 1.2rem; }
      .signature { width: 40%; }
      .seal { width: 60px; height: 60px; font-size: 0.65rem; }
  }

  /* Small Phones (iPhone SE, etc) */
  @media (max-width:480px){
      .brand h1{display:none}
      .brand .tag{display:none}
      
      .hero h2{font-size:1.75rem}
      .grid{grid-template-columns:1fr}
      .why-grid{grid-template-columns:1fr}
      
      /* Reducción drástica de padding para ganar espacio */
      section { padding: 40px 0; }
      section.cursos, section.about, .cert-section { padding: 40px 16px; }
      
      /* Diploma Mini */
      .diploma-card { padding: 15px; border-width: 4px; }
      .verified-badge { font-size: 0.75rem; padding: 4px 10px; top: -12px; right: -5px; }
      .diploma-title { font-size: 1.1rem; margin-bottom: 10px; }
      .student-name { font-size: 1.4rem; margin: 10px 0; }
      .course-title { font-size: 1rem; }
      .diploma-footer { margin-top: 20px; align-items: center; }
      .signature div { font-size: 1.1rem !important; }
      
      /* WhatsApp Button smaller */
      .whatsapp-btn { width: 3.5rem; height: 3.5rem; right: 1rem; bottom: 1rem; }
  }

:root {
    --blue-dark: #041E42;
    --yellow-accent: #FFC107; /* O el color que definas como var(--accent) */
}

.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.8);
    display: flex; align-items: center; justify-content: center; z-index: 9999;
}

.modal-content {
    background: white; width: 90%; max-width: 600px; padding: 30px;
    border-radius: 15px; border-top: 8px solid var(--yellow-accent);
}

.modal-header { display: flex; justify-content: space-between; margin-bottom: 20px; }
.modal-header h3 { color: var(--blue-dark); margin: 0; }
.close-btn { background: none; border: none; font-size: 2rem; cursor: pointer; color: #888; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
#leadForm input { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; margin-bottom: 10px; font-family: inherit; }

.btn-submit {
    width: 100%; background: var(--blue-dark); color: var(--yellow-accent);
    padding: 15px; border: none; border-radius: 8px; font-weight: 800;
    cursor: pointer; text-transform: uppercase; transition: 0.3s;
}

.btn-submit:hover { background: #000; color: white; }

.terms-wrapper { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; margin-bottom: 20px; color: #555; }
.terms-wrapper input { width: auto !important; margin-top: 3px; }

@media (max-width: 480px) { .form-grid { grid-template-columns: 1fr; } }

/* Estilo para el precio regular tachado */
.plan-price {
    display: flex;
    flex-direction: column; /* Para que el precio regular aparezca debajo */
    align-items: center;
    font-weight: 800;
    color: #041E42; /* Azul oscuro de CCPRO */
}

/* =========================================
   SECCIÓN CURSOS & CARDS MEJORADAS (FINAL)
   ========================================= */

/* Configuración de la sección padre */
#cursos {
    position: relative;
    background-color: #f5f5f5; /* Color de respaldo */
    overflow: hidden;
    padding: 60px 20px;
    background: linear-gradient(180deg,var(--blue-800),var(--blue-900));
}

/* Configuración del contenedor de partículas */
#particles-cursos {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Contenido real por encima de partículas */
.contenido-cursos {
    position: relative;
    z-index: 2;
}

/* Encabezado */
.section-head {
    text-align: center;
    margin-bottom: 40px;
}

.section-head h3 {
    color: var(--accent);
    font-size: 2rem;
    margin: 0 0 8px;
}

.section-head p {
    color: var(--muted);
    margin: 0;
    padding: 0 10px;
}

/* --- GRID SYSTEM PARA CURSOS --- */
.grid {
    display: flex;
    flex-wrap: wrap; /* Permite que bajen de línea */
    justify-content: center; /* Centrado horizontal */
    gap: 30px; /* Espacio entre tarjetas */
    margin: 0 auto;
    max-width: 1200px;
    padding: 10px;
}

/* --- TARJETA MODERNA --- */
.card {
    flex: 0 1 350px; /* Base 350px, pero puede encogerse */
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.2));
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
    display: flex;
    flex-direction: column; /* Asegura que el footer se alinee al final */
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--accent);
}

/* 1. El marco que define el tamaño (El Container) */
.thumb-container {
    width: 100%;
    /* ANTES: height: 220px; (Muy alto para un banner) */
    height: 170px; /* AHORA: Más bajito, respeta más el formato panorámico */
    position: relative;
    overflow: hidden;
}

/* 2. La imagen grande (957x468) adaptada */
.card .thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center; /* Centrado */
}

/* Efecto Zoom al pasar el mouse (Mantenemos tu estilo) */
.card:hover .thumb {
    transform: scale(1.1);
}

.category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: var(--blue-900);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Cuerpo de la Tarjeta */
.card .body {
    padding: 24px;
    flex: 1; /* Ocupa el espacio restante para alinear botones abajo */
    display: flex;
    flex-direction: column;
}

.card h4 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    line-height: 1.3;
    color: var(--white);
    font-weight: 700;
}

.card p {
    margin: 0 0 20px;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1; /* Empuja las métricas hacia abajo */
}

/* --- MÉTRICAS (GRID 2x2) --- */
.course-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Estilos SVGs */
.metric-item svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
    flex-shrink: 0;
}

/* --- BOTONES DE ACCIÓN --- */
.card-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-card {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Estilo Outline */
.btn-card.outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.2);
    color: var(--white);
}

.btn-card.outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255,255,255,0.05);
}

/* Estilo Relleno */
.btn-card.fill {
    background: var(--accent);
    color: var(--blue-900);
    border: 2px solid var(--accent);
    box-shadow: 0 4px 15px rgba(255, 209, 102, 0.2);
}

.btn-card.fill:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--blue-900);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* --- RESPONSIVE OPTIMIZADO PARA MÓVILES --- */
@media (max-width: 480px) {
    .grid {
        padding: 0 10px;
        gap: 20px;
    }
    
    /* En móvil, la tarjeta ocupa todo el ancho */
    .card {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .course-metrics {
        gap: 10px 5px; /* Menos espacio horizontal en móvil */
    }

    .metric-item {
        font-size: 0.8rem;
    }

    .btn-card {
        padding: 14px; /* Botones más altos para tocar fácil */
    }
}

/* 1. El escenario 3D */
.cert-mockup-wrapper {
    background-color: transparent;
    perspective: 1000px; /* Da profundidad al efecto 3D */
    /* Asegúrate de definir un ancho si es necesario, o déjalo fluido */
    display: inline-block; 
}

/* 2. El objeto que gira */
.image-perspective-container {
    position: relative;
    width: 100%;
    transition: transform 0.8s; /* Duración del giro */
    transform-style: preserve-3d; /* Mantiene el 3D en los hijos */
    cursor: pointer;
}

/* 3. Acción al pasar el mouse: Girar 180 grados */
.cert-mockup-wrapper:hover .image-perspective-container {
    transform: rotateY(180deg);
}

/* 4. Configuración común para ambas caras */
.cert-face {
    width: 100%;
    backface-visibility: hidden; /* Oculta la parte trasera de la imagen */
    -webkit-backface-visibility: hidden; /* Soporte Safari */
    border-radius: 10px; /* Opcional: si tus imágenes tienen bordes redondeados */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); /* Sombra para darle realismo */
}

/* 5. Cara Frontal */
.cert-front {
    /* Position relative para que este elemento defina la altura del contenedor padre */
    position: relative; 
    z-index: 2;
    transform: rotateY(0deg); /* Estado inicial normal */
}

/* 6. Cara Trasera */
.cert-back {
    position: absolute; /* Se coloca "encima" (o detrás técnicamente) del frente */
    top: 0;
    left: 0;
    transform: rotateY(180deg); /* Ya está girada 180 grados esperando */
    height: 100%; /* Asegura que cubra todo el alto */
}

/* Ajustes para tus imágenes */
.cert-img-fluid {
    width: 100%;
    height: auto;
    display: block;
}

/* Ajuste para tu badge existente (para que no se rompa) */
.verified-badge-float {
    /* Tu estilo actual... */
    position: absolute;
    z-index: 3;
    /* ... resto de tu CSS */
}
