/*
Theme Name: Reforma y Gana
Theme URI: https://reformaygana.es
Author: Reforma y Gana
Description: Tema personalizado para Reforma y Gana - Conectamos clientes con empresas de reforma de confianza, con pago semanal garantizado por partida de obra terminada.
Version: 1.0.0
License: GNU General Public License v2 or later
Tags: reforma, construccion, empresa, SEO, landing
Text Domain: reformaygana
*/

/* ==========================================
   VARIABLES Y RESET
   ========================================== */
:root {
  --azul:        #0D1B4B;
  --azul-oscuro: #091238;
  --amarillo:    #F5C400;
  --amarillo-hover: #D4A900;
  --blanco:      #FFFFFF;
  --gris-claro:  #F4F6FA;
  --gris-texto:  #4A4A6A;
  --sombra:      0 4px 24px rgba(13,27,75,0.12);
  --radio:       10px;
  --transicion:  0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--gris-texto);
  background: var(--blanco);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--amarillo); text-decoration: none; transition: color var(--transicion); }
a:hover { color: var(--amarillo-hover); }

/* ==========================================
   TIPOGRAFÍA
   ========================================== */
h1, h2, h3, h4, h5 {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--azul);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
p  { margin-bottom: 1rem; }

.texto-amarillo { color: var(--amarillo); }
.texto-azul     { color: var(--azul); }
.texto-blanco   { color: var(--blanco); }

/* ==========================================
   LAYOUT
   ========================================== */
.contenedor {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.seccion { padding: 5rem 0; }
.seccion-compacta { padding: 3rem 0; }

.fila {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.col-6 { flex: 1 1 45%; }
.col-4 { flex: 1 1 28%; }
.col-3 { flex: 1 1 22%; }

/* ==========================================
   BOTONES
   ========================================== */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radio);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transicion);
  border: 2px solid transparent;
  text-align: center;
}

.btn-amarillo {
  background: var(--amarillo);
  color: var(--azul);
  border-color: var(--amarillo);
}
.btn-amarillo:hover {
  background: var(--amarillo-hover);
  color: var(--azul);
  border-color: var(--amarillo-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,196,0,0.35);
}

.btn-borde-blanco {
  background: transparent;
  color: var(--blanco);
  border-color: var(--blanco);
}
.btn-borde-blanco:hover {
  background: var(--blanco);
  color: var(--azul);
}

.btn-azul {
  background: var(--azul);
  color: var(--blanco);
  border-color: var(--azul);
}
.btn-azul:hover {
  background: var(--azul-oscuro);
  border-color: var(--azul-oscuro);
  transform: translateY(-2px);
}

.btn-grande { padding: 1.1rem 2.5rem; font-size: 1.1rem; }

/* ==========================================
   CABECERA / NAVEGACIÓN
   ========================================== */
.site-header {
  background: var(--azul);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1180px;
  margin: 0 auto;
}

.logo-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--blanco);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-header img { width: 48px; height: 48px; border-radius: 8px; }
.logo-header span { color: var(--amarillo); }

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
}

.nav-menu a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  transition: all var(--transicion);
  font-size: 0.95rem;
}
.nav-menu a:hover,
.nav-menu .current-menu-item a {
  color: var(--amarillo);
  background: rgba(245,196,0,0.1);
}

.nav-cta a {
  background: var(--amarillo) !important;
  color: var(--azul) !important;
  font-weight: 700 !important;
  padding: 0.55rem 1.2rem !important;
}
.nav-cta a:hover {
  background: var(--amarillo-hover) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--blanco);
  border-radius: 2px;
  transition: all var(--transicion);
}

/* ==========================================
   HERO PRINCIPAL
   ========================================== */
.hero {
  background: linear-gradient(135deg, var(--azul-oscuro) 0%, var(--azul) 60%, #1a3070 100%);
  color: var(--blanco);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 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");
}

.hero-contenido {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-texto h1 { color: var(--blanco); margin-bottom: 1.25rem; }
.hero-texto h1 em { color: var(--amarillo); font-style: normal; }
.hero-subtitulo {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-botones { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-tarjeta {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(8px);
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.hero-stat:last-child { border-bottom: none; }
.hero-stat-num { font-size: 2rem; font-weight: 800; color: var(--amarillo); }
.hero-stat-txt { font-size: 0.9rem; color: rgba(255,255,255,0.8); }

/* ==========================================
   BARRA DE CONFIANZA
   ========================================== */
.barra-confianza {
  background: var(--amarillo);
  padding: 1rem 0;
}

.barra-confianza-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 2rem;
  justify-content: space-around;
  flex-wrap: wrap;
}

.confianza-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--azul);
  font-weight: 700;
  font-size: 0.95rem;
}

.confianza-item svg { flex-shrink: 0; }

/* ==========================================
   SECCIÓN AUDIENCIAS (TABS)
   ========================================== */
.tabs-audiencia {
  background: var(--gris-claro);
}

.tabs-nav {
  display: flex;
  gap: 0;
  margin-bottom: 3rem;
  border-radius: var(--radio);
  overflow: hidden;
  border: 2px solid var(--azul);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.tab-btn {
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  background: var(--blanco);
  color: var(--azul);
  border: none;
  transition: all var(--transicion);
}

.tab-btn.activo {
  background: var(--azul);
  color: var(--blanco);
}

.tab-contenido { display: none; }
.tab-contenido.activo { display: block; }

/* ==========================================
   TARJETAS DE SERVICIOS
   ========================================== */
.grid-tarjetas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.tarjeta {
  background: var(--blanco);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: var(--sombra);
  transition: transform var(--transicion), box-shadow var(--transicion);
  border-top: 4px solid var(--amarillo);
}

.tarjeta:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 36px rgba(13,27,75,0.18);
}

.tarjeta-icono {
  width: 56px;
  height: 56px;
  background: rgba(245,196,0,0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.75rem;
}

.tarjeta h3 { margin-bottom: 0.75rem; font-size: 1.15rem; }
.tarjeta p  { font-size: 0.95rem; margin-bottom: 0; }

/* ==========================================
   CÓMO FUNCIONA (PASOS)
   ========================================== */
.pasos {
  background: var(--azul);
  color: var(--blanco);
}

.pasos h2 { color: var(--blanco); text-align: center; margin-bottom: 0.75rem; }
.pasos .subtitulo { text-align: center; color: rgba(255,255,255,0.75); margin-bottom: 3.5rem; }

.grid-pasos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  position: relative;
}

.paso {
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255,255,255,0.06);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
}

.paso-num {
  width: 52px;
  height: 52px;
  background: var(--amarillo);
  color: var(--azul);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 auto 1.25rem;
}

.paso h3 { color: var(--blanco); font-size: 1.05rem; margin-bottom: 0.6rem; }
.paso p  { font-size: 0.9rem; color: rgba(255,255,255,0.75); margin-bottom: 0; }

/* ==========================================
   GARANTÍAS / DIFERENCIADORES
   ========================================== */
.garantias { background: var(--gris-claro); }
.garantias h2 { text-align: center; margin-bottom: 0.5rem; }
.garantias .subtitulo { text-align: center; margin-bottom: 3rem; }

.lista-garantias {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.garantia-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--blanco);
  padding: 1.5rem;
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}

.garantia-check {
  width: 36px;
  height: 36px;
  background: var(--amarillo);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.garantia-item h4 { font-size: 1rem; margin-bottom: 0.3rem; }
.garantia-item p  { font-size: 0.9rem; margin-bottom: 0; }

/* ==========================================
   MODELO PARA EMPRESAS
   ========================================== */
.modelo-empresas {
  background: var(--blanco);
}

.modelo-empresas h2 { text-align: center; margin-bottom: 0.5rem; }
.modelo-empresas .subtitulo { text-align: center; margin-bottom: 3rem; color: var(--gris-texto); }

.tabla-modelo {
  background: var(--azul);
  border-radius: 16px;
  overflow: hidden;
  color: var(--blanco);
}

.tabla-modelo-cabecera {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: var(--amarillo);
  color: var(--azul);
  font-weight: 700;
  text-align: center;
  padding: 1rem;
  font-size: 0.95rem;
}

.tabla-modelo-fila {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  text-align: center;
  padding: 1.1rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.95rem;
  transition: background var(--transicion);
}
.tabla-modelo-fila:hover { background: rgba(255,255,255,0.05); }
.tabla-modelo-fila:last-child { border-bottom: none; }
.tabla-modelo-fila .check { color: var(--amarillo); font-weight: 700; }
.tabla-modelo-fila .cruz  { color: rgba(255,255,255,0.4); }

/* ==========================================
   TESTIMONIOS
   ========================================== */
.testimonios { background: var(--gris-claro); }
.testimonios h2 { text-align: center; margin-bottom: 3rem; }

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

.testimonio {
  background: var(--blanco);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: var(--sombra);
  position: relative;
}

.testimonio::before {
  content: '"';
  font-size: 5rem;
  color: var(--amarillo);
  position: absolute;
  top: 0.5rem;
  left: 1.25rem;
  line-height: 1;
  font-family: Georgia, serif;
  opacity: 0.4;
}

.testimonio-texto { font-style: italic; margin-bottom: 1.25rem; padding-top: 1rem; }
.testimonio-autor { font-weight: 700; color: var(--azul); font-size: 0.95rem; }
.testimonio-rol   { font-size: 0.85rem; color: var(--gris-texto); }
.estrellas        { color: var(--amarillo); font-size: 1.1rem; margin-bottom: 0.75rem; }

/* ==========================================
   CTA FINAL
   ========================================== */
.cta-final {
  background: linear-gradient(135deg, var(--azul) 0%, #1a3070 100%);
  color: var(--blanco);
  text-align: center;
  padding: 6rem 1.5rem;
}

.cta-final h2 { color: var(--blanco); margin-bottom: 1rem; }
.cta-final p  { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 2.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-botones  { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ==========================================
   FORMULARIO DE CONTACTO
   ========================================== */
.formulario-contacto {
  background: var(--blanco);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--sombra);
  max-width: 600px;
  margin: 0 auto;
}

.campo-form {
  margin-bottom: 1.25rem;
}

.campo-form label {
  display: block;
  font-weight: 600;
  color: var(--azul);
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.campo-form input,
.campo-form select,
.campo-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e0e4ef;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--gris-texto);
  transition: border-color var(--transicion);
  background: var(--blanco);
}

.campo-form input:focus,
.campo-form select:focus,
.campo-form textarea:focus {
  outline: none;
  border-color: var(--azul);
}

.campo-form textarea { min-height: 120px; resize: vertical; }

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
  background: var(--azul-oscuro);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-marca { }
.footer-logo  { color: var(--blanco); font-weight: 800; font-size: 1.3rem; margin-bottom: 0.75rem; }
.footer-logo span { color: var(--amarillo); }
.footer-desc  { font-size: 0.9rem; line-height: 1.7; }

.footer-col h4 {
  color: var(--blanco);
  font-size: 1rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--amarillo);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul a { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer-col ul a:hover { color: var(--amarillo); }

.footer-bottom {
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 3rem;
  font-size: 0.85rem;
}

/* ==========================================
   SECCIÓN FAQ
   ========================================== */
.faq { background: var(--blanco); }
.faq h2 { text-align: center; margin-bottom: 3rem; }

.faq-item {
  border: 1px solid #e0e4ef;
  border-radius: 10px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-pregunta {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--azul);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transicion);
}

.faq-pregunta:hover { background: var(--gris-claro); }
.faq-pregunta.activo { background: var(--azul); color: var(--blanco); }

.faq-icono { font-size: 1.2rem; transition: transform var(--transicion); }
.faq-pregunta.activo .faq-icono { transform: rotate(45deg); }

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

.faq-respuesta-inner {
  padding: 1rem 1.5rem 1.25rem;
  font-size: 0.95rem;
  color: var(--gris-texto);
  line-height: 1.7;
}

/* ==========================================
   BADGE FLOTANTE
   ========================================== */
.badge-flotante {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--amarillo);
  color: var(--azul);
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform var(--transicion), box-shadow var(--transicion);
  cursor: pointer;
}
.badge-flotante:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
  color: var(--azul);
}

/* ==========================================
   SECCIÓN ZONA COBERTURA
   ========================================== */
.cobertura { background: var(--gris-claro); text-align: center; }
.cobertura h2 { margin-bottom: 0.5rem; }
.cobertura .subtitulo { margin-bottom: 2.5rem; }

.grid-ciudades {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.ciudad-chip {
  background: var(--blanco);
  border: 2px solid var(--azul);
  color: var(--azul);
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transicion);
}
.ciudad-chip:hover {
  background: var(--azul);
  color: var(--blanco);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 900px) {
  .hero-contenido { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-tarjeta   { max-width: 400px; }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .nav-menu  { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--azul-oscuro); padding: 1rem; gap: 0.25rem; }
  .nav-menu.abierto { display: flex; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .tabla-modelo-cabecera, .tabla-modelo-fila { grid-template-columns: 2fr 1fr 1fr; font-size: 0.82rem; }
  .col-6, .col-4, .col-3 { flex: 1 1 100%; }
  .seccion { padding: 3.5rem 0; }
}

@media (max-width: 480px) {
  .hero { padding: 4rem 0 3rem; }
  .hero-botones { flex-direction: column; }
  .cta-botones  { flex-direction: column; align-items: center; }
}
