/* ====== Variables (paleta turquesa-azul) ====== */
:root {
 --font: "Inter", system-ui, -apple-system, Roboto, Arial, sans-serif;



  /* Texto y fondos */
  --text: #f1f4f7;
  --bg: #060808;

  /* Marca y mi nombre */
  --primary: #1a7da6;
  /* turquesa */
  --primary-dark: #44aa69;
  /* azul petróleo */

  /* Tonos turquesa (sesiones) */
  --s1: #44848f;
  --s2: #0b7575;
  --s3: #246068;
  --s4: #c2e6eb;

  /* Botones */
  --primary-ink: #ccdae2;
  --ghost: #0ea5a6;

  /* Header/Footer */
  --header-bg: #000505;
  --shadow: 0 6px 22px rgba(2, 6, 23, .06), 0 1px 2px rgba(2, 6, 23, .04);

  /* Texto auxiliar */
  --ink: #dfe0e4;
  --muted: #64748b;
}

/* ====== Reset básico ====== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

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

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

/* ====== Tipografía/base ====== */
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* Utilidades */
.container {
  width: min(1600px, 97vw);
  margin: 0 auto;
  padding: 24px;
}

.center {
  text-align: center;
}

.bullets {
  padding-left: 18px;
}

.bullets li {
  margin: 6px 0;
}

/* ====== Header / Nav ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 900;
  letter-spacing: .5px;
  color: var(--primary-dark);
}

.logo span {
  opacity: .4;
}

.nav {
  display: flex;
  gap: 16px;
}

.nav a {
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  opacity: .9;
  color: var(--text);
}

.nav a:hover {
  color: var(--primary);
}

.nav a.active,
.nav a[aria-current="page"] {
  outline: 2px solid rgba(15, 23, 42, .12);
}

/* ====== Hero con imagen + overlay (coincide con tu index.html) ====== */
.hero {
  position: relative;
}

.hero picture img {
  width: 100%;
  height: 56vh;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .25) 40%, rgba(0, 0, 0, .15));
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ====== Secciones ====== */

/* ===== Sesiones: esquema de color por tarjeta (fondo + borde + textos + botón) ===== */

/* Base coherente en tema oscuro */
/* ===== Sesiones (grid de cards) ===== */
.sesiones .cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
}

.sesiones .card.servicio {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1.25rem;
}

/* Cabecera y subtítulo de cada card */
.sesiones .servicio-header {
  text-align: center;
  margin: 0 0 .25rem 0;
  line-height: 1.2;
}

.sesiones .servicio-sub {
  opacity: .85;
  margin: 0 0 .75rem 0;
  font-size: .95rem;
  text-align: center; /* centramos subtítulos */
}



/* Listas dentro de las cards */
.sesiones .servicio-lista {
  margin: .5rem 0 1rem 1.1rem;
  padding: 0;
  list-style: disc;
}

/* CTAs dentro de las cards */
.sesiones .servicio-cta {
  display: grid;           /* apila los botones */
  gap: .5rem;
  justify-items: center;   /* centra ambos horizontalmente */
  margin-top: auto;        /* empuja las CTAs al final del card */
}

.sesiones .servicio-cta .btn-primary {
  order: 1;                /* Reservar primero */
}

.sesiones .servicio-cta .btn-ghost {
  order: 2;                /* WhatsApp debajo */
}

.sesiones .servicio-detalle {
  margin-top: .25rem;
  opacity: .95;
}

/* Justificar texto, pero NO los subtítulos */
.sesiones .card p:not(.servicio-sub),
.sesiones .card li,
.sesiones .card .more {
  text-align: justify;
}


/* Botón "Leer más" dentro de las cards de sesiones */
.sesiones .card .more-toggle {
  box-shadow: 0 6px 18px rgba(0,0,0,.22);
  transition: transform .15s ease, filter .2s ease, box-shadow .2s ease;
}

.sesiones .card .more-toggle:hover,
.sesiones .card .more-toggle:focus {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
  outline: none;
}

.sesiones .card .more-toggle:focus-visible {
  outline: 2px solid rgba(255,255,255,.35);
  outline-offset: 2px;
}

/* Título de la sección Sesiones */
.sesiones h2 {
  text-align: center;
  max-width: 30ch;
  margin-inline: auto;
  margin-block: 0 1rem;
}

/* Colores personalizados por card de Sesiones */
.sesiones .cards .servicio:nth-child(1) .servicio-header h3 { color: #0e0d0d; } /* Individual */
.sesiones .cards .servicio:nth-child(1) .servicio-sub     { color: #0e0d0d; }

.sesiones .cards .servicio:nth-child(2) .servicio-header h3 { color: #0e0d0d; } /* Pareja */
.sesiones .cards .servicio:nth-child(2) .servicio-sub     { color: #0e0d0d; }

.sesiones .cards .servicio:nth-child(3) .servicio-header h3 { color: #0e0d0d; } /* LGTBIQ+ */
.sesiones .cards .servicio:nth-child(3) .servicio-sub     { color: #0e0d0d; }

.sesiones .cards .servicio:nth-child(4) .servicio-header h3 { color: #0e0d0d; } /* Duelo migratorio */
.sesiones .cards .servicio:nth-child(4) .servicio-sub     { color: #0e0d0d; }

.sesiones .cards .servicio:nth-child(1) :is(p, li),
.sesiones .cards .servicio:nth-child(2) :is(p, li),
.sesiones .cards .servicio:nth-child(3) :is(p, li),
.sesiones .cards .servicio:nth-child(4) :is(p, li) {
  color: #021414;
}

/* ===== Grids genéricos ===== */
.grid-2 {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ===== Avatar redondo ===== */
.avatar {
  --size: clamp(240px, 32vw, 380px); /* Tamaño fluido */
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow);
  border: 4px solid #fff;
  outline: 3px solid rgba(11,58,91,.12);
}

/* Centrar avatar cuando va solo */
.avatar-center,
#sobre-mi .avatar {
  display: block;
  margin-inline: auto;
}

/* ===== Cards genéricas ===== */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
}

.card {
  background: #55c4f8;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
  width: 320px;
  max-width: 100%;
  padding: 20px;
  transition: transform .3s ease, box-shadow .3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
}

.card h3 {
  margin-top: 0;
  color: var(--primary-dark);
}

/* Variación “sesiones” con borde turquesa */
.sesiones .card {
  border: 2px solid var(--s2);
  box-shadow: 0 4px 10px rgba(0, 120, 140, .12);
}

.sesiones .card h3 {
  color: #ebf2f3;
}

/* ===== Componente "Leer más" ===== */
.more {
  display: none;
  margin-top: 14px;
  background: var(--s1);
  border-radius: 12px;
  padding: 12px;
  color: #e0e8e9;
}

.more.is-open {
  display: block;
}

/* Botón "Leer más" genérico */
.link.more-toggle {
  margin-top: 12px;
  background-color: var(--s3);
  color: #0f0f0f;
  border: none;
  border-radius: 22px;
  padding: 9px 18px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color .25s ease, transform .15s ease;
}

.link.more-toggle:hover {
  background-color: var(--s4);
  transform: scale(1.05);
}

/* ===== Botones ===== */
.btn {
  display: inline-block;
  font-weight: 700;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-ink);
}

.btn-ghost {
  background: var(--ghost);
  color: var(--text);
  border: 1px solid rgba(2, 6, 23, .08);
}

/* ===== Footer ===== */
.site-footer {
  background: #0ea5a6;
  color: #fff;
  padding: 30px 20px;
  text-align: center;
  font-size: 15px;
  line-height: 1.5;
}

/* párrafos del footer */
.site-footer p {
  margin: 0;
}

/* línea © 2025 + enlace */
.site-footer .container {
  max-width: 900px;
  margin: 0 auto 16px;
}

.site-footer a {
  color: #ffffff;
  text-decoration: underline;
  font-size: inherit;   /* misma letra que el texto */
  display: inline-block;
  margin-left: 16px;    /* espacio entre tu nombre y el enlace */
}

/* texto largo legal */
.site-footer {
  background: #0ea5a6;
  color: #fff;
  padding: 30px 20px;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
}


/* ===== Botón flotante WhatsApp ===== */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .25);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: transform .3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.07);
}

.whatsapp-float img {
  width: 34px;
  height: 34px;
}

/* En el hero, haz que el botón de WhatsApp se vea igual que .btn-primary */
.hero .cta-row a.btn-ghost {
  background: var(--primary);
  color: var(--primary-ink);
  border-color: transparent;
}

.hero .cta-row a.btn-ghost:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* Título principal del hero más grande y legible */
.hero-overlay h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.1;
  letter-spacing: 0.4px;
  font-weight: 900;
  margin: 0 0 10px;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
}

/* Subtítulo del hero */
.hero-overlay p {
  font-size: clamp(16px, 2.2vw, 22px);
  max-width: 900px;
}

/* Sobre mí: tipografía y justificado */
.about-text {
  text-align: justify;
  font-size: clamp(19px, 1.8vw, 20px);
  line-height: 1.20;
}

.about-text p {
  margin: 0 0 14px;
}

.about-text strong {
  color: var(--ghost);
}

/* Sobre mí: layout */
#sobre-mi {
  grid-template-columns: clamp(200px, 28vw, 300px) 1fr;
  align-items: center;
  gap: 18px;
}

@media (max-width: 900px) {
  #sobre-mi {
    grid-template-columns: 1fr;
  }
}

/* Banner responsivo */
.header-banner {
  width: 100%;
  background-size: cover;
  background-position: center;
  height: 300px;
}

@media (max-width: 768px) {
  .header-banner {
    height: 180px;
  }
}

/* Layout general */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Centrar menú de navegación superior */
.site-header nav {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
}

/* Contenedor del header */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Menú centrado */
.center-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 40px;
}

/* Redes sociales a la derecha */
.social-icons {
  display: flex;
  gap: 14px;
  align-items: center;
}


/* Mensajes de error de formulario */
.error-msg {
  display: block;
  font-size: 0.85rem;
  color: #c0392b;
  margin-top: 0.25rem;
}


.social-icons img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0.9;
  transition: opacity .2s ease, transform .2s ease;
}

/* Hacemos un pelín más grande el de Facebook */
.social-icons img.icon-facebook {
  transform: scale(1.2);
}

/* Hover general */
.social-icons img:hover {
  opacity: 1;
  transform: scale(1.08);
}

/* Ajuste del hover SOLO para Facebook (suma al zoom base) */
.social-icons img.icon-facebook:hover {
  transform: scale(1.25);
}


.social-header img {
  width: 24px;
  height: 24px;
  display: inline-block;
  opacity: 0.85;
  transition: opacity .2s ease, transform .2s ease;
}

.social-header img:hover {
  opacity: 1;
  transform: scale(1.08);
}

.form-legal-note {
  font-size: 12px;
  line-height: 1.3;
  color: #e8e8e8;     /* un gris clarito, menos dominante */
  margin: 6px 0 12px; /* menos espacio arriba, poco abajo */
  text-align: left;   /* opcional: más estilo profesional */
}
textarea {
  resize: none;
}
.card-404 {
  max-width: 420px;
  margin: 0 auto;     /* centra la tarjeta dentro del container */
}

.card-404 .btn-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}
/* Logo en el header */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 70px;        /* tamaño del logo en la barra negra */
  width: auto;
  border-radius: 12px; /* opcional, queda bonito con esquinas suaves */
}
/* ===== Header responsive (móvil) ===== */
@media (max-width: 640px) {

  /* El header se apila en columna */
  .header-inner {
    flex-direction: column;
    align-items: center;
    padding: 8px 16px;
    gap: 6px;
  }

  /* El logo un poco más pequeño en móvil */
  .logo img {
    height: 70px;
  }

  /* El menú deja de ser absolute y se centra normal */
  .center-nav {
    position: static;
    transform: none;
    display: flex;
    gap: 20px;
    margin: 4px 0;
  }

  /* Redes sociales debajo del menú */
  .social-icons {
    margin-left: 0;
    margin-top: 4px;
    justify-content: center;
  }

  .social-icons img {
    width: 26px;
    height: 26px;
  }
}
/* ===== Layout del formulario de contacto ===== */
.contact-form {
  max-width: 980px;
  margin: 0 auto;
}

.contact-form .form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 24px;
}

.contact-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-form .form-field-full {
  grid-column: 1 / -1;
}

.contact-form label {
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
}

/* Desktop:  
   1: Nombre | 2: Email | 3: País  
   4: Teléfono | 5: Mensaje (ocupa 2 columnas) */
.contact-form .form-field:nth-child(1) { grid-column: 1 / 2; }
.contact-form .form-field:nth-child(2) { grid-column: 2 / 3; }
.contact-form .form-field:nth-child(3) { grid-column: 3 / 4; }
.contact-form .form-field:nth-child(4) { grid-column: 1 / 2; }
.contact-form .form-field:nth-child(5) { grid-column: 2 / 4; }

/* Móvil: una sola columna */
@media (max-width: 768px) {
  .contact-form .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-form .form-field:nth-child(1),
  .contact-form .form-field:nth-child(2),
  .contact-form .form-field:nth-child(3),
  .contact-form .form-field:nth-child(4),
  .contact-form .form-field:nth-child(5) {
    grid-column: 1 / -1;
  }
}
