/* ============================================
   Lic. Giselle A. López — Sitio profesional
   Paleta: verde seco, azul marino, crema cálida
   ============================================ */

:root {
  --color-cream: #f7f4ef;
  --color-cream-dark: #ebe6dd;
  --color-sage: #5c7a6b;
  --color-sage-dark: #4a6356;
  --color-sage-light: #7a9a88;
  --color-navy: #2c3e50;
  --color-navy-light: #3d5266;
  --color-terracotta: #a67c6b;
  --color-terracotta-dark: #8f6859;
  --color-text: #3a3a38;
  --color-text-muted: #6b6b66;
  --color-white: #ffffff;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --shadow-soft: 0 4px 24px rgba(44, 62, 80, 0.08);
  --shadow-card: 0 8px 32px rgba(44, 62, 80, 0.1);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.25s ease;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-sage-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-navy);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-navy);
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: var(--radius);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(44, 62, 80, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-navy);
}

.logo-title {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
}

.nav-list a:hover {
  color: var(--color-sage-dark);
}

.nav-cta {
  padding: 0.5rem 1rem;
  background: var(--color-sage);
  color: var(--color-white) !important;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.nav-cta:hover {
  background: var(--color-sage-dark);
  color: var(--color-white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  transition: var(--transition);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform 0.15s ease, box-shadow var(--transition);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--color-sage);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-sage-dark);
  color: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--color-navy);
  border: 1.5px solid rgba(44, 62, 80, 0.25);
}

.btn-ghost:hover {
  border-color: var(--color-sage);
  color: var(--color-sage-dark);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--color-white);
  margin-top: 1.25rem;
}

.btn-whatsapp:hover {
  background: #1da851;
  color: var(--color-white);
}

.btn-whatsapp svg {
  width: 1.35rem;
  height: 1.35rem;
}

.btn-full {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(92, 122, 107, 0.12), transparent),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(166, 124, 107, 0.08), transparent),
    linear-gradient(180deg, var(--color-cream) 0%, var(--color-cream-dark) 100%);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin: 1.25rem 0 2rem;
  max-width: 640px;
}

.hero-subtitle strong {
  color: var(--color-navy);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-header--left {
  text-align: left;
  margin-left: 0;
  margin-bottom: 1.5rem;
}

.section-lead {
  font-size: 1.125rem;
  color: var(--color-text-muted);
}

/* Tratamiento */
.tratamiento {
  background: var(--color-white);
}

.temas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tema-card {
  padding: 1.75rem;
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.tema-card:hover {
  border-color: rgba(92, 122, 107, 0.2);
  box-shadow: var(--shadow-soft);
}

.tema-card--wide {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .tema-card--wide {
    grid-column: span 2;
  }
}

@media (min-width: 900px) {
  .temas-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tema-card--wide {
    grid-column: span 1;
  }
}

.tema-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-sage);
}

.tema-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.tema-card h3 {
  margin-bottom: 0.5rem;
}

.tema-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Perfil */
.perfil {
  background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-cream-dark) 100%);
}

.perfil-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 768px) {
  .perfil-grid {
    grid-template-columns: minmax(240px, 320px) 1fr;
    gap: 4rem;
    align-items: center;
  }
}

.perfil-foto {
  margin: 0;
}

.foto-placeholder {
  aspect-ratio: 4 / 5;
  background: linear-gradient(145deg, var(--color-sage-light), var(--color-sage));
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.foto-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(44, 62, 80, 0.15));
}

.foto-inicial {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  z-index: 1;
}

.perfil-foto img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.perfil-foto:has(img) .foto-placeholder {
  display: none;
}

.perfil-credencial {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-navy);
  margin: 0 0 0.25rem;
}

.mn {
  font-size: 1rem;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-weight: 400;
}

.prose p {
  margin-bottom: 1.25rem;
}

/* Encuadre */
.encuadre {
  background: var(--color-white);
}

.encuadre-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .encuadre-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.encuadre-card {
  padding: 2rem;
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-sage);
}

.encuadre-card h3 {
  margin-bottom: 1rem;
  color: var(--color-sage-dark);
}

.modalidades-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.modalidades-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(44, 62, 80, 0.08);
}

.modalidades-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.modalidades-list strong {
  display: block;
  color: var(--color-navy);
  margin-bottom: 0.35rem;
}

/* Contacto */
.contacto {
  background: var(--color-navy);
  color: var(--color-cream);
}

.contacto h2 {
  color: var(--color-white);
}

.contacto-intro p {
  color: rgba(247, 244, 239, 0.85);
}

.contacto-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 900px) {
  .contacto-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.contacto-form {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.4rem;
}

.opcional {
  font-weight: 400;
  color: var(--color-text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-cream);
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-sage);
  box-shadow: 0 0 0 3px rgba(92, 122, 107, 0.15);
}

.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
  border-color: var(--color-terracotta);
}

.form-privacidad {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
  text-align: center;
}

/* Footer */
.site-footer {
  background: #1e2a36;
  color: rgba(247, 244, 239, 0.75);
  padding: 2.5rem 0;
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--color-white);
  margin: 0 0 0.25rem;
}

.footer-info p {
  margin: 0.15rem 0;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  color: rgba(247, 244, 239, 0.75);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--color-white);
}

.footer-copy {
  width: 100%;
  text-align: center;
  margin: 0.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  color: rgba(247, 244, 239, 0.45);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-cream);
    border-bottom: 1px solid rgba(44, 62, 80, 0.08);
    padding: 1rem 0;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  }

  .nav-list.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list a {
    display: block;
    padding: 0.875rem 1.5rem;
  }

  .nav-cta {
    margin: 0.5rem 1.5rem 0;
    text-align: center;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
