/* =====================================================
   RESET Y CONFIGURACIÓN GENERAL
===================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #000;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

:root {
  --amarillo: #FFD700;
  --blanco: #FFFFFF;
  --negro: #000000;
}

/* =====================================================
   HEADER Y NAVEGACIÓN
===================================================== */
.header {
  background-color: rgba(0, 0, 0, 0.8);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.logo img {
  max-height: 50px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--blanco);
  font-weight: bold;
}

.nav-links a.activo,
.nav-links a:hover {
  color: var(--amarillo);
}

@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
  }
}

/* =====================================================
   SECCIÓN SERVICIOS HERO CON VIDEO DE FONDO
===================================================== */
.servicios-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  overflow: hidden;
}

.video-fondo {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 0;
  overflow: hidden;
}

.video-fondo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 2rem;
  border-radius: 10px;
  max-width: 900px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--amarillo);
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
}

.btn-amarillo {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--amarillo);
  color: #000000;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  transition: background 0.3s ease;
  text-align: center;
}

.btn-amarillo:hover {
  background-color: #e6c200;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .btn-amarillo {
    width: 100%;
  }
}

/* =====================================================
   SECCIÓN: TARJETAS DE SERVICIOS
===================================================== */
.servicios-section {
  background-color: var(--negro);
  padding: 4rem 2rem;
}

.titulo-seccion {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--amarillo);
}

.descripcion-servicios {
  max-width: 900px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
  text-align: justify;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--blanco);
}

.descripcion-servicios strong {
  color: var(--amarillo);
}

.tarjetas-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.tarjeta-servicio {
  background-color: #111;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
  width: 300px;
  position: relative;
  transition: transform 0.3s ease;
}

.tarjeta-servicio:hover {
  transform: translateY(-5px);
}

.tarjeta-servicio img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.contenido-tarjeta {
  padding: 1rem;
  text-align: center;
}

.contenido-tarjeta h3 {
  margin: 0 0 1rem;
  font-size: 1.3rem;
  color: var(--blanco);
}

.btn-detalles {
  background-color: var(--amarillo);
  color: #000;
  border: none;
  padding: 0.5rem 1rem;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-detalles:hover {
  background-color: #e6c200;
}

@media screen and (max-width: 768px) {
  .tarjetas-container {
    flex-direction: column;
    align-items: center;
  }

  .tarjeta-servicio {
    width: 90%;
  }
}

/* =====================================================
   MODAL DE DETALLE DE SERVICIO
===================================================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 0;
}

.modal-contenido {
  position: relative;
  z-index: 1;
  background-color: #111;
  color: white;
  max-width: 800px;
  width: 90%;
  max-height: 85vh;
  padding: 2rem;
  border-radius: 12px;
  overflow-y: auto;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.modal-scroll p,
.modal-scroll li {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.6;
}

.modal-scroll ul {
  padding-left: 1.5rem;
}

.cerrar-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  color: var(--amarillo);
  cursor: pointer;
  z-index: 2;
}

.oculto {
  display: none !important;
}

@media screen and (max-width: 600px) {
  .modal-contenido {
    max-height: 90vh;
    padding: 1.5rem;
  }

  .cerrar-modal {
    font-size: 1.5rem;
    top: 10px;
    right: 15px;
  }
}

/* =====================================================
   OTROS SERVICIOS / ACORDEÓN
===================================================== */
.otros-servicios {
  padding: 3rem 1rem;
  background-color: #000000;
  border-top: 2px solid #ddd;
}

.otros-servicios h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #ffffff;
}

.acordeon {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.acordeon .item {
  border-radius: 8px;
  overflow: hidden;
  background-color: #0c0c0c;
  border: 1px solid #ab8800;
  box-shadow: 0 3px 10px rgba(237, 218, 9, 0.477);
  transition: box-shadow 0.3s ease;
}

.acordeon .item:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.acordeon .titulo {
  width: 100%;
  padding: 1rem 1.2rem;
  background-color: #040404;
  color: #FFFFFF;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.acordeon .titulo:hover {
  background-color: #151617;
}

.acordeon .contenido {
  max-height: 0;
  overflow: hidden;
  background-color: #fdfdfd;
  padding: 0 1.2rem;
  font-size: 0.95rem;
  color: #444;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.acordeon .item.activo .contenido {
  max-height: 500px;
  padding: 1rem 1.2rem;
}

.acordeon .contenido p {
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .otros-servicios h2 {
    font-size: 1.6rem;
  }

  .acordeon .titulo {
    font-size: 1rem;
    padding: 0.9rem 1rem;
  }

  .acordeon .contenido {
    font-size: 0.95rem;
  }

  .acordeon {
    padding: 0 0.5rem;
  }
}

/* =====================================================
   FOOTER
===================================================== */
.footer {
  background-color: #141617;
  color: #eaeaea;
  padding: 3rem 1rem 2rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  position: relative;
  z-index: 10;
}

.footer-contenido {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-columna {
  flex: 1 1 250px;
  min-width: 240px;
}

.footer-logo img {
  max-width: 160px;
  margin-bottom: 1rem;
}

.footer-logo p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.footer-logo h3 {
  color: var(--amarillo);
  font-weight: 700;
  font-size: 1.2rem;
  margin-top: 0;
}

.footer-columna h4 {
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.footer-columna p {
  margin: 0.3rem 0;
  font-size: 0.92rem;
}

.footer-copy {
  text-align: center;
  border-top: 1px solid #2a2c2d;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: #aaa;
}

.footer-copy a {
  color: #f9c93d;
  text-decoration: none;
}

.footer-copy a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-contenido {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-columna {
    flex: 1 1 100%;
    max-width: 90%;
  }

  .footer-logo img {
    margin: 0 auto 1rem;
    display: block;
  }
}
