/*
  juvianorent - Servicios de Contabilidad
  styles.css - Hoja de estilos principal
  
  PALETA DE COLORES:
  - Electric Coral: #FF5959 (Botones, CTA hover)
  - Midnight Teal:  #004E5A (Fondo de cabecera y pie)
  - Canary Yellow:  #FFE869 (Íconos, detalles animados)
  - Deep Plum:      #6D1D6E (Títulos y líneas diagonales)
  - Ice Mint:       #C7FFE8 (Fondos de bloques alternos)
*/

/* === RESET Y BASE === */
:root {
  /* Paleta de colores principal */
  --electric-coral: #ff5959; /* Botones, CTA hover */
  --midnight-teal: #004e5a; /* Fondo de cabecera y pie */
  --canary-yellow: #ffe869; /* Íconos, detalles animados */
  --deep-plum: #6d1d6e; /* Títulos y líneas diagonales */
  --ice-mint: #c7ffe8; /* Fondos de bloques alternos */

  /* Alias para mantener compatibilidad con código existente */
  --coral: var(--electric-coral);
  --teal: var(--midnight-teal);
  --yellow: var(--canary-yellow);
  --plum: var(--deep-plum);
  --mint: var(--ice-mint);

  --texto: #333333;
  --texto-claro: #ffffff;
  --texto-oscuro: #222222;

  --transicion: all 0.3s ease;
  --sombra: 0 5px 15px rgba(0, 0, 0, 0.1);
  --radius: 5px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--texto);
  background-color: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--plum);
  text-decoration: none;
  transition: var(--transicion);
}

a:hover {
  color: var(--coral);
}

/* === UTILIDADES === */
.contenedor {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.icono {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.seccion__titulo {
  font-size: 2.5rem;
  color: var(--plum);
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.seccion__titulo--blanco {
  color: white;
}

.seccion__titulo::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--coral);
}

.diagonal-separador {
  height: 100px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  margin-top: -20px;
}

.diagonal-separador::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background-color: inherit;
  clip-path: polygon(0 0, 100% 0, 100% 20%, 0% 100%);
  box-shadow: 0 -3px 0 var(--deep-plum);
}

.diagonal-separador--inverso::before {
  clip-path: polygon(0 0, 100% 80%, 100% 100%, 0 100%);
  box-shadow: 0 3px 0 var(--deep-plum);
}

/* Clases adicionales para los bloques alternos */
.seccion--teal {
  background-color: var(--midnight-teal);
  color: var(--texto-claro);
  position: relative;
}

.seccion--mint {
  background-color: var(--ice-mint);
  color: var(--texto);
  position: relative;
}

.seccion--overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(109, 29, 110, 0.15),
    rgba(255, 89, 89, 0.15)
  );
  z-index: 1;
  pointer-events: none;
}

/* === BOTONES === */
.boton {
  display: inline-block;
  padding: 12px 25px;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transicion);
  border: none;
}

.boton--primario {
  background-color: var(--electric-coral);
  color: white;
  border: 2px solid var(--electric-coral);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero .boton--primario {
  padding: 14px 30px;
  font-size: 1.1rem;
  margin: 0 auto;
}

.boton--primario:hover {
  background-color: var(--deep-plum);
  border-color: var(--deep-plum);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(109, 29, 110, 0.25);
}

.boton--primario::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: all 0.6s ease;
  z-index: -1;
}

.boton--primario:hover::after {
  left: 100%;
}

.boton--secundario {
  background-color: var(--midnight-teal);
  color: var(--canary-yellow);
  border: 2px solid var(--midnight-teal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.boton--secundario:hover {
  background-color: var(--deep-plum);
  border-color: var(--deep-plum);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(109, 29, 110, 0.25);
}

.boton--menu {
  padding: 8px 15px;
  font-size: 0.85rem;
}

.boton--block {
  display: block;
  width: 100%;
}

/* === CABECERA Y NAVEGACIÓN === */
.cabecera {
  background-color: var(--midnight-teal);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid var(--deep-plum);
}

.cabecera::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0) 80%,
    rgba(255, 255, 255, 0.05) 100%
  );
  pointer-events: none;
}

.cabecera__contenedor {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.cabecera__logo {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  letter-spacing: 1px;
  position: relative;
  z-index: 2;
  transition: var(--transicion);
}

.cabecera__logo:hover {
  text-shadow: 0 0 10px rgba(255, 232, 105, 0.5);
  transform: scale(1.05);
}

.cabecera__logo span {
  color: var(--canary-yellow);
  position: relative;
}

.menu__lista {
  display: flex;
  list-style: none;
  align-items: center;
  height: 100%;
}

.menu__item {
  margin: 0 12px;
  position: relative;
}

.menu__enlace {
  color: white;
  font-weight: 500;
  padding: 8px 12px;
  position: relative;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.menu__enlace:hover {
  color: var(--canary-yellow);
  background-color: rgba(255, 255, 255, 0.05);
}

.menu__enlace::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 0;
  height: 3px;
  background-color: var(--electric-coral);
  transition: width 0.3s ease, left 0.3s ease;
  border-radius: 2px;
}

.menu__enlace:hover::after,
.menu__item--activo .menu__enlace::after {
  width: 80%;
  left: 10%;
}

.menu__item--activo .menu__enlace {
  color: var(--canary-yellow);
  font-weight: 600;
}

.cabecera__menu-movil {
  display: none;
  color: white;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transicion);
}

.cabecera__menu-movil:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.menu__cerrar {
  display: none;
  color: var(--canary-yellow);
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transicion);
  z-index: 2;
}

.menu__cerrar:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

@media (max-width: 991px) {
  .cabecera__menu-movil {
    display: flex;
  }

  .menu {
    display: none;
  }

  .menu--abierto {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--midnight-teal), var(--deep-plum));
    z-index: 1000;
    padding: 80px 20px;
    animation: fadeIn 0.3s ease-out;
  }

  .menu--abierto::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.8;
    z-index: -1;
  }

  .menu--abierto .menu__lista {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .menu--abierto .menu__item {
    margin: 8px 0;
    font-size: 1.3rem;
    opacity: 0;
    animation: slideInUp 0.4s ease-out forwards;
    animation-delay: calc(0.1s * var(--i, 0));
  }

  .menu--abierto .menu__enlace {
    padding: 12px 20px;
  }

  .menu__cerrar {
    display: flex;
  }
}

/* === HERO === */
.hero {
  min-height: 90vh;
  background-color: var(--midnight-teal);
  background-image: linear-gradient(
    135deg,
    var(--midnight-teal) 70%,
    var(--deep-plum)
  );
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
}

.hero__contenido {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeIn 1s ease-out, slideInUp 0.8s ease-out;
}

.hero__titulo {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--canary-yellow);
  font-weight: 800;
  text-shadow: 3px 3px 0px var(--deep-plum);
  position: relative;
  display: inline-block;
  white-space: nowrap;
  width: 100%;
  letter-spacing: 1px;
}

.hero__titulo::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 4px;
  background-color: var(--electric-coral);
  border-radius: 2px;
}

.hero__eslogan {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  color: white;
  font-weight: 300;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  max-width: 80%;
  letter-spacing: 0.5px;
}

.hero__diagonal {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--canary-yellow);
  opacity: 0.15;
  clip-path: polygon(0 75%, 100% 45%, 100% 100%, 0% 100%);
}

/* === SOBRE NOSOTROS === */
.sobre-nosotros {
  padding: 80px 0;
  background-color: white;
  position: relative;
}

.sobre-nosotros__contenido {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}

.sobre-nosotros__texto {
  flex: 1 1 400px;
}

.sobre-nosotros__imagen {
  flex: 1 1 400px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--sombra);
  transform: rotate(1deg);
}

.sobre-nosotros__imagen img {
  transition: var(--transicion);
}

.sobre-nosotros__imagen:hover img {
  transform: scale(1.05);
}

/* === BENEFICIOS === */
.beneficios {
  padding: 80px 0;
  background-color: var(--mint);
  position: relative;
}

.beneficios__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.beneficio {
  background-color: white;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--sombra);
  text-align: center;
  transition: var(--transicion);
}

.beneficio:hover {
  transform: translateY(-10px);
}

.beneficio__icono {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--yellow);
  border-radius: 50%;
  color: var(--teal);
}

.beneficio__icono .icono {
  width: 40px;
  height: 40px;
}

.beneficio__titulo {
  color: var(--plum);
  margin-bottom: 15px;
}

/* === SERVICIOS === */
.servicios {
  padding: 80px 0;
  background-color: white;
  position: relative;
}

.servicios__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.servicio {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--sombra);
  background-color: white;
  transition: var(--transicion);
}

.servicio:hover {
  transform: translateY(-10px);
}

.servicio__imagen {
  overflow: hidden;
  height: 200px;
}

.servicio__imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transicion);
}

.servicio:hover .servicio__imagen img {
  transform: scale(1.1);
}

.servicio__titulo {
  padding: 20px 20px 10px;
  color: var(--plum);
}

.servicio__descripcion {
  padding: 0 20px 20px;
}

.servicio .boton {
  margin: 0 20px 20px;
}

/* === PROCESO === */
.proceso {
  padding: 80px 0;
  background-color: var(--mint);
  position: relative;
}

.proceso__timeline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  position: relative;
}

.proceso__timeline::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--plum);
  z-index: 1;
}

.proceso__paso {
  flex: 1 1 200px;
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 15px;
  margin-bottom: 30px;
}

.proceso__numero {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background-color: var(--coral);
  color: white;
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: relative;
  border: 4px solid white;
  box-shadow: var(--sombra);
}

.proceso__titulo {
  color: var(--plum);
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .proceso__timeline::before {
    display: none;
  }

  .proceso__paso {
    flex-basis: 100%;
    margin-bottom: 40px;
  }
}

/* === TESTIMONIOS === */
.testimonios {
  padding: 80px 0;
  background-color: white;
  position: relative;
}

.testimonios__carrusel {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.testimonio {
  background-color: var(--mint);
  border-radius: var(--radius);
  padding: 30px;
  flex: 1 1 300px;
  position: relative;
  box-shadow: var(--sombra);
}

.testimonio::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 5rem;
  color: var(--coral);
  opacity: 0.3;
  font-family: serif;
  line-height: 1;
}

.testimonio__texto {
  margin-bottom: 20px;
  font-style: italic;
}

.testimonio__autor {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 15px;
}

.testimonio__nombre {
  font-weight: 700;
  color: var(--plum);
}

.testimonio__empresa {
  font-size: 0.9rem;
  color: var(--teal);
}

/* === FAQ === */
.faq {
  padding: 80px 0;
  background-color: var(--mint);
  position: relative;
}

.faq__acordeon {
  max-width: 800px;
  margin: 0 auto;
}

.faq__item {
  margin-bottom: 15px;
  background-color: white;
  border-radius: var(--radius);
  overflow: hidden;
}

.faq__input {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

.faq__pregunta {
  display: block;
  position: relative;
  font-weight: 600;
  padding: 15px 50px 15px 20px;
  cursor: pointer;
  color: var(--plum);
}

.faq__pregunta::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: var(--transicion);
}

.faq__input:checked ~ .faq__pregunta::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}

.faq__respuesta {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s;
}

.faq__input:checked ~ .faq__respuesta {
  max-height: 500px;
}

.faq__respuesta p {
  padding: 0 20px 20px;
}

/* === FORMULARIO === */
.formulario {
  padding: 100px 0 80px;
  background-color: var(--midnight-teal);
  position: relative;
  overflow: hidden;
}

.formulario::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
    135deg,
    rgba(109, 29, 110, 0.1) 0%,
    rgba(255, 89, 89, 0.1) 100%
  );
  z-index: 1;
}

.formulario__contenedor {
  max-width: 700px;
  margin: 0 auto;
  background-color: white;
  border-radius: var(--radius);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  padding: 40px;
  position: relative;
  overflow: hidden;
  z-index: 2;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 30px),
    calc(100% - 30px) 100%,
    0 100%
  );
}

.formulario__contenedor::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--deep-plum) 0%,
    var(--electric-coral) 100%
  );
}

.formulario__contenedor::after {
  content: "";
  position: absolute;
  top: 15px;
  right: 15px;
  width: 70px;
  height: 70px;
  background-color: var(--canary-yellow);
  opacity: 0.2;
  border-radius: 50%;
  z-index: -1;
  animation: pulse 4s infinite ease-in-out;
}

.formulario__grupo {
  margin-bottom: 20px;
}

.formulario__label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--deep-plum);
  font-size: 0.95rem;
  position: relative;
  padding-left: 18px;
}

.formulario__label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background-color: var(--electric-coral);
  border-radius: 2px;
}

.formulario__input,
.formulario__select,
.formulario__textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid transparent;
  background-color: #f9f9f9;
  border-radius: var(--radius);
  transition: var(--transicion);
  font-size: 1rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.formulario__input:focus,
.formulario__select:focus,
.formulario__textarea:focus {
  border-color: var(--deep-plum);
  box-shadow: 0 0 0 3px rgba(109, 29, 110, 0.1);
  outline: none;
  background-color: white;
}

.formulario__textarea {
  min-height: 150px;
  resize: vertical;
}

.formulario__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236D1D6E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

.formulario__grupo--checkbox {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  position: relative;
}

.formulario__grupo--checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.formulario__label--checkbox {
  font-size: 0.9rem;
  padding-left: 30px;
  position: relative;
  cursor: pointer;
  user-select: none;
  display: inline-block;
}

.formulario__label--checkbox::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--midnight-teal);
  border-radius: 3px;
  background-color: white;
  transition: all 0.2s ease;
}

.formulario__grupo--checkbox
  input[type="checkbox"]:checked
  + .formulario__label--checkbox::before {
  background-color: var(--deep-plum);
  border-color: var(--deep-plum);
}

.formulario__grupo--checkbox
  input[type="checkbox"]:checked
  + .formulario__label--checkbox::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.formulario__grupo--checkbox
  input[type="checkbox"]:focus
  + .formulario__label--checkbox::before {
  box-shadow: 0 0 0 3px rgba(109, 29, 110, 0.2);
}

.formulario__label--checkbox a {
  color: var(--deep-plum);
  text-decoration: none;
  border-bottom: 1px solid var(--electric-coral);
  transition: var(--transicion);
}

.formulario__label--checkbox a:hover {
  color: var(--electric-coral);
}

/* === CONTACTO === */
.contacto {
  padding: 80px 0;
  background-color: var(--ice-mint);
  position: relative;
  overflow: hidden;
}

.contacto::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236D1D6E' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.contacto__contenido {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  position: relative;
  z-index: 2;
}

.contacto__info {
  flex: 1 1 400px;
  background: linear-gradient(135deg, var(--midnight-teal), var(--deep-plum));
  padding: 40px;
  border-radius: var(--radius);
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
}

.contacto__info::after {
  content: "";
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background-color: var(--electric-coral);
  border-radius: 50%;
  opacity: 0.2;
}

.contacto__titulo {
  color: var(--canary-yellow);
  margin-bottom: 25px;
  font-size: 2.2rem;
  position: relative;
  padding-bottom: 15px;
}

.contacto__titulo::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--electric-coral);
  border-radius: 2px;
}

.contacto__texto {
  margin-bottom: 30px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.contacto__datos {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contacto__dato {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  background-color: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transicion);
  position: relative;
  overflow: hidden;
}

.contacto__dato:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.contacto__dato::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background-color: var(--electric-coral);
}

.contacto__icono {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--deep-plum), var(--midnight-teal));
  color: var(--canary-yellow);
  border-radius: 10px;
  padding: 10px;
  margin-right: 15px;
  flex-shrink: 0;
  box-shadow: 0 5px 10px rgba(109, 29, 110, 0.2);
}

.contacto__dato h3 {
  color: var(--deep-plum);
  margin-bottom: 8px;
  font-weight: 600;
}

.contacto__dato p,
.contacto__dato a {
  color: var(--texto);
  font-size: 1rem;
  transition: var(--transicion);
}

.contacto__dato a:hover {
  color: var(--electric-coral);
}

/* === PIE === */
.pie {
  background-color: var(--midnight-teal);
  color: white;
  padding: 80px 0 30px;
  position: relative;
  overflow: hidden;
}

.pie::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.pie__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
  position: relative;
  z-index: 2;
}

.pie__columna--logo {
  grid-column: 1 / -1;
}

@media (min-width: 992px) {
  .pie__columna--logo {
    grid-column: auto;
  }
}

.pie__logo {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--canary-yellow);
  display: inline-block;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.pie__descripcion {
  margin-bottom: 25px;
  opacity: 0.9;
  line-height: 1.6;
  font-size: 0.95rem;
}

.pie__titulo {
  margin-bottom: 25px;
  color: var(--canary-yellow);
  font-size: 1.3rem;
  position: relative;
  padding-bottom: 12px;
}

.pie__titulo::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--electric-coral);
  border-radius: 2px;
}

.pie__enlaces {
  list-style: none;
}

.pie__enlaces li {
  margin-bottom: 10px;
}

.pie__enlaces a {
  color: white;
  opacity: 0.8;
  transition: var(--transicion);
}

.pie__enlaces a:hover {
  opacity: 1;
  color: var(--yellow);
}

.pie__contacto p {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.pie__icono {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  color: var(--yellow);
  flex-shrink: 0;
}

.pie__contacto a {
  color: white;
  opacity: 0.8;
}

.pie__contacto a:hover {
  opacity: 1;
  color: var(--yellow);
}

.pie__social {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

.pie__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transicion);
}

.pie__social-link:hover {
  background-color: var(--coral);
  transform: translateY(-3px);
}

.pie__social-icono {
  width: 20px;
  height: 20px;
  fill: white;
}

.pie__copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* === LEGAL === */
.legal {
  padding: 80px 0;
  background-color: var(--ice-mint);
  position: relative;
  overflow: hidden;
}

.legal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236D1D6E' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.legal__contenido {
  background-color: white;
  padding: 50px;
  border-radius: var(--radius);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 2;
  border-left: 4px solid var(--deep-plum);
  max-width: 900px;
  margin: 0 auto;
}

.legal h1 {
  color: var(--deep-plum);
  margin-bottom: 25px;
  font-size: 2.5rem;
  position: relative;
  padding-bottom: 15px;
}

.legal h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--deep-plum) 0%,
    var(--electric-coral) 100%
  );
  border-radius: 2px;
}

.legal__fecha {
  color: var(--midnight-teal);
  font-style: italic;
  margin-bottom: 35px;
  display: inline-block;
  padding: 8px 15px;
  background-color: var(--ice-mint);
  border-radius: 4px;
  font-size: 0.95rem;
}

.legal__texto h2 {
  color: var(--deep-plum);
  margin: 35px 0 20px;
  font-size: 1.8rem;
  border-bottom: 2px solid var(--ice-mint);
  padding-bottom: 10px;
}

.legal__texto h3 {
  color: var(--midnight-teal);
  margin: 28px 0 15px;
  font-size: 1.4rem;
  position: relative;
  padding-left: 15px;
}

.legal__texto h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 18px;
  background-color: var(--electric-coral);
  border-radius: 3px;
}

.legal__texto p {
  margin-bottom: 18px;
  line-height: 1.6;
}

.legal__texto ul,
.legal__texto ol {
  margin-bottom: 20px;
  padding-left: 25px;
  line-height: 1.5;
}

.legal__texto li {
  margin-bottom: 10px;
  position: relative;
}

.legal__tabla {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-radius: var(--radius);
  overflow: hidden;
}

.legal__tabla th,
.legal__tabla td {
  padding: 12px 15px;
  text-align: left;
  border: 1px solid #eaeaea;
}

.legal__tabla th {
  background: linear-gradient(135deg, var(--midnight-teal), var(--deep-plum));
  color: white;
  font-weight: 600;
}

.legal__tabla tr:nth-child(even) {
  background-color: rgba(199, 255, 232, 0.2);
}

.legal__volver {
  margin-top: 50px;
  text-align: center;
}

.legal__volver a {
  transition: transform 0.3s ease;
  display: inline-block;
}

.legal__volver a:hover {
  transform: translateY(-3px);
}

/* === COOKIES BANNER === */
.cookies-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--midnight-teal);
  color: white;
  padding: 15px 0;
  z-index: 9999;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-top: 2px solid var(--deep-plum);
}

.cookies-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  pointer-events: none;
}

.cookies-banner--oculto {
  transform: translateY(100%);
}

.cookies-banner--animado {
  transform: translateY(0);
}

.cookies-banner__contenido {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.cookies-banner__contenido p {
  flex: 1 1 300px;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.cookies-banner__contenido a {
  color: var(--canary-yellow);
  text-decoration: none;
  border-bottom: 1px dotted var(--canary-yellow);
  transition: all 0.3s ease;
  font-weight: 500;
}

.cookies-banner__contenido a:hover {
  color: white;
  border-bottom-color: white;
}

.cookies-banner__contenido button {
  flex-shrink: 0;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 4px;
  background-color: var(--canary-yellow);
  color: var(--deep-plum);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cookies-banner__contenido button:hover {
  background-color: var(--electric-coral);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Soporte para prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .cookies-banner {
    transition: none;
  }

  .cookies-banner__contenido button:hover {
    transform: none;
  }
}

/* === PÁGINA DE GRACIAS === */
.gracias {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  background-color: var(--mint);
}

.gracias__contenido {
  text-align: center;
  max-width: 600px;
  padding: 40px;
  background-color: white;
  border-radius: var(--radius);
  box-shadow: var(--sombra);
  margin: 0 auto;
}

.gracias__icono {
  font-size: 5rem;
  color: var(--coral);
  margin-bottom: 20px;
}

.gracias__titulo {
  font-size: 2.5rem;
  color: var(--plum);
  margin-bottom: 20px;
}

.gracias__texto {
  margin-bottom: 30px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .seccion__titulo {
    font-size: 2rem;
  }

  .hero__titulo {
    font-size: 2.2rem;
    white-space: normal;
    width: 100%;
  }

  .hero__eslogan {
    max-width: 100%;
  }

  .hero .boton--primario {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .hero__eslogan {
    font-size: 1.2rem;
  }

  .diagonal-separador {
    height: 50px;
  }

  .legal__contenido {
    padding: 20px;
  }

  .legal h1 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .sobre-nosotros__texto,
  .sobre-nosotros__imagen {
    flex: 1 1 100%;
  }

  .beneficios__grid,
  .servicios__grid {
    grid-template-columns: 1fr;
  }

  .cookies-banner__contenido {
    justify-content: center;
    text-align: center;
  }

  .contacto__titulo {
    font-size: 1.5rem;
  }
}

/* === SVG FAVICON === */
/* Se incluirá como archivo separado en ./img/favicon.svg */

/* === ANIMACIONES === */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(109, 29, 110, 0.25);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.servicio,
.beneficio,
.testimonio {
  animation: slideInUp 0.6s ease-out forwards;
}

.boton--primario:hover {
  animation: pulse 2s infinite;
}

.proceso__numero {
  animation: float 3s ease-in-out infinite;
}

.beneficio__icono {
  animation: float 4s ease-in-out infinite;
}
