/* =========================================================
   TOKENS
   ========================================================= */
:root{
  --cream:      #F5EEE3;
  --cream-2:    #FBF7F0;
  --ink:        #3B3227;
  --terracota:  #BE6B48;
  --terracota-d:#A2583A;
  --sage:       #7C9080;
  --rose:       #D9A79D;
  --mustard:    #D9A441;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito Sans", sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
}

*{ box-sizing:border-box; }

html{ scroll-behavior:smooth; scroll-padding-top:90px; }

body{
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream-2);
  line-height:1.6;
}

/* Texto justificado (con guiones para evitar huecos grandes) */
p,
.accordion-body{
  text-align: justify;
  hyphens: auto;
}
.section-text{ hyphens: auto; }

/* Textos que deben ir centrados / a la izquierda aunque haya justificado global */
.text-center .section-text,
.service-card p,
.closing-line p,
.contact-item p{ text-align: center; }
.hero-text{ text-align: left; }

/* En celulares las columnas son angostas: el justificado deja huecos, mejor alinear a la izquierda */
@media (max-width: 575px){
  p,
  p.section-text,
  .accordion-body{ text-align: left; }
  .text-center p.section-text,
  .service-card p,
  .closing-line p{ text-align: center; }
}

.pending{
  font-style: italic;
  color: var(--terracota-d);
  opacity:.8;
}

.eyebrow{
  display:inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--terracota-d);
  margin-bottom: .75rem;
}

.hero .eyebrow{
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  margin-bottom: 1rem;
}

.section-title{
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height:1.2;
  margin-bottom: 1.1rem;
}

.section-text{
  text-align: justify;
  font-size: 1.05rem;
  color: #5b5044;
}

.section{ padding: 6rem 0; }
@media (max-width: 768px){ .section{ padding: 4rem 0; } }

/* =========================================================
   NAV
   ========================================================= */
#mainNav{
  background: rgba(251,247,240,0);
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
  padding: 1.3rem 0;
}
#mainNav.scrolled{
  background: rgba(251,247,240,.96);
  box-shadow: 0 6px 24px rgba(59,50,39,.08);
  padding: .8rem 0;
  backdrop-filter: blur(6px);
}
.navbar-brand{
  font-family: var(--font-display);
  font-weight:600;
  font-size:1.6rem;
  color: var(--ink) !important;
  display:flex;
  align-items:center;
  gap:.8rem;
  line-height:1.1;
}
.brand-logo{
  height: 54px;
  width: auto;
  border-radius: 50%;
  object-fit: cover;
  transition: height .35s ease;
}
#mainNav.scrolled .brand-logo{ height: 44px; }
.brand-text{ display:flex; flex-direction:column; }
.brand-sub{
  font-family: var(--font-body);
  font-size:.75rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color: var(--terracota-d);
  font-weight:700;
}
.nav-link{
  color: var(--ink) !important;
  font-weight:600;
  font-size:1.05rem;
  padding: .5rem 1rem !important;
}
.nav-link:hover{ color: var(--terracota-d) !important; }

/* Botón "Agendar cita" del menú: acompaña el tamaño de las opciones */
#mainNav .btn-cta{ font-size: 1rem; }

/* Pantallas medianas (992px a 1199px): se reduce un poco para que todo quepa en una línea */
@media (min-width: 992px) and (max-width: 1199px){
  .navbar-brand{ font-size: 1.3rem; gap: .6rem; }
  .brand-logo{ height: 46px; }
  #mainNav.scrolled .brand-logo{ height: 40px; }
  .brand-sub{ font-size: .66rem; }
  .nav-link{ font-size: .95rem; padding: .5rem .6rem !important; }
  #mainNav .btn-cta{ font-size: .95rem; padding: .6rem 1.2rem; }
}

/* Celular: marca compacta para no empujar el botón del menú */
@media (max-width: 575px){
  .navbar-brand{ font-size: 1.15rem; gap: .6rem; }
  .brand-logo{ height: 40px; }
  #mainNav.scrolled .brand-logo{ height: 36px; }
  .brand-sub{ font-size: .58rem; letter-spacing: .1em; }
}

/* Celulares muy angostos (320px a 399px) */
@media (max-width: 399px){
  .navbar-brand{ font-size: 1rem; gap: .5rem; margin-right: .5rem; }
  .brand-logo{ height: 36px; }
  #mainNav.scrolled .brand-logo{ height: 32px; }
  .brand-sub{ font-size: .52rem; letter-spacing: .06em; }
}

.navbar-toggler{ border:none; padding:6px; }
.navbar-toggler:focus{ box-shadow:none; }
.toggler-line{
  display:block;
  width:24px;
  height:2px;
  background: var(--ink);
  margin: 5px 0;
}

.btn-cta{
  background: var(--terracota);
  color:#fff;
  border:none;
  border-radius: 999px;
  padding: .65rem 1.6rem;
  font-weight:700;
  font-size:.92rem;
  transition: background .25s ease, transform .25s ease;
}
.btn-cta:hover{
  background: var(--terracota-d);
  color:#fff;
  transform: translateY(-2px);
}
.btn-outline-soft{
  background:transparent;
  border:2px solid var(--ink);
  color: var(--ink);
  border-radius:999px;
  padding: .6rem 1.6rem;
  font-weight:700;
  font-size:.92rem;
  transition: all .25s ease;
}
.btn-outline-soft:hover{
  background: var(--ink);
  color: var(--cream-2);
}

/* ---------- MENÚ MÓVIL (fondo propio para que no se mezcle con el hero) ---------- */
#mainNav.menu-open{
  background: var(--cream-2);
  box-shadow: 0 6px 24px rgba(59,50,39,.10);
}
@media (max-width: 991px){
  #mainNav .navbar-collapse{
    background: var(--cream-2);
    border-top: 1px solid #E3D8C8;
    margin-top: .8rem;
    padding: .6rem 0 1rem;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }
  #mainNav .navbar-nav{ gap: 0; }
  #mainNav .nav-link{
    padding: .85rem .25rem !important;
    border-bottom: 1px solid #EFE6D8;
  }
  #mainNav .nav-item.ms-lg-2{ margin-top: 1rem; }
  #mainNav .btn-cta{
    display: block;
    width: 100%;
    text-align: center;
    padding: .8rem 1.6rem;
  }
}

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position:relative;
  overflow:hidden;
  padding: 9.5rem 0 6rem;
  background: var(--cream);
}
.hero-shape{
  position:absolute;
  border-radius: 50% 50% 0 0;
  opacity:.9;
  z-index:0;
}
.shape-sage{
  width:220px; height:110px;
  background: var(--sage);
  top: 18%; left: -60px;
  transform: rotate(-8deg);
}
.shape-rose{
  width:160px; height:80px;
  background: var(--rose);
  bottom: 6%; right: 6%;
}
.shape-mustard{
  width:90px; height:90px;
  border-radius:50%;
  background: var(--mustard);
  top: 8%; right: 18%;
  opacity:.85;
}
.hero .container{ position:relative; z-index:1; }

.hero-title{
  font-family: var(--font-display);
  font-weight:500;
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height:1.15;
}
.hero-title em{
  font-style: italic;
  color: var(--terracota-d);
}
.hero-text{
  font-size:1.1rem;
  color:#5b5044;
  max-width: 480px;
  margin-top: 1rem;
}

.hero-photo-frame{
  position:relative;
  padding: 18px;
}
/* ---------- CARRUSEL DE FOTOS (hero) ---------- */
.hero-carousel{ position:relative; }
.hero-stage{
  position: relative;
  background: var(--cream-2);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 36px rgba(59,50,39,.14);
  overflow: hidden;
}
.hero-carousel .carousel-item{
  aspect-ratio: 1 / 1;
}
.hero-carousel .carousel-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;        /* la foto llena el marco */
  object-position: center;
  display: block;
}
.hero-carousel .carousel-item img.pos-top{ object-position: center 25%; }
.hero-carousel .carousel-item img.pos-right{ object-position: 70% center; }
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next{
  width: 3.2rem;
  opacity: 1;
}
.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon{
  width: 2.4rem;
  height: 2.4rem;
  background-color: var(--terracota);
  background-size: 50%;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(59,50,39,.25);
  transition: background-color .25s ease;
}
.hero-carousel .carousel-control-prev:hover .carousel-control-prev-icon,
.hero-carousel .carousel-control-next:hover .carousel-control-next-icon{
  background-color: var(--terracota-d);
}
.hero-carousel .carousel-indicators{
  position: static;
  margin: 1.1rem 0 0;
  justify-content: center;
}
.hero-carousel .carousel-indicators [data-bs-target]{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  margin: 0 5px;
  background-color: var(--terracota);
  opacity: .35;
}
.hero-carousel .carousel-indicators .active{ opacity: 1; }

/* ---------- HERO RESPONSIVE ---------- */
@media (max-width: 991px){
  .hero{ padding: 7.5rem 0 4rem; }
  .hero-text{ max-width: 100%; }
  .hero-photo-frame{ padding: 0; max-width: 460px; margin: 0 auto; }
  .shape-sage{ width: 150px; height: 75px; top: 10%; left: -50px; opacity: .55; }
  .shape-mustard{ width: 64px; height: 64px; top: 7%; right: 8%; }
  .shape-rose{ width: 110px; height: 55px; bottom: 2%; right: 4%; }
}
@media (max-width: 575px){
  .hero{ padding: 6.5rem 0 3.5rem; }
  .hero .btn{ width: 100%; text-align: center; }
  .hero-text{ text-align: left; }
}

.photo-placeholder{
  background: repeating-linear-gradient(135deg, #ECE2D3, #ECE2D3 10px, #E4D7C4 10px, #E4D7C4 20px);
  border: 2px dashed #C9B79C;
  border-radius: var(--radius-lg);
  min-height: 360px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color: var(--terracota-d);
  font-weight:700;
  font-size:.95rem;
}
.photo-placeholder--sq{ min-height: 340px; }
.photo-placeholder--round{
  border-radius:50%;
  min-height:0;
  aspect-ratio:1/1;
  font-size:.8rem;
}

/* Marco para fotos reales (ya no placeholder) */
.photo-frame{
  overflow:hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(59,50,39,.12);
}
.photo-frame img{ object-fit: cover; display:block; }
.photo-frame--sq{ min-height: 340px; }
.photo-frame--round{
  border-radius:50%;
  aspect-ratio:1/1;
}

/* =========================================================
   SOBRE MI
   ========================================================= */
.section-sobre{ background: var(--cream-2); }
.container-sobre{
  max-width: 1100px;  
  margin-left: auto;  
  margin-right: auto;
}

.sobre-texto{
  padding-right: 2rem;
}
.sobre-texto--der{
  padding-right: calc(var(--bs-gutter-x) * .5);
  padding-left: 2rem;
}

/* separación entre profesionales */
.sobre-perfil + .sobre-perfil{ margin-top: 5rem; }

.perfil-nombre{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  line-height: 1.2;
  margin-bottom: .25rem;
}
.perfil-cargo{
  display: block;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--terracota-d);
  margin-bottom: 1.1rem;
}

@media (max-width: 991px){
  .sobre-texto,
  .sobre-texto--der{
    padding-left: calc(var(--bs-gutter-x) * .5);
    padding-right: calc(var(--bs-gutter-x) * .5);
  }
  .sobre-perfil + .sobre-perfil{ margin-top: 3.5rem; }
}

.credential-list{
  list-style:none;
  padding:0;
  margin-top:1.5rem;
  border-top:1px solid #E3D8C8;
}
.credential-list li{
  padding: .8rem 0;
  border-bottom:1px solid #E3D8C8;
  font-weight:700;
  display:flex;
  justify-content:space-between;
  gap:1rem;
}
@media (max-width: 575px){
  .credential-list li{
    flex-direction: column;
    gap: .15rem;
  }
  .credential-list li span{ font-weight: 600; color: var(--terracota-d); }
}

/* =========================================================
   SERVICIOS (arcos crecientes)
   ========================================================= */
.section-servicios{ background: var(--cream); }

.service-card{
  background: var(--cream-2);
  border-radius: var(--radius-md);
  padding: 2.5rem 1.8rem 2rem;
  text-align:center;
  height:100%;
  box-shadow: 0 10px 30px rgba(59,50,39,.05);
  transition: transform .3s ease, box-shadow .3s ease;
}
.service-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(59,50,39,.1);
}
.service-card--mid{ background: var(--terracota); color:#fff; }
.service-card--mid p{ color: rgba(255,255,255,.9); }
.service-card--mid .badge-age{ background: rgba(255,255,255,.2); color:#fff; }

.arch{ height:70px; width:auto; margin:0 auto 1.2rem; display:block; fill: var(--terracota); }
.service-card--mid .arch{ fill:#fff; }
.arch-sm{ height:52px; }
.arch-md{ height:66px; }
.arch-lg{ height:80px; }

.service-card h3{
  font-family: var(--font-display);
  font-weight:600;
  font-size:1.4rem;
  margin-bottom:.6rem;
}
.badge-age{
  display:inline-block;
  margin-top:1rem;
  background: var(--cream);
  color: var(--terracota-d);
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.05em;
  padding: .35rem .9rem;
  border-radius:999px;
}

.service-meta{
  margin-top:3.5rem;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:1.5rem;
  border-top: 1px solid #E3D8C8;
  padding-top:2rem;
}
@media (max-width: 768px){
  .service-meta{ grid-template-columns: repeat(2, 1fr); }
}
.meta-item{ display:flex; flex-direction:column; gap:.3rem; }
.meta-item strong{ font-family:var(--font-display); font-size:1.05rem; }

/* =========================================================
   TALLERES
   ========================================================= */
.section-talleres{ background: var(--cream-2); }
.workshop-card{
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 2.4rem;
  height:100%;
}
.workshop-icon{
  width:56px; height:56px;
  color: var(--terracota);
  margin-bottom:1.2rem;
}
.workshop-icon svg{ width:100%; height:100%; }
.workshop-card h3{
  font-family: var(--font-display);
  font-weight:600;
  font-size:1.5rem;
  margin-bottom:.6rem;
}
.workshop-details{
  list-style:none;
  padding:0;
  margin-top:1.2rem;
  border-top:1px dashed #C9B79C;
}
.workshop-details li{
  padding:.6rem 0;
  border-bottom:1px dashed #C9B79C;
  font-weight:700;
  font-size:.92rem;
}

/* =========================================================
   EQUIPO
   ========================================================= */
.section-equipo{ background: var(--cream); }

.team-grid{
  max-width: 720px;        /* limita el ancho: se ve como bloque de 4 (2x2) */
  margin-left: auto;
  margin-right: auto;
}

.team-member{ text-align:center; }

.team-member .photo-placeholder--round,
.team-member .photo-frame--round{
  width:130px; height:130px;
  margin:0 auto 1rem;
}

.team-member .photo-frame img{
  object-position: center top;   /* mantiene el rostro visible en el recorte circular */
}

.team-member h4{
  font-family: var(--font-display);
  font-weight:600;
  font-size:1.1rem;
  margin-bottom:.2rem;
  text-align:center;
  display:flex;
  align-items:center;
  justify-content:center;
}

.team-member p{
  font-size:.88rem;
  color:#7a6d5c;
  text-align:center;
  margin-bottom:0;
}

/* En celular los nombres largos ocupan 2 líneas: reservamos el espacio */
@media (max-width: 767px){
  .team-member h4{
    font-size: 1rem;
    min-height: 4.2em;          /* hasta 3 líneas: las descripciones quedan alineadas */
    align-items: flex-start;
  }
  .team-member p{ font-size: .85rem; }
}

/* =========================================================
   PROCESO
   ========================================================= */
.section-proceso{ background: var(--cream-2); }
.step-card{
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  height:100%;
  position:relative;
}
.step-num{
  font-family: var(--font-display);
  font-size:2.6rem;
  font-weight:600;
  color: var(--rose);
  display:block;
  margin-bottom:.4rem;
}
.step-card h3{
  font-family: var(--font-display);
  font-weight:600;
  font-size:1.25rem;
  margin-bottom:.5rem;
}

/* =========================================================
   FAQ
   ========================================================= */
.section-faq{ background: var(--cream); }
.accordion-button{
  font-family: var(--font-display);
  font-weight:500;
  font-size:1.1rem;
  background: transparent;
  color: var(--ink);
  padding: 1.3rem 0;
}
.accordion-button:not(.collapsed){
  color: var(--terracota-d);
  background: transparent;
  box-shadow:none;
}
.accordion-button:focus{ box-shadow:none; }
.accordion-button::after{ flex-shrink:0; }
.accordion-item{ background:transparent; border:0; border-bottom:1px solid #E3D8C8; }
.accordion-body{ padding: 0 0 1.5rem; color:#5b5044; }

/* =========================================================
   FRASE DE CIERRE
   ========================================================= */
.closing-line{
  background: var(--cream-2);
  padding: 3rem 0;
  border-top: 1px solid #E3D8C8;
  border-bottom: 1px solid #E3D8C8;
}
.closing-line p{
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  color: var(--terracota-d);
  max-width: 720px;
  margin: 0 auto;
  line-height:1.4;
}

/* =========================================================
   CONTACTO
   ========================================================= */
.section-contacto{ background: var(--terracota); color:#fff; position:relative; overflow:hidden; }
.section-contacto .eyebrow{ color: var(--mustard); }
.section-contacto .section-text{ color: rgba(255,255,255,.85); }
.shape-contact{ top:-40px; right:-30px; opacity:.35; }

.contact-info{ margin-top:2rem; display:flex; flex-direction:column; gap:1.2rem; }
.contact-item{ display:flex; flex-direction:column; gap:.2rem; }
.contact-item strong{ font-family:var(--font-display); font-size:1rem; }
.contact-item a{ color:#fff; font-weight:700; text-decoration:underline; }
.contact-item .pending{ color: rgba(255,255,255,.75); }

.contact-form{
  background: var(--cream-2);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  color: var(--ink);
}
.contact-form .form-label{ font-weight:700; font-size:.88rem; }
.contact-form .form-control,
.contact-form .form-select{
  border-radius: 12px;
  border: 1px solid #DACBB2;
  padding: .65rem .9rem;
}
.contact-form .form-control:focus,
.contact-form .form-select:focus{
  border-color: var(--terracota);
  box-shadow: 0 0 0 .2rem rgba(190,107,72,.15);
}
.form-note{ margin-top: 1rem; font-weight:700; color: var(--mustard); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer{
  background: var(--ink);
  color: var(--cream);
  padding: 2.2rem 0;
}
.footer-brand{
  font-family: var(--font-display);
  font-weight:600;
  font-size:1.15rem;
}
.footer-logo{
  height: 44px;
  width: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.footer-note{ font-size:.85rem; color:#C9BCA8; }

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal{
  opacity:0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible{
  opacity:1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  html{ scroll-behavior:auto; }
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible{
  outline: 3px solid var(--terracota-d);
  outline-offset: 2px;
}