/* =====================================================
   PÁGINA "SERVICIOS" - PORTAFOLIO DE SITIOS WEB
   Estilo unificado con el diseño principal y efectos interactivos
   ===================================================== */

:root {
  --azul-oscuro: #2b4cb8;
  --azul-claro: #4d94ff;
  --verde-resalte: #00ff99;
  --fondo-principal: #0e1421;
  --texto-claro: #ffffff;
  --gris-suave: #b3b3b3;
  --sombra-suave: 0 4px 20px rgba(0, 0, 0, 0.4);
  --transicion: 0.3s ease;
}

/* ---------- RESET ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---------- BASE ---------- */
body {
  font-family: 'Poppins', sans-serif;
  color: var(--texto-claro);
  background: radial-gradient(circle at top, #1a1a1c, #101016);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ---------- HEADER ---------- */
header {
  background: linear-gradient(90deg, var(--azul-oscuro), var(--azul-claro));
  color: white;
  text-align: center;
  padding: 15px 0;
  position: relative;
  box-shadow: var(--sombra-suave);
  z-index: 10;
}

header h1 {
  font-size: 2rem;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s ease, text-shadow 0.4s ease;
}

header h1:hover {
  transform: scale(1.15) translateY(-5px);
  text-shadow: 0 0 20px var(--verde-resalte);
}

/* ---------- NAVEGACIÓN ---------- */
nav {
  margin-top: 15px;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

nav ul li a {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 500;
  backdrop-filter: blur(4px);
  transition: all var(--transicion);
}

nav ul li a:hover,
nav ul li a.active {
  background: var(--verde-resalte);
  color: var(--azul-oscuro);
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(0, 255, 160, 0.5);
}

/* ---------- SECCIONES DE SERVICIOS ---------- */
.servicios-intro,
.servicios-detalle,
.servicios-beneficios,
.call-to-action {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  background: radial-gradient(circle at 20% 20%, #11131a, #0c0e13);
  animation: fadeIn 1.2s ease forwards;
  transition: all 0.4s ease;
}

.servicios-intro h2,
.servicios-detalle h3,
.servicios-beneficios h3,
.call-to-action h3 {
  color: var(--verde-resalte);
  font-size: 2rem;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(0, 255, 200, 0.3);
  transition: transform 0.4s ease, text-shadow 0.4s ease;
}

.servicios-intro h2:hover,
.servicios-intro h2:active,
.servicios-detalle h3:hover,
.servicios-detalle h3:active,
.servicios-beneficios h3:hover,
.servicios-beneficios h3:active,
.call-to-action h3:hover,
.call-to-action h3:active {
  transform: translateY(-8px) scale(1.08);
  text-shadow: 0 0 20px var(--verde-resalte);
}

.servicios-intro p,
.servicios-detalle p,
.servicios-beneficios p,
.call-to-action p {
  color: var(--gris-suave);
  font-size: 1rem;
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 30px;
  text-align: center;
  transition: color 0.3s ease, transform 0.4s ease, text-shadow 0.4s ease;
}

.servicios-intro p:hover,
.servicios-intro p:active,
.servicios-detalle p:hover,
.servicios-detalle p:active,
.servicios-beneficios p:hover,
.servicios-beneficios p:active,
.call-to-action p:hover,
.call-to-action p:active {
  color: var(--verde-resalte);
  transform: translateY(-5px);
  text-shadow: 0 0 12px var(--verde-resalte);
}

/* Listas de servicios y beneficios */
.service-list,
.benefit-list {
  max-width: 800px;
  width: 100%;
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.service-list li,
.benefit-list li {
  background: rgba(255, 255, 255, 0.07);
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 255, 180, 0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease, color 0.3s ease;
}

.service-list li:hover,
.benefit-list li:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 0 20px rgba(0, 255, 180, 0.2);
  color: var(--verde-resalte);
}

/* ---------- BOTÓN CONTACTO ---------- */
.btn-contact {
  display: inline-block;
  background: var(--verde-resalte);
  color: var(--azul-oscuro);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 25px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 255, 160, 0.3);
  transition: all 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-contact:hover,
.btn-contact:active {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 0 25px rgba(0, 255, 180, 0.5);
  color: #fff;
}

/* ---------- CONTACTO CON EFECTO UNDERLINE ---------- */
.contacto {
  margin-top: 40px;
  text-align: center;
}

.contacto a {
  position: relative;
  color: var(--gris-suave);
  text-decoration: none;
  font-size: 1rem;
  margin: 5px 0;
  display: inline-block;
  transition: color 0.3s ease;
}

.contacto a:hover,
.contacto a:active {
  color: var(--verde-resalte);
}

.contacto a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -2px;
  background-color: var(--verde-resalte);
  transition: width 0.3s ease;
}

.contacto a:hover::after,
.contacto a:active::after {
  width: 100%;
}

/* ---------- FOOTER ---------- */
footer {
  background: linear-gradient(90deg, var(--azul-oscuro), var(--azul-claro));
  color: #fff;
  text-align: center;
  padding: 20px 10px;
  box-shadow: var(--sombra-suave);
}

footer p {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

footer ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

footer ul li a {
  color: white;
  text-decoration: none;
  transition: color var(--transicion);
  font-size: 0.95rem;
}

footer ul li a:hover {
  color: var(--verde-resalte);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- HAMBURGUESA ---------- */
.hamburger {
  display: none;
  position: absolute;
  top: 18px;
  right: 20px;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
  z-index: 20;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

#menu-toggle {
  display: none;
}

#menu-toggle:checked + .hamburger span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
#menu-toggle:checked + .hamburger span:nth-child(2) {
  opacity: 0;
}
#menu-toggle:checked + .hamburger span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

#menu-toggle:checked ~ nav ul {
  display: flex;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  nav ul {
    display: none;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.95);
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  nav ul li {
    margin: 10px 0;
  }

  nav ul li a {
    width: 80%;
    margin: auto;
    text-align: center;
    font-size: 1rem;
  }

  .service-list,
  .benefit-list {
    flex-direction: column;
    align-items: center;
  }
}

/* ---------- ANIMACIONES ---------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
