:root {
    --bg-gradient: linear-gradient(135deg, #7b61ff 0%, #5e5ce6 100%);
    --white: #ffffff;
    --clay-blue: #5e5ce6;
    --yellow: #f8e71c;
    --accent-red: #ff4d6d;
    --text-dark: #2d3436;
    --clay-shadow: 20px 20px 60px rgba(0,0,0,0.1), 
                   inset -10px -10px 20px rgba(174, 174, 192, 0.2), 
                   inset 10px 10px 20px #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Nunito', sans-serif; background: var(--bg-gradient); color: white; overflow-x: hidden; line-height: 1.6; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* NAVBAR */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 25px 5%; }
.logo { font-size: 1.8rem; font-weight: 900; color: white; display:flex; align-items:center; gap:10px; }
.logo span { color: var(--yellow); }
.nav-links a { color: white; text-decoration: none; margin-left: 20px; font-weight: 700; }
.btn-nav { background: white; color: var(--clay-blue) !important; padding: 10px 25px; border-radius: 50px; box-shadow: 5px 5px 15px rgba(0,0,0,0.1); }

/* HERO */
.hero { padding: 60px 0; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
h1 { font-size: 4.2rem; font-weight: 900; line-height: 1; margin-bottom: 25px; }
.yellow-text { color: var(--yellow); }
.hero-desc{
    font-size: 1.25rem;
    font-weight: 600;
    color: #ece6ff ;        
    margin-bottom: 65px;    /* recupera separación con el bloque de banderas */
}

.badge-clay { background: rgba(255,255,255,0.2); display: inline-block; padding: 10px 25px; border-radius: 50px; border: 2.5px solid white; margin-bottom: 20px; font-weight: 800; }
.clay-card-info { background: white; color: var(--text-dark); padding: 30px; border-radius: 35px; border: 10px solid white; box-shadow: var(--clay-shadow); margin-bottom: 40px; }
.date-header { font-weight: 900; font-size: 1.3rem; margin-bottom: 15px; color: var(--clay-blue); }
.hours-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; font-weight: 800; font-size: 0.9rem; }

/* HERO VISUAL FLOAT */
.clay-box-floating { background: white; padding: 15px; border-radius: 50px; box-shadow: 25px 25px 50px rgba(0,0,0,0.2); animation: float 5s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-25px); } }
.inner-blue-box { background: #6c5ce7; height: 380px; border-radius: 40px; display: flex; justify-content: center; align-items: center; font-size: 2.2rem; font-weight: 900; text-align: center; }

/* TEMARIO: TARJETAS CUADRADAS */
.section { padding: 80px 0; text-align: center; }
.title-3d { font-size: 3rem; margin-bottom: 60px; font-weight: 900; }
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.clay-card-feature { background: white; color: var(--text-dark); padding: 40px 25px; border-radius: 40px; border: 10px solid white; box-shadow: var(--clay-shadow); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.clay-card-feature:hover { transform: translateY(-20px) scale(1.05); box-shadow: 30px 40px 70px rgba(0,0,0,0.2); }
.clay-card-feature h3 { color: var(--clay-blue); font-weight: 900; margin: 15px 0; }
.icon { font-size: 3.5rem; }

/* INSTRUCTOR */
.clay-instructor-card { background: white; color: var(--text-dark); padding: 50px; border-radius: 50px; border: 12px solid white; box-shadow: var(--clay-shadow); display: flex; align-items: center; gap: 40px; text-align: left; }
.instructor-photo-clay { width: 280px; height: 280px; background: #5c6bc0; border-radius: 40px; display: flex; align-items: center; justify-content: center; color: white; font-weight: 900; font-size: 1.5rem; box-shadow: inset 10px 10px 20px rgba(0,0,0,0.2); flex-shrink: 0;  overflow: hidden; }
.instructor-info h2 { font-size: 2.8rem; font-weight: 900; color: var(--clay-blue); margin: 10px 0; }
.label { color: var(--accent-red); font-weight: 900; letter-spacing: 1px; }
.tags { margin-top: 20px; display: flex; gap: 10px; }
.tag { background: #f0f2f5; padding: 8px 15px; border-radius: 20px; font-weight: 800; font-size: 0.8rem; color: var(--clay-blue); }

/* FAQ CON HOVER */
.faq-container { display: flex; flex-direction: column; gap: 20px; max-width: 850px; margin: 0 auto; }
.clay-faq-item { background: white; color: var(--text-dark); padding: 35px; border-radius: 35px; border: 8px solid white; box-shadow: var(--clay-shadow); text-align: left; transition: transform 0.3s ease; }
.clay-faq-item:hover { transform: translateY(-10px); }

/* REGISTRO 2 COLUMNAS */
.registration-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; text-align: left; }
.clay-legend-card { background: rgba(255, 255, 255, 0.15); padding: 50px; border-radius: 50px; border: 5px solid rgba(255, 255, 255, 0.3); display: flex; align-items: center; }
.legend-content h3 { font-size: 2.2rem; font-weight: 900; color: var(--yellow); margin-bottom: 20px; }
.legend-text { font-size: 1.1rem; font-weight: 700; margin-bottom: 30px; line-height: 1.4; }
.clay-image-placeholder { background: #6c5ce7; height: 200px; border-radius: 35px; display: flex; align-items: center; justify-content: center; font-weight: 900; box-shadow: var(--clay-shadow); }

.clay-form-card { background: white; color: var(--text-dark); padding: 50px; border-radius: 50px; border: 12px solid white; box-shadow: var(--clay-shadow); }
.input-group { margin-bottom: 20px; }
.input-group label { display: block; font-weight: 900; margin-bottom: 8px; margin-left: 10px; }
.input-group input { width: 100%; padding: 18px; border-radius: 25px; border: none; background: #f0f2f5; font-family: inherit; font-weight: 700; }
.btn-submit-clay { width: 100%; background: var(--accent-red); color: white; border: none; padding: 20px; border-radius: 50px; font-weight: 900; font-size: 1.1rem; box-shadow: 0 10px 20px rgba(255, 77, 109, 0.3); cursor: pointer; transition: 0.3s; }
.btn-submit-clay:hover { transform: scale(1.02); filter: brightness(1.1); }
.privacy-note { margin-top: 15px; font-size: 0.75rem; opacity: 0.6; text-align: center; }

.legal-box-wide { margin-top: 50px; background: rgba(0,0,0,0.15); padding: 35px; border-radius: 40px; text-align: left; font-size: 0.9rem; }
.btn-cta-clay { background: white; color: var(--clay-blue); padding: 20px 40px; border-radius: 50px; font-weight: 900; text-decoration: none; display: inline-block; box-shadow: var(--clay-shadow); }

/* FOOTER */
.main-footer { padding: 60px 0 30px; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); margin-top: 50px; border-top: 2px solid rgba(255, 255, 255, 0.2); }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.social-grid { display: flex; gap: 20px; }
.social-icon-clay { width: 60px; height: 60px; background: white; display: flex; align-items: center; justify-content: center; border-radius: 20px; font-size: 1.5rem; color: var(--clay-blue); text-decoration: none; box-shadow: var(--clay-shadow); transition: 0.4s; }
.social-icon-clay:hover { transform: translateY(-10px); }
.footer-bottom { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); opacity: 0.6; font-size: 0.8rem; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .registration-grid, .hero-grid { grid-template-columns: 1fr; }
    .grid-cards { grid-template-columns: 1fr 1fr; }
    h1 { font-size: 3rem; }
    .clay-instructor-card { flex-direction: column; }
}

/* --- Imagenes integradas (sin cambiar el estilo base) --- */
.hero-zoom-img{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block;}
.instructor-photo-clay .instructor-img{width:100%;height:100%;object-fit:cover;object-position:center top;border-radius:inherit;display:block;}
.clay-image-placeholder .hologram-img{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block;}


/* Logo image (header/footer) */
.logo-img{
  height: 78px;
  width: auto;
  display: block;
  flex: 0 0 auto;
}

/* Flag icons (avoid emoji rendering issues) */
.flag{
  height: 14px;
  width: auto;
  vertical-align: -2px;
  margin-right: 6px;
}

@media (max-width: 520px){
  .logo{font-size:1.4rem;}
  .logo-img{height:64px;}
}


/* === Responsive fixes (SAFE: excludes form) === */
@media (max-width: 1024px) {
  header img {
    max-height: 64px;
  }
}

@media (max-width: 768px) {
  header img {
    max-height: 52px;
  }

  .features .card,
  .services .card,
  .cards-container .card {
    width: 100%;
    height: auto;
    padding: 1.2rem;
    margin: 0 auto 1rem auto;
    box-sizing: border-box;
  }
}

/* =============================
   EXTRA RESPONSIVE (tablet + mobile)
   Added WITHOUT changing desktop styles
   ============================= */

/* Prevent any accidental horizontal overflow from long content/images */
img{max-width:100%;height:auto;}

/* Cards should never force overflow inside CSS Grid */
.clay-card-feature{min-width:0;}

/* Tablet: improve navbar wrapping + slightly compact cards */
@media (max-width: 900px){
  .navbar{
    padding: 18px 5%;
    flex-wrap: wrap;
    gap: 14px;
  }
  .nav-links{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }
  .nav-links a{margin-left: 0;}

  /* Keep the clay look but reduce bulk so cards don't feel "gigantic" */
  .clay-card-feature{
    padding: 30px 22px;
    border-width: 8px;
    border-radius: 34px;
  }
}

/* Mobile: 1 column, tighter spacing, no overflow */
@media (max-width: 600px){
  .container{padding: 0 16px;}

  .grid-cards{grid-template-columns: 1fr;}

  .clay-card-feature{
    padding: 22px 18px;
    border-width: 6px;
    border-radius: 28px;
  }
  .icon{font-size: 3.1rem;}

  .clay-card-info{
    padding: 22px;
    border-width: 8px;
    border-radius: 30px;
  }
  .hours-grid{grid-template-columns: repeat(2, 1fr);}
}

/* Small phones: reduce logo + tighten hero spacing */
@media (max-width: 520px){
  .logo-img{height:52px;}

  h1{font-size: 2.6rem;}
  .hero{padding: 40px 0;}
  .hero-desc{margin-bottom: 45px;}

  .clay-form-card,
  .clay-legend-card,
  .clay-instructor-card{
    padding: 28px;
    border-radius: 40px;
  }

  .instructor-photo-clay{width: 220px; height: 220px;}
}

@media (max-width: 520px) {
  .badge-clay{
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    text-align: center;
    white-space: normal;
  }

  .inner-blue-box{
    height: 220px;
  }

  .hero-zoom-img{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* =========================================================
   AJUSTES FINALES SOLO CELULAR
   - Foto del hero: debe llenar TODO el area del frame
   - Título temario: tamaño correcto en móvil
   - NO afecta desktop (solo <=520px)
   ========================================================= */
@media (max-width: 520px){

  /* Título “¿Qué aprenderás…?” más acorde al móvil */
  .title-3d{
    font-size: 1.5rem;
    margin-bottom: 40px;
  }

  /* Frame de la imagen: garantiza recorte correcto */
  .inner-blue-box{
    height: 240px;
    overflow: hidden;
    background-image: url("img/hero-zoom-ai.png"); /* ajusta ruta si cambia */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

    .hero-zoom-img{
    display: none !important;
  }
}

@media (max-width: 520px){
  .btn-cta-clay{
    display: block;
    margin: 0 auto;
    text-align: center;
  }
}
/* =========================================================
   FIX TABLET – Hero image full cover (misma idea que móvil)
   Aplica para tablets típicas (hasta 1024px)
   ========================================================= */
@media (max-width: 1024px) and (min-width: 521px){

  .inner-blue-box{
    height: 300px; /* ajusta si quieres: 280–360 */
    overflow: hidden;
    background-image: url("img/hero-zoom-ai.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .hero-zoom-img{
    display: none !important;
  }
}





