/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #111;
  color: #eee;
  line-height: 1.6;
  text-align: justify;
}

/* Contenedor principal */
.contenedor-principal {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header fijo */
header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: #111;
  z-index: 999;
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

header nav ul {
  display: flex;
  justify-content: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

header nav ul li a {
  text-decoration: none;
  color: gold;
  font-weight: bold;
  font-size: 18px;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a:active,
header nav ul li a:focus {
  color: #fff;
  border-bottom: 2px solid gold;
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-overlay {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: gold;
  text-align: center;
  padding: 0 20px;
}

.logo {
  width: 250px;
  max-width: 90%;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.hero-overlay h1 {
  font-size: 3em;
  margin-bottom: 0.5em;
}

.hero-overlay p {
  font-size: 1.5em;
}

/* Secciones generales */
section {
  scroll-margin-top: 100px;
  padding: 60px 0;
}

h2 {
  font-size: 2em;
  color: gold;
  text-align: center;
  margin: 0 0 20px;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: gold;
  margin: 10px auto 0;
}

/* Nosotros */
.nosotros-contenido {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  text-align: center;
  padding: 20px;
}

/* Socios */
.galeria-socios {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.socio img {
  width: 250px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.perfil-socio {
  max-width: 900px;
  margin: 30px auto 0;
  line-height: 1.8;
  text-align: center;
  padding: 0 20px;
}

.perfil-socio h3 {
  color: gold;
  margin-bottom: 15px;
}

.perfil-socio p {
  margin-bottom: 15px;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Aliados */
.aliados-lista {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.aliados-lista li {
  background: #1a1a1a;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9em;
  color: #ddd;
  white-space: nowrap;
}

/* Acordeón de Servicios */
.acordeon-servicios {
  margin-top: 30px;
}

.servicio-item {
  margin-bottom: 10px;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.servicio-btn-acordeon {
  background-color: #1f1f1f;
  color: white;
  cursor: pointer;
  padding: 16px 20px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.servicio-btn-acordeon:hover {
  background-color: #333;
}

.servicio-btn-acordeon::after {
  content: '+';
  margin-left: auto;
  font-size: 1.4em;
  color: gold;
}

.servicio-item.active .servicio-btn-acordeon::after {
  content: '−';
  color: #e1b700;
}

.contenido-servicio {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.2s ease;
  background: #222;
  color: #ddd;
  line-height: 1.7;
}

.contenido-servicio p {
  margin: 12px 0;
}

.servicio-item.active .contenido-servicio {
  max-height: 500px;
  padding: 20px;
}

/* Contacto */
#contacto .formulario-contacto {
  max-width: 600px;
  margin: 30px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.formulario-contacto input,
.formulario-contacto textarea {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  background-color: #2a2a2a;
  color: #fff;
  font-size: 16px;
}

.formulario-contacto button {
  background-color: #e1b700;
  color: #000;
  font-weight: bold;
  padding: 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.formulario-contacto button:hover {
  background-color: #c49e00;
}

.info-contacto {
  max-width: 800px;
  margin: 40px auto 0;
  text-align: center;
  line-height: 1.7;
  color: #ddd;
}

.info-contacto a {
  color: gold;
  text-decoration: underline;
}

/* Ubicación */
#ubicacion {
  background-color: #111;
}

/* WhatsApp Flotante */
.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  width: 60px;
  height: 60px;
}

.whatsapp img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 5px black);
  transition: transform 0.2s ease;
}

.whatsapp:hover img {
  transform: scale(1.1);
}

/* Footer */
footer {
  background: #000;
  color: gold;
  padding: 20px 0;
  text-align: center;
  margin-top: 40px;
}

footer a {
  color: gold;
  text-decoration: underline;
  margin: 0 10px;
}

/* Animaciones */
.fade-in-zoom {
  opacity: 0;
  transform: scale(0.8);
  animation: fadeZoomIn 1.2s ease-out forwards;
}

@keyframes fadeZoomIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive */
@media (max-width: 768px) {
  header nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .hero-overlay h1 {
    font-size: 2em;
  }

  .socio img {
    width: 100%;
    max-width: 300px;
  }

  .formulario-contacto {
    padding: 0 15px;
  }

  .contenido-servicio,
  .info-contacto,
  .perfil-socio p {
    text-align: left;
  }
}