/* ======================================================
   VARIABLES Y BASE
====================================================== */
:root {
  --negro: #0a0a0a;
  --dorado: #c8a951;
  --gris-plateado: #cfcfcf;
  --blanco: #ffffff;
  --fuente-titulo: 'Playfair Display', serif;
  --fuente-texto: 'Roboto', sans-serif;
}

body {
  background-color: var(--negro);
  color: var(--blanco);
  font-family: var(--fuente-texto);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--fuente-titulo);
  color: var(--dorado);
  letter-spacing: 1px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ======================================================
   NAVBAR
====================================================== */
.navbar {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(8px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(200,169,81,0.2);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.nav-content .logo img {
  height: 60px;
}

.nav-content .menu a {
  color: var(--gris-plateado);
  text-decoration: none;
  margin-left: 2rem;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-content .menu a:hover {
  color: var(--dorado);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  background: var(--dorado);
  height: 3px;
  width: 25px;
  margin: 4px 0;
}

/* ------------------- Celular ------------------- */
@media (max-width: 768px) {
  .menu {
    display: none;
    flex-direction: column;
    background: var(--negro);
    position: absolute;
    top: 80px;
    right: 0;
    width: 60%;
    border-left: 2px solid var(--dorado);
  }

  .menu.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-content .menu a {
    margin: 1rem;
  }
}


/* ======================================================
   HERO DEL SERVICIO
====================================================== */
.hero-servicio {
  position: relative;
  height: 65vh;
  background: url('../media/hero-servicio.jpg') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.hero-servicio::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('../media/defensa_penal.png') center/cover no-repeat;
  animation: zoomHero 20s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes zoomHero {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-content h1 {
  font-family: var(--fuente-titulo);
  color: var(--dorado);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, #c9b25a 0%, #f5d87c 50%, #c9b25a 100%);
  background-size: 200%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: shineGold 6s linear infinite;
}

.hero-content p {
  color: var(--gris-plateado);
  font-size: 1.2rem;
}

@keyframes shineGold {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* ======================================================
   SERVICIO DETALLE (SECCIÓN ÚNICA)
====================================================== */
.servicio-detalle {
  background: #0e0e0e;
  padding: 1rem 0;
  line-height: 1.8;
}

.servicio-detalle h2 {
  color: var(--dorado);
  font-family: var(--fuente-titulo);
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.servicio-detalle h3 {
  color: var(--dorado);
  font-family: var(--fuente-titulo);
  margin-top: 3rem;
  margin-bottom: 1rem;
  text-align: center;
}

.servicio-detalle p {
  max-width: 900px;
  margin: 0 auto 1.5rem;
  color: var(--gris-plateado);
  text-align: justify;
}

.lista-detalle {
  list-style: none;
  max-width: 900px;
  margin: 0 auto 2rem;
  padding: 0;
}

.lista-detalle li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--gris-plateado);
}

.lista-detalle li::before {
  content: "⚖";
  color: var(--dorado);
  position: absolute;
  left: 0;
}

/* Línea divisoria elegante */
.division-dorada {
  border: none;
  border-top: 1px solid rgba(200, 169, 81, 0.4);
  width: 70%;
  margin: 3rem auto;
}

/* ------------------- Celular ------------------- */
@media (max-width: 768px) {
  .servicio-detalle {
    padding: 3.5rem 1rem;
  }

  .servicio-detalle h2 {
    font-size: 1.6rem;
  }

  .servicio-detalle h3 {
    font-size: 1.2rem;
  }

  .lista-detalle li {
    padding-left: 1.2rem;
  }
}


/* ======================================================
   ZONA DE CONTACTO WHATSAPP
====================================================== */
.contacto-directo {
  background: #111;
  text-align: center;
  padding: 5rem 1rem;
  border-top: 1px solid rgba(200,169,81,0.2);
}

.contacto-box h2 {
  color: var(--dorado);
  font-family: var(--fuente-titulo);
  margin-bottom: 0.8rem;
}

.contacto-box p {
  color: var(--gris-plateado);
  margin-bottom: 1.5rem;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  background: #25d366;
  color: var(--blanco);
  font-weight: bold;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-whatsapp img {
  width: 22px;
  margin-right: 10px;
}

.btn-whatsapp:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(37, 211, 102, 0.5);
}

/* ======================================================
   FADE-IN ANIMATION
====================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======================================================
   ICONO DE WHATSAPP
====================================================== */
.icon-whatsapp {
  width: 22px;
  height: 22px;
  margin-right: 10px;
  transition: transform 0.3s ease;
}

.btn-whatsapp:hover .icon-whatsapp {
  transform: rotate(10deg) scale(1.1);
}


/* ------------------- Celular ------------------- */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .descripcion,
  .contenido {
    padding: 3rem 1rem;
  }

  .lista-detalle li {
    padding-left: 1.2rem;
  }
}

/* ======================================================
   FOOTER
====================================================== */
.footer {
  background: #050505;
  color: var(--gris-plateado);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
}

.footer-info a {
  color: var(--dorado);
  text-decoration: none;
}

.footer-social a img {
  width: 28px;
  margin-right: 1rem;
  transition: opacity 0.3s;
}

.footer-social a:hover img {
  opacity: 0.8;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.9rem;
}

/* ------------------- Celular ------------------- */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-social {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .footer-social a img {
    margin: 0 0.7rem;
  }
}

