/* =======================================
   Paleta de colores y ajustes globales
   ======================================= */
:root {
  --bg-light: #f9f9f9;
  --text-dark: #333;
  --primary: #00796b;
  --secondary: #004d40;
  --accent: #f57f17;
  --bg-dark: #121212;
  --text-light: #e0e0e0;
  --surface-dark: #1e1e1e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

header {
  background: #ffffff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo img {
  height: 50px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.menu-toggle div {
  width: 25px;
  height: 3px;
  background-color: #333;
}

nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
nav a {
  text-decoration: none;
  color: var(--primary);
  font-weight: bold;
}
nav a:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background-color: #fff;
    padding: 1rem;
    border-radius: 10px;
  }
  nav ul.active {
    display: flex;
  }
}

/* =============================
   Secciones principales
   ============================= */
section {
  padding: 4rem 2rem;
  max-width: 960px;
  margin: auto;
  background-color: var(--bg-light);
}
section h2 {
  color: var(--primary);
  margin-bottom: 2rem;
  text-align: center;
  font-size: 2rem;
}

details {
  background: white;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}
details summary {
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
}
details[open] {
  background: #e0f2f1;
}
details p {
  margin-top: 1rem;
  text-align: justify;
}

/* =============================
   Botones
   ============================= */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  color: white;
  background-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  margin: 0.5rem;
}

.button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.button:active {
  transform: scale(0.96);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Colores personalizados por botón */
.button.map {
  background-color: #4285F4; /* Google Maps azul */
}

.button.copy {
  background-color: #6c757d; /* Gris oscuro */
}

.button.whatsapp {
  background-color: #25D366; /* Verde WhatsApp */
}

/* ✅ Estilos especiales para móviles */
@media (max-width: 480px) {
  .button {
    font-size: 1.2rem;
    padding: 1.2rem;
    min-width: 100%;
    border-radius: 14px;
    margin: 0.5rem 0;
  }
}

/* =============================
   Galería
   ============================= */
.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

/* =============================
   Redes sociales
   ============================= */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 600px) {
  .social-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}
.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1rem;
}

/* =============================
   Footer
   ============================= */
footer {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--secondary);
  color: white;
}

/* =============================
   Formulario de cita
   ============================= */
iframe {
  width: 100%;
  border: none;
  border-radius: 10px;
}
