:root {
  --bg: #EDEFE7;
  --bg-alt: #E2E5D9;
  --ink: #23302A;
  --ink-soft: #4B564E;
  --accent: #8B5A6B;
  --accent-dark: #6F4655;
  --sage: #7A8C73;
  --line: #C9BFAE;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--accent-dark); }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  margin: 0 0 0.5em 0;
  font-weight: 500;
}

p { max-width: 62ch; }


/* --- HEADER Y NAVEGACIÓN --- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
  padding: 24px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: #EDE7E2;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

.btn-nav {
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 10px 20px;
  border-radius: 40px;
  color: #ffffff !important;
  transition: all 0.3s ease;
}

.btn-nav:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

/* Estado del Header con Scroll */
.site-header.scrolled {
  background-color: var(--bg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: 14px 0;
}

.site-header.scrolled .nav-brand {
  color: var(--ink);
}

.site-header.scrolled .nav-links a {
  color: var(--ink-soft);
}

.site-header.scrolled .nav-links a:hover {
  color: var(--ink);
}

.site-header.scrolled .btn-nav {
  border-color: var(--ink-soft);
  color: var(--ink) !important;
}


/* --- SECCIÓN HERO CON PARALLAX --- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 100px;
  
  /* Imagen de fondo */
  background-image: url('Hero.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Efecto Parallax activo en Computadoras / Notebooks */
@media (min-width: 769px) {
  .hero {
    background-attachment: fixed;
  }
}

/* Oscurece la imagen para resaltar los textos */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 28, 24, 0.45);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  color: #ffffff;
}

.hero-subtitle {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #EDE7E2;
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: 3.6rem;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 24px;
}

.hero h1 i {
  font-style: italic;
  font-weight: 400;
}

.hero-description, 
.hero-subtext {
  color: #EDE7E2;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 auto 16px auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  color: #EDE7E2;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn-secondary:hover {
  color: #ffffff;
}


/* --- ESPECIALIDADES --- */

.specialties {
  padding: 72px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.specialties h2 {
  font-size: 1.7rem;
}

.section-intro {
  color: var(--ink-soft);
  margin-bottom: 40px;
}

.specialty-index {
  list-style: none;
  margin: 0;
  padding: 0;
}

.specialty-index li {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 24px;
}

.specialty-index li:last-child {
  border-bottom: 1px solid var(--line);
}

.specialty-index h3 {
  font-size: 1.15rem;
  color: var(--accent-dark);
}

.specialty-index p {
  color: var(--ink-soft);
  margin: 0;
}


/* --- SOBRE MÍ --- */

.about {
  padding: 80px 0;
  background: var(--bg);
}

.about-grid {
  max-width: 1060px;
  margin: 0 auto;
  background: var(--bg-alt);
  border-radius: 32px;
  padding: 40px;
  display: flex;
  gap: 48px;
  align-items: stretch;
  box-shadow: 0 10px 30px rgba(35, 48, 42, 0.06);
}

.about-photo-col {
  flex: 0 0 40%;
  width: 40%;
  display: flex;
}

.about-photo-frame {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  display: block;
}

.about-copy-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-copy-wrap .eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.about-copy-wrap h2 {
  font-size: 2.1rem;
  line-height: 1.25;
}

.about-copy-wrap h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-dark);
}

.about-copy-wrap p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
}


/* --- PROCESO --- */

.process-section {
  padding: 80px 0;
  background: var(--bg);
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.process-card {
  background: var(--bg-alt);
  border-radius: 32px;
  padding: 48px 40px 40px;
  box-shadow: 0 10px 30px rgba(35, 48, 42, 0.05);
}

.process-card h2 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 16px;
}

.process-intro {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.process-photo-frame {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.process-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.process-steps {
  position: relative;
  padding-left: 8px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.process-steps::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 80px;
  left: 27px;
  width: 1px;
  background-color: var(--line);
  z-index: 0;
}

.step-item {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink-soft);
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.step-content p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}

.process-footer-note {
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--sage);
  font-size: 0.9rem;
}


/* --- TESTIMONIOS --- */

.testimonials-section {
  padding: 80px 0;
  background: var(--bg);
}

.testimonials-title {
  font-size: 2.2rem;
  margin-bottom: 36px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 40px 32px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  box-shadow: 0 10px 30px rgba(35, 48, 42, 0.03);
}

.quote-mark {
  font-family: var(--serif);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.6;
  margin-bottom: -10px;
  display: block;
}

.testimonial-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 24px 0;
}

.testimonial-author {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0;
}


/* --- FAQ --- */

.faq-section {
  padding: 80px 0 100px;
  background: var(--bg);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-title {
  font-size: 2.6rem;
  margin-bottom: 48px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-question::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--ink-soft);
  border-bottom: 1.5px solid var(--ink-soft);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  margin-right: 8px;
}

.faq-item[open] .faq-question::after {
  transform: rotate(-135deg);
}

.faq-answer {
  padding-bottom: 24px;
}

.faq-answer p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}


/* --- CTA BAND --- */

.cta-band {
  background: var(--accent-dark);
  color: var(--bg);
  padding: 80px 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--bg);
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.cta-band p {
  color: #EDE7E2;
  margin: 0 auto 28px;
}


/* --- FOOTER --- */

.site-footer {
  background: var(--bg);
  padding: 60px 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand {
  font-size: 1.15rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
}

.footer-tagline {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 32px;
  color: var(--sage);
  font-size: 0.85rem;
}


/* --- RESPONSIVE MÓVIL --- */

@media (max-width: 768px) {
  .nav-links {
    display: none; /* Oculta navegación completa en teléfonos para evitar desbordes */
  }

  .about-grid {
    flex-direction: column;
    padding: 24px;
  }

  .about-photo-col {
    width: 100%;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero h1 {
    font-size: 2.6rem;
  }
}
/* ==========================================
   ANIMACIÓN DE ENTRADA AL CARGAR LA PÁGINA
   ========================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  animation: fadeInUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}