/* === VARIABLES DE TEMA === */
:root {
  --color-pastel-ceres: #eb94cf;
  --color-pastel-ceres-hover: #d17ab6;
  --color-texto-principal: #333;
  --color-texto-suave: #555;
  --color-fondo-claro: #f8f8f8;
  --color-borde-suave: #f0dbe2;
  --fuente-base: 'Sarabun', sans-serif;
  --fuente-titulo: 'Marcellus', serif;
}

/* === RESET GENERAL === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--fuente-base);
  background-color: #f8f8f8;
  background-image: url('/public/img/fondop.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  color: var(--color-texto-principal);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === TIPOGRAFÍA === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--fuente-titulo);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; color: var(--color-pastel-ceres); }
h3 { font-size: 1.7rem; color: var(--color-pastel-ceres); }

p {
  margin-bottom: 0.9rem;
  font-size: 1rem;
}

/* === MENÚ SUPERIOR CON LOGO === */
.menu-principal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.contenedor-logo .logo {
  max-height: 60px;
  height: auto;
  width: auto;
}

.navegacion ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.navegacion ul li a {
  text-decoration: none;
  color: var(--color-texto-principal);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.navegacion ul li a:hover,
.navegacion ul li a:focus {
  color: var(--color-pastel-ceres);
  outline: none;
}

/* === BOTÓN DE CONTACTO === */
.boton-contacto {
  background-color: var(--color-pastel-ceres);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.boton-contacto:hover,
.boton-contacto:focus {
  background-color: var(--color-pastel-ceres-hover);
  outline: none;
}

/* === ENCABEZADO PRINCIPAL (HERO CIME) === */
.hero {
  background-color: transparent;
  color: var(--color-texto-principal);
  padding: 100px 20px 60px;
}

.hero-contenido {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1000px;
  margin: auto;
  gap: 40px;
}

.hero-texto {
  flex: 1;
  text-align: left;
}

.hero-texto h1,
.hero-texto p,
.hero-texto .autora {
  font-family: var(--fuente-titulo);
}

.hero-texto h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  color: var(--color-pastel-ceres);
}

.hero-texto p {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.hero-texto .autora {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-texto-suave);
}

.hero-imagen {
  flex: 1;
  max-width: 450px;
}

.hero-imagen img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* === SECCIONES GENERALES === */
.seccion {
  padding: 80px 20px;
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

/* === GRID DE SERVICIOS === */
.grid-servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.servicio {
  background-color: #fff;
  border: 1px solid var(--color-borde-suave);
  border-radius: 8px;
  padding: 20px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.servicio:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.servicio h3 {
  margin-bottom: 10px;
}

.detalle {
  font-size: 0.95rem;
  color: var(--color-texto-suave);
  display: none;
}
.servicio img {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.servicio:hover img {
  transform: scale(1.02);
}
/* === FORMULARIO DE CONTACTO === */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: auto;
}

input,
textarea {
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  transition: all 0.3s ease;
}

textarea {
  resize: vertical;
}

button[type="submit"] {
  background-color: var(--color-pastel-ceres);
  color: white;
  font-weight: bold;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover,
button[type="submit"]:focus {
  background-color: var(--color-pastel-ceres-hover);
  outline: none;
}

/* === PIE DE PÁGINA === */
footer {
  text-align: center;
  padding: 30px 20px;
  font-size: 14px;
  background-color: var(--color-fondo-claro);
  color: #666;
}

footer a {
  color: var(--color-pastel-ceres);
  text-decoration: underline;
  font-weight: 500;
}

/* === RESPONSIVE BÁSICO === */
@media (max-width: 768px) {
  .menu-principal {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .navegacion ul {
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
  }

  .hero {
    padding: 60px 20px;
  }

  .hero-contenido {
    flex-direction: column;
    text-align: center;
  }

  .hero-texto {
    text-align: center;
  }

  .hero-imagen {
    max-width: 80%;
    margin-top: 20px;
  }

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

  form {
    width: 100%;
    padding: 0 10px;
  }
}

/* === UTILIDADES === */
.hide {
  display: none !important;
}

.fade {
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-turnos {
  background: white;
  padding: 20px;
  width: 600px;
  max-width: 90%;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  position: relative;
}

.modal-turnos h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: #2c3e50;
}

.modal-turnos table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.modal-turnos th, .modal-turnos td {
  padding: 6px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.modal-turnos .acciones button {
  margin-right: 6px;
  font-size: 0.85rem;
  padding: 4px 8px;
  cursor: pointer;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 18px;
  cursor: pointer;
  color: #888;
}

.modal-close:hover {
  color: #000;
}