:root{
  --bg:#f6f0e7;
  --surface:rgba(255,255,255,0.72);
  --text:#2b211c;
  --muted:#69564d;
  --line:rgba(75,50,34,0.15);
  --accent:#8a5a3b;
  --accent-dark:#6f4328;
  --gold:#b88a3b;
  --shadow:0 18px 45px rgba(68,43,25,0.12);
  --radius:24px;
  --max:1180px;
}

*{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family:'Inter', sans-serif;
  background:var(--bg);
  color:var(--text);
}

a{
  color:inherit;
  text-decoration:none;
}

img{
  display:block;
  max-width:100%;
}

h1,h2,h3,h4,.brand-title{
  font-family:'Cormorant Garamond', serif;
}

h1{
  font-size:clamp(2rem, 2.8vw, 3rem);
  line-height:1.05;
  max-width:700px;
  margin:0 0 1.5rem 0;
}

h2{
  font-size:clamp(1.8rem, 2.2vw, 2.4rem);
  margin:0 0 1rem 0;
}

h3{
  font-size:1.6rem;
  margin:0 0 1rem 0;
}

h4{
  font-size:1.45rem;
  margin:0 0 1rem 0;
}

p{
  margin:0 0 1rem 0;
}

ul{
  margin:0;
  padding-left:1.2rem;
}

.container{
  width:min(calc(100% - 2rem),var(--max));
  margin:auto;
}

/* HEADER */

.site-header{
  position:sticky;
  top:0;
  background:rgba(246,240,231,0.92);
  border-bottom:1px solid var(--line);
  z-index:100;
}

.nav{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  min-height:80px;
  gap:1rem;
}

.brand{
  display:flex;
  align-items:center;
  gap:16px;
  flex-shrink:0;
}

.site-logo{
  width:150px;
  height:auto;
  margin-top:0;
}

.nav-links{
  display:flex;
  align-items:center;
  gap:1.4rem;
  color:var(--muted);
  flex-shrink:0;
}

.nav-links a:hover{
  color:var(--accent-dark);
}

/* REDES */

.social-icons{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:28px;
}

.social-link{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}

.social-link img{
  width:22px;
  height:22px;
  opacity:0.8;
  transition:transform .25s ease, opacity .25s ease;
}

.social-link img:hover{
  opacity:1;
  transform:scale(1.15);
}

/* HERO */

.hero{
  padding:5rem 0 4rem;
}

.hero-grid{
  display:grid;
  grid-template-columns:1fr 420px;
  gap:3rem;
  align-items:start;
}

.hero p{
  font-size:1.05rem;
  color:var(--muted);
  max-width:760px;
}

/* SECCIONES */

.section{
  padding:3rem 0;
}

.panel{
  padding:2rem;
  border-radius:var(--radius);
  background:var(--surface);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}

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

.card{
  padding:1.4rem;
  border-radius:20px;
  background:rgba(255,255,255,0.7);
  border:1px solid var(--line);
}

.about-grid,
.articles-grid,
.cta-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:2rem;
  align-items:stretch;
}

.services-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:2rem;
  align-items:stretch;
}

.about-box,
.service-box,
.article,
.cta-box,
.hero-card{
  padding:1.8rem;
  border-radius:22px;
  border:1px solid var(--line);
  background:rgba(255,255,255,0.65);
  box-shadow:var(--shadow);
  height:100%;
}

/* HERO LINKS */

.hero-links-card{
  padding:2rem;
}

.hero-links-list{
  display:flex;
  flex-direction:column;
  gap:1rem;
  margin-top:1rem;
}

.hero-link-item{
  display:block;
  padding:1rem 1.1rem;
  border-radius:16px;
  border:1px solid var(--line);
  background:rgba(255,255,255,0.72);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.hero-link-item:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 24px rgba(68,43,25,0.10);
  border-color:rgba(138,90,59,0.28);
}

.hero-link-title{
  display:block;
  font-family:'Cormorant Garamond', serif;
  font-size:1.45rem;
  font-weight:700;
  margin-bottom:.2rem;
}

.hero-link-text{
  display:block;
  color:var(--muted);
  line-height:1.45;
  font-size:.98rem;
}

/* LIBROS */

.hero-books p{
  max-width:640px;
  color:var(--muted);
}

.book-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
  margin-top:24px;
  max-width:640px;
}

.book-card{
  display:block;
  padding:18px;
  border-radius:18px;
  background:rgba(255,255,255,0.65);
  border:1px solid var(--line);
  transition:transform .25s ease, box-shadow .25s ease;
  text-align:left;
}

.book-card:hover{
  transform:translateY(-4px);
  box-shadow:0 14px 28px rgba(68,43,25,0.15);
}

.book-card img{
  width:100%;
  height:210px;
  object-fit:contain;
  margin-bottom:12px;
}

.book-card h3{
  font-size:1.2rem;
  margin-bottom:6px;
}

.book-card p{
  font-size:.92rem;
  margin-bottom:8px;
}

.book-link{
  font-size:.9rem;
  color:var(--accent);
  font-weight:500;
}

/* MÉTODO */

.metodo-cards{
  grid-template-columns:repeat(4, 1fr);
}

.method-card{
  appearance:none;
  border:1px solid var(--line);
  cursor:pointer;
  text-align:left;
  font:inherit;
  color:var(--text);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.method-card:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 26px rgba(68,43,25,0.12);
  border-color:rgba(138,90,59,0.28);
}

.method-card h3{
  margin-bottom:.7rem;
}

.method-card p{
  margin-bottom:0;
  color:var(--muted);
  line-height:1.5;
}

/* MODALES MÉTODO */

.modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.5);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:999;
  padding:1rem;
}

.modal-overlay.is-open{
  display:flex;
}

.modal-box{
  position:relative;
  background:white;
  padding:30px;
  border-radius:18px;
  max-width:600px;
  width:90%;
}

.modal-box p{
  color:var(--muted);
  line-height:1.7;
}

.modal-close{
  position:absolute;
  top:10px;
  right:15px;
  border:none;
  background:none;
  font-size:24px;
  cursor:pointer;
}

/* SOBRE MÍ */

.about-content{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:18px;
}

.about-photo{
  width:160px;
  border-radius:14px;
  object-fit:cover;
  margin-bottom:8px;
}

.about-box p{
  text-align:justify;
  line-height:1.6;
}

/* LÍNEAS DE TRABAJO */

.work-lines{
  display:flex;
  flex-direction:column;
  gap:20px;
  margin-top:1rem;
}

.work-card{
  display:flex;
  gap:20px;
  align-items:flex-start;
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(255,255,255,0.55);
  padding:18px;
}

.work-card-image{
  width:120px;
  height:auto;
  border-radius:10px;
  flex-shrink:0;
}

.work-card-text{
  flex:1;
}

.work-card-text h3{
  margin-top:0;
  margin-bottom:8px;
}

.work-card-text p{
  margin:0 0 10px 0;
  line-height:1.6;
  text-align:justify;
}

.work-card-images{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-right:12px;
}

.mini-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
}

.mini-card img{
  width:80px;
  border-radius:8px;
}

.mini-card span{
  font-size:12px;
  color:#555;
  font-family:Inter, sans-serif;
}

/* CARRUSELES */

.carousel{
  position:relative;
  width:100%;
  height:260px;
  overflow:hidden;
  border-radius:14px;
  margin-bottom:1rem;
  background:rgba(0,0,0,0.05);
}

.carousel-track{
  display:flex;
  height:100%;
  transition:transform .45s ease;
}

.carousel-track img{
  min-width:100%;
  width:100%;
  height:100%;
  object-fit:contain;
  background:rgba(0,0,0,0.04);
}

.carousel-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:rgba(0,0,0,0.45);
  color:white;
  border:none;
  font-size:22px;
  width:38px;
  height:38px;
  border-radius:50%;
  cursor:pointer;
  opacity:0;
  transition:opacity .25s ease, background .25s ease;
  z-index:2;
}

.carousel:hover .carousel-btn{
  opacity:1;
}

.carousel-btn:hover{
  background:rgba(0,0,0,0.65);
}

.carousel-btn.prev{ left:10px; }
.carousel-btn.next{ right:10px; }

/* TALLERES */

.talleres-panel h2{
  margin-bottom:1.8rem;
}

.proximo-taller-bloque{
  display:grid;
  grid-template-columns:260px minmax(0, 1fr);
  gap:2rem;
  align-items:start;
  margin-bottom:1.6rem;
}

.taller-principal-carousel{
  height:340px;
  margin-bottom:0;
}

.taller-principal-carousel img{
  cursor:zoom-in;
}

.proximo-taller-texto{
  max-width:none;
}

.proximo-taller-texto h3{
  margin-top:0;
  margin-bottom:.8rem;
}

.proximo-taller-texto p{
  margin:0 0 1rem 0;
  line-height:1.7;
  text-align:left;
  max-width:none;
}

.taller-destacado{
  font-family:'Cormorant Garamond', serif;
  font-size:1.45rem;
  line-height:1.3;
  color:var(--accent-dark);
  margin-bottom:1rem;
}

.taller-info-box{
  margin:1.2rem 0;
  padding:1rem 1.1rem;
  border-radius:16px;
  background:rgba(255,255,255,0.72);
  border:1px solid var(--line);
}

.taller-info-box h4{
  margin:0 0 .6rem 0;
  font-size:1.2rem;
}

.taller-info-box ul{
  margin:0;
  padding-left:1.1rem;
}

.taller-info-box li{
  margin-bottom:.45rem;
  line-height:1.55;
}

.taller-fecha{
  color:var(--accent-dark);
  font-weight:500;
}

.talleres-realizados-bloque h3{
  margin-bottom:1rem;
}

.workshop-marquee{
  overflow:hidden;
  width:100%;
  margin-bottom:1rem;
}

.workshop-track{
  display:flex;
  align-items:flex-start;
  gap:16px;
  width:max-content;
  animation:scrollWorkshops 45s linear infinite;
}

.workshop-track img{
  height:145px;
  width:auto;
  border-radius:12px;
  object-fit:cover;
  flex-shrink:0;
  background:rgba(0,0,0,0.04);
  box-shadow:0 8px 18px rgba(68,43,25,0.10);
}

.workshop-marquee:hover .workshop-track{
  animation-play-state:paused;
}

@keyframes scrollWorkshops{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}

.talleres-fotos-reales{
  margin-top:1.5rem;
}

.talleres-fotos-reales h4{
  margin:0 0 .9rem 0;
}

.talleres-fotos-marquee{
  overflow:hidden;
  width:100%;
  margin-top:.5rem;
}

.talleres-fotos-track{
  display:flex;
  align-items:center;
  gap:16px;
  width:max-content;
  animation:scrollFotosReales 38s linear infinite;
}

.talleres-fotos-track img{
  height:220px;
  width:auto;
  border-radius:14px;
  object-fit:cover;
  flex-shrink:0;
  cursor:pointer;
  box-shadow:0 10px 22px rgba(68,43,25,0.10);
  transition:transform .28s ease, box-shadow .28s ease;
  background:rgba(0,0,0,0.04);
}

.talleres-fotos-track img:hover{
  transform:scale(1.03);
  box-shadow:0 16px 30px rgba(68,43,25,0.16);
}

.talleres-fotos-marquee:hover .talleres-fotos-track{
  animation-play-state:paused;
}

@keyframes scrollFotosReales{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}

/* MODAL FOTOS */

.foto-modal{
  display:none;
  position:fixed;
  z-index:1000;
  inset:0;
  background:rgba(0,0,0,0.88);
  align-items:center;
  justify-content:center;
  padding:2rem;
}

.foto-modal.is-open{
  display:flex;
}

.foto-modal-content{
  max-width:92vw;
  max-height:88vh;
  width:auto;
  height:auto;
  object-fit:contain;
  border-radius:14px;
  box-shadow:0 24px 60px rgba(0,0,0,0.45);
  background:#fff;
}

.foto-modal-close{
  position:absolute;
  top:18px;
  right:24px;
  color:#fff;
  font-size:2.2rem;
  cursor:pointer;
  line-height:1;
  z-index:1001;
}

/* INSTAGRAM */

#instagram h2{
  margin-bottom:1.5rem;
  text-align:center;
}

/* FOOTER */

.site-footer{
  padding:2rem 0;
  border-top:1px solid var(--line);
  margin-top:3rem;
}

.footer-grid{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:20px;
}

.footer-left{
  display:flex;
  align-items:center;
}

.codigo-etico-link{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:.95rem;
  color:var(--muted);
  transition:opacity .25s ease, transform .25s ease;
}

.codigo-etico-link:hover{
  transform:translateY(-1px);
}

.codigo-etico-link img{
  height:36px;
  width:auto;
}

.footer-right{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
}

.copyright{
  color:var(--muted);
  font-size:.9rem;
}

/* RESPONSIVE */

@media (max-width: 1100px){
  .metodo-cards{
    grid-template-columns:repeat(2, 1fr);
  }
}

@media (max-width: 980px){
  .nav{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    padding:1rem 0 1.2rem;
    gap:.8rem;
    min-height:auto;
  }

  .brand{
    width:100%;
    justify-content:center;
  }

  .site-logo{
    width:120px;
    margin-top:0;
  }

  .nav-links{
    width:100%;
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:1rem 1.4rem;
    order:2;
    font-size:1rem;
  }

  .social-icons{
    width:100%;
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:20px;
    margin:0;
    order:3;
  }

  .hero-grid,
  .about-grid,
  .services-grid,
  .articles-grid,
  .cta-grid,
  .cards{
    grid-template-columns:1fr;
  }

  .proximo-taller-bloque{
    grid-template-columns:1fr;
    gap:1.2rem;
  }

  .taller-principal-carousel{
    height:300px;
  }

  .workshop-track img{
    height:130px;
  }

  .talleres-fotos-track img{
    height:190px;
  }

  .carousel-btn{
    opacity:1;
  }
}

@media (max-width: 640px){
  .container{
    width:min(calc(100% - 1.2rem),var(--max));
  }

  .site-logo{
    width:105px;
  }

  .nav-links{
    gap:.8rem 1.2rem;
    font-size:.98rem;
  }

  .social-icons{
    gap:18px;
  }

  .social-link img{
    width:20px;
    height:20px;
  }

  h1{
    font-size:clamp(1.8rem, 7vw, 2.5rem);
    max-width:100%;
  }

  h2{
    font-size:1.7rem;
  }

  h3{
    font-size:1.35rem;
  }

  .hero{
    padding:3rem 0 2.5rem;
  }

  .hero p{
    font-size:1rem;
  }

  .book-grid,
  .metodo-cards{
    grid-template-columns:1fr;
  }

  .book-card img{
    height:260px;
  }

  .about-photo{
    width:120px;
  }

  .carousel{
    height:220px;
  }

  .taller-principal-carousel{
    height:260px;
  }

  .workshop-track img{
    height:115px;
  }

  .talleres-fotos-track img{
    height:160px;
  }

  .hero-card,
  .panel,
  .card,
  .about-box,
  .service-box,
  .article,
  .cta-box{
    padding:1.2rem;
  }

  .modal-box{
    padding:1.4rem;
  }
}
