/* ============================================================
       VARIABLES  —  cambia aquí colores de todo el sitio
       ============================================================ */
    :root {
      --blanco:   #ffffff;
      --hueso:    #f6f6f4;   /* fondo alterno, blanco roto */
      --tinta:    #141414;   /* casi negro, texto principal */
      --gris:     #6e6e6e;   /* texto secundario */
      --verde:    #84bd3a;   /* verde lima del logo (acento) */
      --verde-osc:#6ba02c;
      --linea:    #e4e4e0;   /* líneas finas */
    }

    * { margin: 0; padding: 0; box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      font-family: 'Jost', sans-serif;
      background: var(--blanco);
      color: var(--tinta);
      font-weight: 300;
      line-height: 1.7;
      overflow-x: hidden;
    }
    h1, h2, h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; line-height: 1.1; }
    a { color: inherit; text-decoration: none; }
    img { display: block; max-width: 100%; }

    .contenedor { width: 90%; max-width: 1240px; margin: 0 auto; }

    /* Texto pequeño en mayúsculas (estilo galería) */
    .super {
      font-size: 0.72rem;
      letter-spacing: 0.32em;
      text-transform: uppercase;
      font-weight: 400;
      color: var(--gris);
    }
    .super .punto { color: var(--verde); }

    .titulo { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 500; letter-spacing: 0.01em; }

    section { padding: 7rem 0; }

    /* Botones */
    .boton {
      display: inline-block;
      background: var(--tinta);
      color: var(--blanco);
      padding: 0.95rem 2.4rem;
      font-size: 0.78rem;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      font-weight: 400;
      border: 1px solid var(--tinta);
      cursor: pointer;
      transition: all 0.3s ease;
      font-family: 'Jost', sans-serif;
    }
    .boton:hover { background: var(--verde); border-color: var(--verde); color: var(--tinta); }
    .boton-claro { background: transparent; color: var(--blanco); border-color: rgba(255,255,255,0.6); }
    .boton-claro:hover { background: var(--blanco); border-color: var(--blanco); color: var(--tinta); }
    .boton-oscuro-borde { background: transparent; color: var(--tinta); }
    .boton-oscuro-borde:hover { background: var(--tinta); color: var(--blanco); }

    /* ============================================================
       NAVEGACIÓN
       ============================================================ */
    header {
      position: sticky; top: 0; z-index: 100;
      background: var(--blanco);
      border-bottom: 1px solid var(--linea);
    }
    nav {
      display: flex; align-items: center; justify-content: space-between;
      padding: 1.1rem 0;
    }
    .logo img { height: 42px; width: auto; }
    .menu { display: flex; gap: 2.4rem; list-style: none; }
    .menu a {
      font-size: 0.74rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--tinta);
      position: relative; padding-bottom: 4px;
    }
    .menu a::after {
      content: ""; position: absolute; left: 0; bottom: 0;
      width: 0; height: 1px; background: var(--verde); transition: width 0.3s ease;
    }
    .menu a:hover::after { width: 100%; }

    .hamburguesa { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
    .hamburguesa span { width: 26px; height: 1.5px; background: var(--tinta); }

    /* ============================================================
       INICIO  —  HERO con carrusel a todo el ancho (estilo galería)
       ============================================================ */
    .hero { position: relative; height: 86vh; min-height: 520px; overflow: hidden; }
    .slide {
      position: absolute; inset: 0;
      opacity: 0; transition: opacity 1.2s ease;
      display: flex; align-items: flex-end;
    }
    .slide.activa { opacity: 1; }
    /* Imágenes de fondo (reemplázalas por tus fotos) */
    .slide-1 { background-image: url("/images/hero-1.jpg"); background-size: cover; background-position: center; }
    .slide-2 { background-image: url("/images/hero-2.jpg"); background-size: cover; background-position: center; }
    .slide-3 { background-image: url("/images/hero-3.jpg"); background-size: cover; background-position: center; }
    .slide::before {
      content: ""; position: absolute; inset: 0;
      background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.05) 55%, rgba(0,0,0,0.1) 100%);
    }
    .slide-texto { position: relative; z-index: 2; padding-bottom: 5rem; color: var(--blanco); }
    .slide-texto .super { color: rgba(255,255,255,0.8); }
    .slide-texto h1 { font-size: clamp(2.6rem, 6vw, 5rem); margin: 1rem 0 0.6rem; max-width: 18ch; }
    .slide-texto .meta { font-size: 0.95rem; letter-spacing: 0.05em; color: rgba(255,255,255,0.85); margin-bottom: 2rem; }
    .puntos { position: absolute; bottom: 2rem; right: 5%; z-index: 3; display: flex; gap: 0.8rem; }
    .punto-nav { width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.8); background: transparent; cursor: pointer; padding: 0; }
    .punto-nav.activo { background: var(--blanco); }

    /* ============================================================
       SOBRE NOSOTROS  —  editorial (imagen + texto)
       ============================================================ */
    .sobre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
    .imagen-marco {
      aspect-ratio: 4/5;
      background: url("/images/sobre-nosotros.jpg") center 22% / cover no-repeat;
      position: relative;
    }
    .imagen-marco span {
      position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
      color: rgba(255,255,255,0.85); font-style: italic; font-family: 'Cormorant Garamond', serif; font-size: 1.2rem;
      letter-spacing: 0.05em;
    }
    .sobre-texto p { color: var(--gris); margin-bottom: 1.3rem; font-size: 1.05rem; }
    .firma { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.8rem; color: var(--verde-osc); margin-top: 0.5rem; }

    /* ============================================================
       SERVICIOS
       ============================================================ */
    #servicios { background: var(--hueso); }
    .cabecera-seccion { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
    .cabecera-seccion .titulo { margin: 0.8rem 0 0.6rem; }
    .cabecera-seccion p { color: var(--gris); }
    .servicios-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .servicio { background: var(--blanco); border: 1px solid var(--linea); }
    .servicio-img { height: 240px; background: linear-gradient(150deg, #1c1c1c, var(--verde-osc)); position: relative; }
    .servicio:nth-child(1) .servicio-img { background: url("/images/servicio-1.jpg") center / cover no-repeat; }
    .servicio:nth-child(2) .servicio-img { background: url("/images/servicio-2.jpg") center / cover no-repeat; }
    .servicio:nth-child(3) .servicio-img { background: url("/images/servicio-3.jpg") center / cover no-repeat; }
    .servicio:nth-child(4) .servicio-img { background: url("/images/servicio-4.jpg") center top / cover no-repeat; }
    .servicio-img .destacado-tag {
      position: absolute; top: 1rem; left: 1rem;
      background: var(--verde); color: var(--tinta);
      font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase;
      padding: 0.4rem 0.9rem; font-weight: 400;
    }
    .servicio-cuerpo { padding: 2.2rem; }
    .servicio-cuerpo h3 { font-size: 1.9rem; margin-bottom: 0.6rem; }
    .servicio-cuerpo p { color: var(--gris); margin-bottom: 1.4rem; }

    /* Bloque de técnicas de bordado */
    .tecnicas { margin-top: 4.5rem; text-align: center; }
    .tecnicas h3 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); margin: 0.6rem 0 1.8rem; }
    .tecnicas-lista { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; max-width: 880px; margin: 0 auto; padding: 0; }
    .tecnicas-lista li {
      background: var(--blanco); border: 1px solid var(--linea);
      padding: 0.65rem 1.4rem; font-size: 0.92rem; color: var(--tinta);
      transition: border-color 0.25s ease, color 0.25s ease;
    }
    .tecnicas-lista li:hover { border-color: var(--verde); color: var(--verde-osc); }

    /* ============================================================
       CURSOS  —  rejilla estilo "exhibiciones"
       ============================================================ */
    .cursos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
    .curso { cursor: default; }
    .curso-img { aspect-ratio: 3/4; background: linear-gradient(150deg, #20251a, var(--verde)); overflow: hidden; }
    .curso:nth-child(2) .curso-img { background: linear-gradient(150deg, #2a2a2a, #6ba02c); }
    .curso:nth-child(3) .curso-img { background: linear-gradient(150deg, #161616, #9ccb55); }
    .curso:nth-child(4) .curso-img { background: linear-gradient(150deg, #1e2418, #5d7a30); }
    .curso-img > div { width: 100%; height: 100%; transition: transform 0.6s ease; display:flex; align-items:center; justify-content:center; color:rgba(255,255,255,0.8); font-family:'Cormorant Garamond',serif; font-style:italic; }
    .curso:hover .curso-img > div { transform: scale(1.05); }
    .curso-foto-1 { background: url("/images/curso-1.jpg") center / cover no-repeat; }
    .curso-foto-2 { background: url("/images/curso-2.jpg") center / cover no-repeat; }
    .curso-foto-3 { background: url("/images/curso-3.jpg") center / cover no-repeat; }
    .curso-foto-4 { background: url("/images/curso-4.jpg") center 32% / cover no-repeat; }
    .curso h3 { font-size: 1.6rem; margin: 1.2rem 0 0.3rem; }
    .curso .meta-curso { font-size: 0.9rem; color: var(--gris); }
    .curso .nivel { color: var(--verde-osc); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; margin-top: 0.4rem; display:block; }
    .curso .boton { margin-top: 1rem; padding: 0.65rem 1.5rem; font-size: 0.68rem; }

    /* ============================================================
       NOTICIAS
       ============================================================ */
    #noticias { background: var(--hueso); }
    .noticias-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
    .noticia { background: var(--blanco); border: 1px solid var(--linea); }
    .noticia-img { height: 200px; background: linear-gradient(150deg, #232323, var(--verde-osc)); }
    .noticia:nth-child(2) .noticia-img { background: linear-gradient(150deg, #2e2e2e, #84bd3a); }
    .noticia:nth-child(3) .noticia-img { background: linear-gradient(150deg, #1a1a1a, #9ccb55); }
    .noticia-cuerpo { padding: 1.8rem; }
    .noticia-cuerpo .fecha { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--verde-osc); }
    .noticia-cuerpo h3 { font-size: 1.5rem; margin: 0.6rem 0; }
    .noticia-cuerpo p { color: var(--gris); font-size: 0.95rem; }

    /* Noticia destacada (más grande, imagen + texto) */
    .noticia-destacada {
      display: grid; grid-template-columns: 1fr 1.25fr;
      background: var(--blanco); border: 1px solid var(--linea);
      margin-bottom: 2.5rem;
    }
    .noticia-destacada .nd-img { background: var(--blanco) url("/images/noticia-1.png") center / auto 34% no-repeat; min-height: 360px; }
    .noticia-destacada .nd-cuerpo { padding: 2.8rem; }
    .noticia-destacada .fecha { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--verde-osc); }
    .noticia-destacada h3 { font-size: 2rem; margin: 0.5rem 0 1.2rem; }
    .noticia-destacada p { color: var(--gris); font-size: 0.98rem; margin-bottom: 1rem; }
    .noticia-destacada .lugar {
      display: inline-block; margin-top: 0.6rem;
      font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
      color: var(--tinta); border-top: 1px solid var(--linea); padding-top: 1rem;
    }
    .noticia-destacada + .noticia-destacada { margin-top: 0; }
    .noticia-destacada:nth-of-type(2) .nd-img { background: url("/images/noticia-2.jpg") center / cover no-repeat; }
    .noticia-destacada:nth-of-type(3) .nd-img { background: url("/images/noticia-3.jpg") center / cover no-repeat; }
    /* Versión con la imagen a la derecha */
    .noticia-destacada.invertida .nd-cuerpo { order: 1; }
    .noticia-destacada.invertida .nd-img { order: 2; }

    /* ============================================================
       CONTÁCTANOS  +  boletín
       ============================================================ */
    #contacto { background: var(--tinta); color: var(--blanco); }
    #contacto .super { color: rgba(255,255,255,0.7); }
    #contacto .titulo { color: var(--blanco); }
    .contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; margin-top: 3rem; }
    .contacto-info p { color: #bdbdbd; margin-bottom: 0.9rem; }
    .contacto-info strong { color: var(--blanco); font-weight: 400; }
    .redes { margin-top: 2rem; display: flex; gap: 1.6rem; }
    .redes a { color: var(--verde); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; border-bottom: 1px solid transparent; transition: border 0.2s; }
    .redes a:hover { border-bottom-color: var(--verde); }
    .formulario { display: flex; flex-direction: column; gap: 1rem; }
    .formulario input, .formulario textarea {
      background: transparent; border: 1px solid rgba(255,255,255,0.25);
      padding: 1rem; color: var(--blanco); font-family: 'Jost', sans-serif; font-size: 0.95rem; font-weight: 300;
    }
    .formulario input::placeholder, .formulario textarea::placeholder { color: #8a8a8a; }
    .formulario input:focus, .formulario textarea:focus { outline: none; border-color: var(--verde); }

    /* ============================================================
       PIE DE PÁGINA
       ============================================================ */
    footer { background: #0d0d0d; color: #9a9a9a; padding: 3rem 0; text-align: center; }
    footer img { height: 34px; margin: 0 auto 1rem; filter: invert(1) grayscale(1) brightness(2); opacity: 0.85; }
    footer p { font-size: 0.8rem; letter-spacing: 0.05em; }

    /* ============================================================
       RESPONSIVE
       ============================================================ */
    @media (max-width: 1100px) {
      .cursos-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 900px) {
      .sobre-grid, .servicios-grid, .cursos-grid, .noticias-grid, .contacto-grid { grid-template-columns: 1fr; gap: 2.5rem; }
      .noticia-destacada { grid-template-columns: 1fr; }
      .noticia-destacada .nd-img { min-height: 220px; }
      .menu {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; background: var(--blanco); padding: 1.5rem 5%; gap: 1.4rem;
        border-bottom: 1px solid var(--linea);
      }
      .menu.abierto { display: flex; }
      .hamburguesa { display: flex; }
      .hero { height: 70vh; }
    }    /* ============================================================
       POP-UP DE INSCRIPCIÓN (ventana emergente)
       ============================================================ */
    .modal-fondo {
      position: fixed; inset: 0; z-index: 1000;
      background: rgba(0,0,0,0.6);
      display: none; align-items: center; justify-content: center;
      padding: 1.5rem; opacity: 0; transition: opacity 0.3s ease;
    }
    .modal-fondo.abierto { display: flex; opacity: 1; }
    .modal {
      background: var(--blanco); width: 100%; max-width: 480px;
      padding: 2.8rem; position: relative;
      transform: translateY(20px); transition: transform 0.3s ease;
      max-height: 90vh; overflow-y: auto;
    }
    .modal-fondo.abierto .modal { transform: translateY(0); }
    /* Popup de "Talleres especializados": el doble de ancho */
    #modalTalleres .modal { max-width: 960px; }
    .modal .cerrar {
      position: absolute; top: 0.9rem; right: 1.2rem;
      background: none; border: none; font-size: 1.8rem; line-height: 1;
      cursor: pointer; color: var(--gris);
    }
    .modal .cerrar:hover { color: var(--tinta); }
    .modal .super { display: block; }
    .modal h3 { font-size: 2rem; margin: 0.4rem 0; }
    .modal > p { color: var(--gris); font-size: 0.95rem; margin-bottom: 1.6rem; }
    .modal-form { display: flex; flex-direction: column; gap: 0.9rem; }
    .modal-form label { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gris); margin-bottom: -0.5rem; }
    .modal-form input, .modal-form textarea {
      border: 1px solid var(--linea); background: var(--hueso);
      padding: 0.85rem 1rem; font-family: 'Jost', sans-serif; font-size: 0.95rem; font-weight: 300; color: var(--tinta);
    }
    .modal-form input:focus, .modal-form textarea:focus { outline: none; border-color: var(--verde); }
    .modal-form .boton { margin-top: 0.6rem; width: 100%; }
    .modal-form .grupo-titulo { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; color: var(--tinta); margin-top: 0.8rem; }
    .opciones { display: flex; flex-direction: column; gap: 0.55rem; }
    .opcion { display: flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; color: var(--tinta); cursor: pointer; letter-spacing: 0; text-transform: none; margin-bottom: 0; }
    .opcion input { width: auto; padding: 0; border: none; background: none; accent-color: var(--verde); }
