/*
 * undressaipornMX.pw - Hoja de estilos
 * Tema: Inspirado en México
 * Fecha: Agosto 2025
 */

:root {
  /* Colores de México */
  --verde: #006341;
  --blanco: #FFFFFF;
  --rojo: #CE1126;
  
  /* Colores complementarios */
  --verde-oscuro: #004B31;
  --verde-claro: #009E67;
  --rojo-oscuro: #A50D1F;
  --rojo-claro: #E54653;
  --gris-oscuro: #333333;
  --gris-claro: #F0F0F0;
  --gris-medio: #CCCCCC;
  --negro: #1A1A1A;
  
  /* Efectos */
  --sombra-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --sombra-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --sombra-lg: 0 8px 28px rgba(0, 0, 0, 0.15);
  --transicion: all 0.3s ease;
  --radio: 8px;
  --radio-lg: 16px;
  --degradado-verde: linear-gradient(135deg, var(--verde) 0%, var(--verde-oscuro) 100%);
  --degradado-rojo: linear-gradient(135deg, var(--rojo) 0%, var(--rojo-oscuro) 100%);
}

/* Estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Raleway', sans-serif;
  color: var(--gris-oscuro);
  line-height: 1.6;
  background-color: var(--blanco);
  overflow-x: hidden;
}

.contenedor {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--negro);
}

h1 {
  font-size: 2.7rem;
}

h2 {
  font-size: 2.2rem;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  width: 70px;
  height: 3px;
  background: var(--verde);
  bottom: -12px;
  left: 0;
}

.encabezado-seccion h2::after {
  left: 50%;
  transform: translateX(-50%);
}

h3 {
  font-size: 1.6rem;
}

p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

a {
  text-decoration: none;
  color: var(--verde);
  transition: var(--transicion);
}

a:hover {
  color: var(--verde-oscuro);
}

section {
  padding: 80px 0;
}

.encabezado-seccion {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.encabezado-seccion p {
  margin-top: 20px;
  color: var(--gris-oscuro);
}

/* Botones */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transicion);
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.btn-primario {
  background: var(--degradado-verde);
  color: var(--blanco);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 99, 65, 0.3);
}

.btn-primario:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 99, 65, 0.4);
  color: var(--blanco);
}

.btn-secundario {
  background: var(--degradado-rojo);
  color: var(--blanco);
  border: none;
  box-shadow: 0 4px 15px rgba(206, 17, 38, 0.3);
}

.btn-secundario:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(206, 17, 38, 0.4);
  color: var(--blanco);
}

.btn-contorno {
  background: transparent;
  color: var(--verde);
  border: 2px solid var(--verde);
}

.btn-contorno:hover {
  background-color: rgba(0, 99, 65, 0.08);
  transform: translateY(-3px);
}

.btn-grande {
  padding: 16px 36px;
  font-size: 1.1rem;
}

/* Cabecera */
.cabecera {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--blanco);
  box-shadow: var(--sombra-sm);
  z-index: 1000;
  padding: 12px 0;
  transition: var(--transicion);
}

.cabecera.desplazada {
  padding: 8px 0;
  box-shadow: var(--sombra-md);
}

.cabecera-interior {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gris-oscuro);
}

.logo span {
  font-weight: 700;
  font-size: 1.3rem;
  font-family: 'Playfair Display', serif;
}

.navegacion {
  display: flex;
  align-items: center;
}

.menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.menu li a {
  color: var(--gris-oscuro);
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.menu li a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--verde);
  transition: width 0.3s ease;
}

.menu li a:hover {
  color: var(--verde);
}

.menu li a:hover::before {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--gris-oscuro);
  border-radius: 3px;
  transition: var(--transicion);
}

/* Sección Hero */
.hero {
  padding: 180px 0 100px;
  background-color: var(--gris-claro);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23006341' fill-opacity='0.05'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40zm0-40h2l-2 2V0zm0 4l4-4h2l-6 6V4zm0 4l8-8h2L40 10V8zm0 4L52 0h2L40 14v-2zm0 4L56 0h2L40 18v-2zm0 4L60 0h2L40 22v-2zm0 4L64 0h2L40 26v-2zm0 4L68 0h2L40 30v-2zm0 4L72 0h2L40 34v-2zm0 4L76 0h2L40 38v-2zm0 4L80 0v2L42 40h-2zm4 0L80 4v2L46 40h-2zm4 0L80 8v2L50 40h-2zm4 0l28-28v2L54 40h-2zm4 0l24-24v2L58 40h-2zm4 0l20-20v2L62 40h-2zm4 0l16-16v2L66 40h-2zm4 0l12-12v2L70 40h-2zm4 0l8-8v2l-6 6h-2zm4 0l4-4v2l-2 2h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  opacity: 0.6;
}

.hero-contenedor {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 50px;
}

.hero-contenido {
  flex: 1;
}

.etiqueta {
  display: inline-block;
  background-color: var(--rojo);
  color: var(--blanco);
  padding: 6px 16px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-botones {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.aviso {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  background-color: rgba(206, 17, 38, 0.1);
  border-radius: var(--radio);
  border-left: 3px solid var(--rojo);
}

.aviso svg {
  color: var(--rojo);
  flex-shrink: 0;
}

.aviso p {
  margin: 0;
  font-size: 0.9rem;
}

.hero-imagen {
  flex: 1;
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Sección Características */
.caracteristicas {
  background-color: var(--blanco);
}

.caracteristicas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.tarjeta-caracteristica {
  background-color: var(--gris-claro);
  border-radius: var(--radio);
  padding: 30px;
  transition: var(--transicion);
  height: 100%;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid transparent;
}

.tarjeta-caracteristica:hover {
  transform: translateY(-8px);
  box-shadow: var(--sombra-md);
  border-color: var(--verde);
}

.icono-caracteristica {
  margin-bottom: 20px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 99, 65, 0.1);
  border-radius: 12px;
  color: var(--verde);
}

/* Sección Proceso */
.proceso {
  background-color: var(--gris-claro);
  position: relative;
}

.proceso::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(to top, rgba(0,99,65,0.03) 0%, rgba(255,255,255,0) 100%);
}

.pasos-contenedor {
  position: relative;
  z-index: 1;
}

.paso {
  display: flex;
  gap: 25px;
  margin-bottom: 60px;
  align-items: flex-start;
}

.paso:last-child {
  margin-bottom: 0;
}

.paso-numero {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--verde);
  color: var(--blanco);
  font-weight: 700;
  font-size: 1.3rem;
  flex-shrink: 0;
  position: relative;
  box-shadow: var(--sombra-sm);
}

.paso-numero::before {
  content: '';
  position: absolute;
  width: 3px;
  height: calc(100% + 40px);
  background-color: rgba(0, 99, 65, 0.2);
  top: 45px;
  left: 50%;
  transform: translateX(-50%);
}

.paso:last-child .paso-numero::before {
  display: none;
}

.paso-contenido {
  flex: 1;
}

.paso-contenido h3 {
  margin-bottom: 10px;
  color: var(--verde-oscuro);
}

.centro-accion {
  text-align: center;
  margin-top: 50px;
}

/* Sección Testimonios */
.testimonios {
  background-color: var(--blanco);
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.tarjeta-testimonio {
  background-color: var(--gris-claro);
  border-radius: var(--radio);
  padding: 25px;
  position: relative;
  box-shadow: var(--sombra-sm);
  transition: var(--transicion);
}

.tarjeta-testimonio::before {
  content: '"';
  position: absolute;
  top: 15px;
  left: 20px;
  font-size: 4rem;
  font-family: 'Georgia', serif;
  color: rgba(0, 99, 65, 0.1);
  line-height: 0.8;
}

.tarjeta-testimonio:hover {
  transform: translateY(-5px);
  box-shadow: var(--sombra-md);
}

.cita-testimonio {
  padding-top: 15px;
  position: relative;
  z-index: 1;
  font-style: italic;
}

.autor-testimonio {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.autor-info h4 {
  margin: 0;
  font-size: 1.1rem;
}

.autor-info p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--gris-oscuro);
  opacity: 0.8;
}

/* Sección FAQ */
.faq {
  background-color: var(--gris-claro);
}

.faq-contenedor {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--blanco);
  margin-bottom: 15px;
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra-sm);
  transition: var(--transicion);
}

.faq-item:hover {
  box-shadow: var(--sombra-md);
}

.faq-pregunta {
  padding: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-pregunta h3 {
  margin: 0;
  font-size: 1.1rem;
  transition: var(--transicion);
}

.faq-icono {
  color: var(--verde);
  font-weight: bold;
  font-size: 1.5rem;
  transition: var(--transicion);
}

.faq-respuesta {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-respuesta-contenido {
  padding: 0 20px 20px;
}

.faq-item.activo .faq-icono {
  transform: rotate(45deg);
}

.faq-item.activo .faq-pregunta h3 {
  color: var(--verde);
}

.faq-item.activo .faq-respuesta {
  max-height: 300px;
}

/* Sección CTA */
.cta {
  background: var(--degradado-verde);
  color: var(--blanco);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' 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='M0 0h40v40H0V0zm40 40h40v40H40V40zM0 40h2l-2 2V40zm0 4l4-4h2L0 46v-2zm0 4l8-8h2L0 50v-2zm0 4L12 40h2L0 54v-2zm0 4L16 40h2L0 58v-2zm0 4L20 40h2L0 62v-2zm0 4L24 40h2L0 66v-2zm0 4L28 40h2L0 70v-2zm0 4L32 40h2L0 74v-2zm0 4L36 40h2L0 78v-2zm2 2l38-38h2L2 80H0v-2zm4 0l38-38h2L6 80H4v-2zm4 0l38-38h2L10 80H8v-2zm4 0l38-38h2L14 80h-2v-2zm4 0l38-38h2L18 80h-2v-2zm4 0l38-38h2L22 80h-2v-2zm4 0l38-38h2L26 80h-2v-2zm4 0l38-38h2L30 80h-2v-2zm4 0l38-38h2L34 80h-2v-2zm4 0l38-38h2L38 80h-2v-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  z-index: 0;
}

.cta-contenido {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta h2 {
  color: var(--blanco);
  margin-bottom: 20px;
}

.cta h2::after {
  background: var(--blanco);
  left: 50%;
  transform: translateX(-50%);
}

.cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
}

.cta-nota {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 20px;
}

/* Footer */
.footer {
  background-color: var(--gris-oscuro);
  color: var(--blanco);
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-logo span {
  color: var(--blanco);
  font-weight: 700;
  font-size: 1.2rem;
  font-family: 'Playfair Display', serif;
}

.footer-links h4 {
  color: var(--blanco);
  margin-bottom: 20px;
  font-size: 1.15rem;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--verde);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  transition: var(--transicion);
}

.footer-links a:hover {
  color: var(--blanco);
  padding-left: 5px;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.copyright {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 15px;
}

.keywords {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  max-width: 800px;
  margin: 0 auto;
}

/* Diseño Responsivo */
@media screen and (max-width: 1024px) {
  h1 {
    font-size: 2.3rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  section {
    padding: 70px 0;
  }
  
  .hero {
    padding: 130px 0 70px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-brand {
    grid-column: span 2;
  }
}

@media screen and (max-width: 768px) {
  .hero-contenedor {
    flex-direction: column;
    text-align: center;
  }
  
  h2::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .hero-botones {
    justify-content: center;
  }
  
  .aviso {
    justify-content: center;
    text-align: left;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--blanco);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transicion);
    box-shadow: var(--sombra-lg);
    z-index: 999;
  }
  
  .menu.activo {
    right: 0;
  }
  
  .menu li {
    margin: 15px 0;
  }
  
  .menu-toggle.activo span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .menu-toggle.activo span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.activo span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media screen and (max-width: 576px) {
  .hero-botones {
    flex-direction: column;
    gap: 15px;
  }
  
  .btn {
    width: 100%;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-brand {
    grid-column: span 1;
  }
  
  .footer-links h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-links {
    text-align: center;
  }
  
  .paso {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .paso-numero::before {
    display: none;
  }
}
