 body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background-image: url('logo.png');
  background-size: 80%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center center;
  background-color: #fff;
}
header {
  background-color: #008EAA;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header .logo {
  font-size: 1.8rem;
  color: white;
  font-weight: 700;
  font-weight: bold;
  font-weight: normal;
  font-size: 30px;
  color: white;
  margin: 0 0 0px;
}
header a {
  color: white;
  text-decoration: none;
  margin-left: 15px;
  font-weight: bold;
}

header a:hover {
  color: #d1c4e9;
}
h1, h2, h3 {
  text-align: center;
  color: #333;
  font-weight: 600;
}

.sacramento-titulo {
  font-family: 'Sacramento', cursive;
  font-weight: normal;
  font-size: 56px;
  color: #00A8B5; /* PANTONE 7703C */
  margin: 0 0 10px;
}

.amets {
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 1px;
  font-family: 'Sacramento', cursive;
  color: #00A8B5; /* PANTONE 7703C */
  font-size: 1.4em;
}

.hero {
  padding: 60px 20px 20px;
  text-align: center;
  margin-bottom: 10px;
}

/* Mensaje que aparece */
.mensaje-inicial {
  display: block; /* inicialmente visible pero JS lo oculta */
  font-size: 22px;
  margin: 20px auto 40px auto;
  max-width: 400px;
  background-color: rgba(0, 168, 181, 0.1);
  padding: 20px;
  border-radius: 12px;
  position: relative;
}

.cerrar-mensaje {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  background: transparent;
  font-size: 24px;
  color: #00A8B5;
  cursor: pointer;
  font-weight: bold;
}

.botones-mensaje {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.botones-hero {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.boton {
  background-color: #00A8B5; /* PANTONE 7703C */
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.boton:hover {
  background-color: #008b96;
}

.whatsapp {
  background-color: #25D366;
}

.whatsapp:hover {
  background-color: #1ebe57;
}

/* Servicios */
.seccion-servicios {
  padding: 20px 20px 40px;
}

.seccion-servicios h2 {
  margin-bottom: 30px;
}

.servicios {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.servicio {
  background-color: #9D85CA; /* PANTONE 265C */
  color: white;
  padding: 25px;
  border-radius: 12px;
  width: 250px;
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease;
  cursor: pointer;
  margin: 0;
  display: block;
  text-decoration: none;
}

.servicio:hover {
  background-color: #00A8B5; /* PANTONE 7703C */
}

/* Contacto */
.contacto {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 40px 20px;
}

.mapa {
  flex: 1 1 400px;
  max-width: 600px;
}

.datos-contacto {
  flex: 1 1 300px;
  background-color: rgba(255, 255, 255, 0.85);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.datos-contacto a {
  color: #00A8B5;
  text-decoration: none;
}

.datos-contacto a:hover {
  text-decoration: underline;
}
.reviews h2 {
  font-size: 2rem;
  color: #8E76BA;
  margin-bottom: 40px;
}
.review-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.review-card {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s;
}
.review-card:hover {
  transform: translateY(-5px);
}
.review-text {
  font-style: italic;
  margin-bottom: 15px;
}
.review-author {
  font-weight: bold;
  color: #8E76BA;
}
footer {
  background-color: #008b96;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}
/* Mensaje que aparece */
.mensaje-inicial {
  display: block; /* inicialmente visible pero JS lo oculta */
  font-size: 22px;
  margin: 20px auto 40px auto;
  max-width: 400px;
  background-color: rgba(0, 168, 181, 0.1);
  padding: 20px;
  border-radius: 12px;
  position: relative;
}

.cerrar-mensaje {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  background: transparent;
  font-size: 24px;
  color: #00A8B5;
  cursor: pointer;
  font-weight: bold;
}

.botones-mensaje {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.botones-hero {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.boton {
  background-color: #00A8B5; /* PANTONE 7703C */
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.boton:hover {
  background-color: #008b96;
}

.whatsapp {
  background-color: #25D366;
}

.whatsapp:hover {
  background-color: #1ebe57;
}

/* ===== Estilo SOLO para páginas secundarias ===== */
body.secundaria {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  margin: 0;
  background: #fafafa;
}

/* Header secundario */
body.secundaria header {
  background: #1a7f92; /* Turquesa corporativo */
  padding: 16px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body.secundaria .brand {
  margin: 0;
  font-size: 1.6rem;
  color: #fff;
  letter-spacing: .3px;
}

body.secundaria nav a {
  color: #fff;
  text-decoration: none;  /* sin subrayado */
  font-weight: 600;
  margin-left: 18px;
}

body.secundaria nav a:hover {
  color: #d1c4e9; /* Lila suave al hover */
}

/* Contenido principal */
body.secundaria .contenido {
  max-width: 1000px;
  margin: 48px auto;
  padding: 32px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  position: relative;
  z-index: 1;
}

/* Títulos */
body.secundaria .contenido h2 {
  text-align: center;
  font-size: 2rem;
  margin: 0 0 22px;
  color: #1a7f92;
  font-weight: 800;
}

body.secundaria .contenido h3 {
  font-size: 1.15rem;
  margin: 22px 0 10px;
  color: #6a4c93; /* Lila corporativo */
  border-left: 6px solid #1a7f92;
  padding-left: 10px;
}

body.secundaria .contenido p {
  margin: 0 0 14px;
  line-height: 1.7;
  color: #444;
}

/* Marca de agua opcional */
body.secundaria .contenido::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("logo-amets.png") no-repeat center 40%;
  background-size: 360px;
  opacity: .05;
  pointer-events: none;
  z-index: -1;
}

/* Footer */
body.secundaria footer {
  background: #1a7f92;
  color: #fff;
  text-align: center;
  padding: 14px 10px;
  font-size: .95rem;
  margin-top: 40px;
}
/* Galería de fotos en páginas secundarias */
body.secundaria .galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

body.secundaria .galeria img {
  width: 100%;
  height: 350px;          /* 👈 todas las imágenes misma altura */
  object-fit: cover;      /* 👈 recorta y centra sin deformar */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
body.secundaria .foto_laser {
  width: 100% !important;
  height: 800px !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
  transition: transform 0.3s ease !important;
}

body.secundaria .galeria img:hover {
  transform: scale(1.05);
}
/* Contenedor del equipo */
body.secundaria .equipo {
  margin-top: 40px;
  text-align: center;
}

body.secundaria .equipo .intro {
  margin-bottom: 30px;
  color: #444;
  font-size: 1rem;
}

/* Grid equipo */
body.secundaria .equipo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 30px;
}

/* Miembro equipo */
body.secundaria .miembro {
  text-align: center;
}

body.secundaria .miembro img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

body.secundaria .bio-equipo {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
  text-align: justify;
}

body.secundaria .bio-equipo strong {
  color: #1a7f92; /* Turquesa corporativo */
  font-weight: 700;
}
body.secundaria .equipo .miembro img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}
/* ===== Contacto ===== */
body.secundaria .contacto h2 {
  margin-bottom: 10px;
}

/* Tarjetas de datos rápidos */
body.secundaria .contacto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 18px 0 28px;
}
body.secundaria .contacto-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: start;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  padding: 16px;
}
body.secundaria .contacto-card .icon {
  font-size: 28px;
  line-height: 1;
  color: #1a7f92;
}
body.secundaria .contacto-card h3 {
  margin: 0 0 4px;
  color: #1a7f92;
  font-size: 1.05rem;
}
body.secundaria .contacto-card p,
body.secundaria .contacto-card a {
  margin: 2px 0;
  font-size: .95rem;
}
body.secundaria .contacto-card a { text-decoration: none; color: #6a4c93; }
body.secundaria .contacto-card a:hover { text-decoration: underline; }

/* Horario compacto */
body.secundaria .horario { list-style: none; margin: 4px 0 8px; padding: 0; }
body.secundaria .horario li { margin: 2px 0; }

/* CTA pequeño dentro de tarjeta */
body.secundaria .cta-cita {
  display: inline-block;
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #1a7f92;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

/* Dos columnas: mapa + formulario */
body.secundaria .contacto-cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
  margin-top: 10px;
}
@media (max-width: 900px) {
  body.secundaria .contacto-cols { grid-template-columns: 1fr; }
}

body.secundaria .mapa-wrap {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  padding: 12px;
}
body.secundaria .mapa-wrap iframe {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: 10px;
}
body.secundaria .mapa-wrap small { display: block; margin-top: 8px; color: #666; }

/* Formulario */
body.secundaria .contacto-form {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  padding: 18px;
}
body.secundaria .contacto-form h3 {
  margin: 0 0 10px;
  color: #1a7f92;
}
body.secundaria .contacto-form label {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}
body.secundaria .contacto-form label.full { grid-column: 1 / -1; }
body.secundaria .contacto-form input,
body.secundaria .contacto-form textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  background: #fafafa;
}
body.secundaria .contacto-form input:focus,
body.secundaria .contacto-form textarea:focus {
  border-color: #1a7f92;
  box-shadow: 0 0 0 3px rgba(26,127,146,.12);
  background: #fff;
}
body.secundaria .contacto-form .check {
  display: flex;
  align-items: center;
  gap: 8px;
}
body.secundaria .contacto-form .btn-enviar {
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #1a7f92, #6a4c93);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
body.secundaria .contacto-form .btn-enviar:hover { filter: brightness(1.03); }
body.secundaria .contacto-form .ayuda { font-size: .9rem; color: #666; margin-top: 8px; }/* === PATCH: apilar título y tarjetas en Contacto === */
body.secundaria .contenido.contacto { display: block; }

body.secundaria .contenido.contacto > h2 {
  display: block;
  text-align: center;         /* centra el título */
  margin: 0 0 18px 0;
  clear: both;                /* evita que algo flote a su lado */
}

body.secundaria .contenido.contacto > .contacto-grid {
  clear: both;                /* garantiza que quede debajo del h2 */
  margin: 0 auto;             /* centra el grid dentro del contenedor */
  /* no repetimos columnas para no pisar tu config actual */
}