@charset "UTF-8";

/* ═══════════════════════════════════════
   VARIABLES GLOBALES
   ═══════════════════════════════════════ */
:root {
  /* Paleta corporativa */
  --color-blue:        #000D4A;
  --color-blue-mid:    #001580;
  --color-orange:      #FF9E02;
  --color-orange-dark: #e68a00;
  --color-orange-grad: #B80000;
  --color-white:       #FFFFFF;
  --color-bg-soft:     #FAFAFA;
  --color-bg-warm:     #FDF7F6;
  --color-text:        #000D4A;
  --color-text-mid:    #333333;
  --color-border:      #ECECEC;

  /* Radios */
  --radius-sm: 5px;
  --radius-md: 12px;
  --radius-lg: 15px;
  --radius-pill: 50px;

  /* Sombras */
  --shadow-sm:  0 2px 8px rgba(0,0,0,.06);
  --shadow-md:  0 5px 25px rgba(0,0,0,.18);
  --shadow-lg:  0 20px 40px rgba(0,0,0,.28);

  /* Tipografías */
  --ff-sans:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
              Arial, "Noto Sans", "Liberation Sans", sans-serif,
              "Apple Color Emoji", "Segoe UI Emoji";
  --ff-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --ff-mono:  ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
              "Liberation Mono", "Courier New", monospace;

  /* Transiciones */
  --trans-fast:   all 0.3s ease;
  --trans-normal: all 0.8s ease-in-out;
  --trans-slow:   all 2.5s ease;
}

/* ═══════════════════════════════════════
   RESET / BASE
   ═══════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-sans);
  margin: 0;
  padding: 0;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Accesibilidad: foco visible */
:focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: 2px;
  border-radius: 3px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ═══════════════════════════════════════
   TIPOGRAFÍA BASE
   CORRECCIÓN: font-size: max(Xpx) es inválido sin
   segundo argumento → reemplazado por clamp()
   ═══════════════════════════════════════ */
p {
  font-family: var(--ff-sans);
  font-size: clamp(16px, 1.1vw, 18px);
  margin: 0 !important;
  color: var(--color-text);
  text-align: left;
  line-height: 1.78;
}

p a {
  text-decoration: none;
  color: var(--color-orange);
}
p a:hover { text-decoration: underline; }

p ul li {
  margin-bottom: 20px;
  padding-bottom: 20px;
}

h1 {
  font-size: clamp(32px, 3.5vw, 50px);
  font-weight: 800;
  font-family: var(--ff-sans);
  margin: 0 !important;
  color: var(--color-orange);
  letter-spacing: -2px;
  line-height: 1.05;
}

h2 {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 800;
  font-family: var(--ff-sans);
  margin: 0 !important;
  text-align: center;
  color: var(--color-blue);
  letter-spacing: -2px;
  line-height: 1.1;
}

h3 {
  margin: 0 !important;
  font-family: var(--ff-sans);
  font-weight: 800;
  font-size: clamp(24px, 2vw, 36px);
  text-align: center;
  color: var(--color-orange);
  letter-spacing: -1.5px;
  line-height: 1.15;
}

h3 a {
  text-decoration: none;
  color: var(--color-white);
}

h4 {
  font-size: clamp(20px, 1.5vw, 32px);
  font-weight: 700;
  letter-spacing: -1px;
  margin: 0 !important;
  font-family: var(--ff-sans);
  color: var(--color-white);
  text-align: center;
  line-height: 1.2;
}

h5 {
  font-size: clamp(18px, 1.8vw, 30px);
  font-family: var(--ff-sans);
  margin-right: 0;
  margin-left: 0;
  margin-bottom: -20px;
  margin-top: 0;
  text-align: center;
  padding-top: 5px;
  color: var(--color-blue);
  transition: var(--trans-normal);
}

h5 a {
  color: var(--color-blue);
  text-decoration: none;
}
h5 a:hover { color: var(--color-orange); }

h6 {
  padding-top: 20px;
  font-weight: 600;
  font-size: clamp(14px, 0.95vw, 17px);
  font-family: 'Roboto', var(--ff-sans);
  margin: 0 !important;
  line-height: 1.55;
  color: var(--color-blue);
}

/* h7 no es tag HTML estándar — se estiliza como display:block */
h7 {
  display: block;
  font-size: clamp(22px, 2.5vw, 38px);
  font-weight: 800;
  font-family: var(--ff-sans);
  color: var(--color-white);
  line-height: 1.2;
}

/* ═══════════════════════════════════════
   GRADIENTES DE TEXTO
   ═══════════════════════════════════════ */
@keyframes textclip {
  to { background-position: 200% center; }
}

.texto-degradado2 {
  background: -webkit-linear-gradient(180deg, #787878, #404040);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--ff-sans);
}

.texto-degradado3 {
  background: -webkit-linear-gradient(180deg, #FEA20D, var(--color-orange-grad));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--ff-sans);
  text-align: center;
}

.texto-cabecera {
  font-size: clamp(28px, 2.5vw, 42px);
  color: var(--color-white);
  font-family: "Arial Black", "Helvetica Neue";
  text-align: center;
  font-style: normal;
  padding: 3px 5px;
  letter-spacing: -3px;
  opacity: 0.95;
}

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

/* ═══════════════════════════════════════
   LAYOUT PRINCIPAL
   ═══════════════════════════════════════ */
.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  overflow-x: hidden;
}

/* ═══════════════════════════════════════
   HEADER / NAVEGACIÓN
   ═══════════════════════════════════════ */
header {
  z-index: 9999;
  background: var(--color-white);
  padding-top: 1em;
  padding-bottom: 1em;
  position: relative;
  width: 100%;
  box-shadow: 0 4px 6px rgba(0,0,0,.05);
}

header::after {
  content: '';
  clear: both;
  display: block;
}

.header-outer {
  position: sticky;
  top: 0;
}

#logo {
  margin: 0;
  width: 30%;
  margin-left: 5%;
}

#logo img {
  width: 100%;
  height: auto;
}

/* NAV MÓVIL — menú desplegable */
.site-nav {
  top: 100%;
  right: -7px;
  position: absolute;
  background: #343a47;
  clip-path: circle(0px at top right);
  transition: clip-path ease-in-out 600ms;
  width: 100%;
  height: auto;
  padding-top: .1em;
  padding-bottom: .1em;
}

.site-nav-open {
  clip-path: circle(200% at top right);
  position: relative;
}

.site-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li {
  border-bottom: 1px solid #E1E1E1;
  margin-top: 1em;
  margin-right: 0.3em;
  margin-left: 0.3em;
  font-size: .85rem;
  padding-bottom: 1em;
}

.site-nav li:last-child { border-bottom: none; }

.site-nav a {
  color: var(--color-white);
  display: block;
  padding: 0 10% 0 2%;
  text-decoration: none;
  transition: color 0.3s;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--color-orange);
}

/* Animación underline menú desktop */
.menu-animation a {
  position: relative;
}

.menu-animation a::before {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-orange);
  z-index: 1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease-in-out;
  top: 24px;
}

.menu-animation a:hover::before { transform: scaleX(1); }

/* Hamburguesa */
.menu-toggle {
  padding: 1em;
  position: absolute;
  top: 1.5em;
  right: .5em;
  cursor: pointer;
}

.menu-open .hamburguer          { transform: translateY(-12px) rotate(45deg); }
.menu-open .hamburguer::before  { opacity: 0; }
.menu-open .hamburguer::after   { transform: translateY(-4px) rotate(-90deg); }

.hamburguer,
.hamburguer::before,
.hamburguer::after {
  content: '';
  display: block;
  background: var(--color-orange);
  height: 3px;
  width: 2.50em;
  border-radius: 3px;
  transition: all ease-in-out 500ms;
}

.hamburguer::before { transform: translateY(-6px); }
.hamburguer::after  { transform: translateY(-15px); }

/* ═══════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════ */
.hero-section-valencia {
  --valencia-blue:   var(--color-blue);
  --valencia-orange: var(--color-orange);
  --font-heading: 'Roboto', var(--ff-sans);
  --font-body:    var(--ff-sans);

  position: relative;
  padding: 40px 0;
  min-height: 320px;
  display: flex;
  align-items: center;
  background-image: url('../imagenes/reformas.avif');
  background-size: cover;
  background-position: center;
  font-family: var(--font-body);
  color: #333;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.97) 10%,
    rgba(255,255,255,0.65) 55%,
    rgba(255,255,255,0.15) 100%
  );
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Textos hero */
.hero-text h1 {
  font-family: var(--ff-sans);
  text-shadow: #FFDD00 -1px 1px 1px;
  letter-spacing: -2px;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.1;
  margin-bottom: 10px !important;
  color: var(--color-blue);
  text-align: left;
}

.hero-text h2 {
  font-family: var(--ff-sans);
  text-shadow: #FFDD00 -1px 1px 1px;
  letter-spacing: -0.5px;
  font-size: clamp(15px, 1.5vw, 22px);
  line-height: 1.4;
  margin-bottom: 20px !important;
  color: var(--color-orange);
  text-align: left;
  font-weight: 700;
}

.highlight { color: var(--color-orange); }

.hero-sub {
  font-size: clamp(14px, 1.1vw, 17px);
  color: #4a5568;
  margin-bottom: 25px !important;
  line-height: 1.65;
  text-align: left;
}

.hero-benefits {
  padding: 0;
  list-style: none;
  text-align: left;
  margin: 0 0 20px 0;
}

.hero-benefits li {
  margin-bottom: 10px;
  font-weight: 600;
  color: #2d3748;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: clamp(13px, 0.95vw, 15px);
  line-height: 1.5;
}

/* Tarjeta formulario */
.hero-form-card {
  background: var(--color-blue);
  padding: 22px 30px 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: var(--color-white);
}

.form-header h3 {
  font-family: var(--font-heading);
  margin-bottom: 10px !important;
  padding-bottom: 10px;
  color: var(--color-white);
  font-size: clamp(18px, 1.5vw, 24px);
  text-align: center;
  font-weight: 800;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.hero-form-card input,
.hero-form-card select,
.hero-form-card textarea {
  width: 100%;
  padding: 9px 10px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-family: inherit;
  transition: border-color 0.3s, background 0.3s;
  background: #f8f9fa;
  font-size: 0.92rem;
  color: #333;
  box-sizing: border-box;
}

.hero-form-card input:focus,
.hero-form-card select:focus,
.hero-form-card textarea:focus {
  border-color: var(--color-orange);
  outline: none;
  background: var(--color-white);
}

.hero-form-card textarea {
  resize: vertical;
  min-height: 56px;
}

/* Botón CTA */
.btn-primary.full-width {
  background-color: var(--color-orange);
  color: var(--color-white);
  font-size: clamp(13px, 1vw, 16px);
  padding: 13px 10px;
  border-radius: var(--radius-pill);
  font-weight: 900;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  width: 100%;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
  box-shadow: 0 4px 15px rgba(255,158,2,.4);
  letter-spacing: 0.5px;
}

.btn-primary.full-width:hover {
  transform: translateY(-2px);
  background-color: var(--color-orange-dark);
  box-shadow: 0 6px 20px rgba(255,158,2,.6);
}

/* Checkbox privacidad */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.72rem;
  margin-bottom: 16px;
  text-align: left;
  color: rgba(255,255,255,.9);
  line-height: 1.4;
}

.form-check label {
  font-size: 0.72rem;
  line-height: 1.4;
  margin-top: 2px;
}

.form-check input  { width: auto; margin-top: 3px; flex-shrink: 0; }
.form-check a      { color: var(--color-orange); text-decoration: underline; }

/* ═══════════════════════════════════════
   TRUST BAR (NUEVA — E-E-A-T)
   ═══════════════════════════════════════ */
.trust-bar {
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-mid) 100%);
  padding: 18px 0;
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 32px;
  border-right: 1px solid rgba(255,158,2,.3);
  min-width: 160px;
}

.trust-item:last-child { border-right: none; }

.trust-number {
  font-size: clamp(20px, 2.2vw, 32px);
  font-weight: 900;
  color: var(--color-orange);
  line-height: 1;
  font-family: var(--ff-sans);
}

.trust-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,.85);
  font-weight: 500;
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.trust-stars { color: var(--color-orange); font-size: 1rem; }

/* ═══════════════════════════════════════
   BADGES DE CERTIFICACIÓN (NUEVA — E-E-A-T)
   ═══════════════════════════════════════ */
.badges-section {
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 22px 5%;
  text-align: center;
}

.badges-section p.badge-title {
  font-size: 0.78rem !important;
  color: #888 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px !important;
  font-weight: 600;
}

.badges-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--color-white);
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-blue);
  box-shadow: var(--shadow-sm);
  transition: var(--trans-fast);
}

.badge-item:hover {
  border-color: var(--color-orange);
  box-shadow: 0 4px 12px rgba(255,158,2,.2);
}

.badge-icon { font-size: 1rem; }

/* ═══════════════════════════════════════
   SEPARADOR
   ═══════════════════════════════════════ */
#separador {
  width: 30%;
  float: left;
  margin-left: 35%;
  margin-right: 35%;
  border-top: solid 1px var(--color-border);
  margin-top: 10px;
  margin-bottom: 10px;
}

/* ═══════════════════════════════════════
   CUERPO (iconos de misión)
   ═══════════════════════════════════════ */
#cuerpo {
  background: var(--color-white);
  width: 100%;
  height: auto;
  padding: 0.5rem 10% 1rem;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #000;
  clear: left;
  font-size: 1em;
  line-height: 3em;
}

/* Misiones */
#mision1, #mision2, #mision3, #mision4 {
  margin-top: 25px;
  margin-bottom: 10px;
  float: left;
  width: 22%;
}

#mision1 { margin-left: 0; }
#mision2, #mision3, #mision4 { margin-left: 4%; }
#mision4 { margin-right: 0; }

#mision1-icono, #mision2-icono,
#mision3-icono, #mision4-icono {
  width: 100%;
  height: 5px;
	 margin-bottom: 45px;
  transition: var(--trans-normal);
}

#mision1-icono img, #mision2-icono img,
#mision3-icono img, #mision4-icono img {
  width: 20%;
  height: auto;
  margin-left: 40%;
  margin-right: 40%;
}

/* ═══════════════════════════════════════
   ARTÍCULO CONTENIDO PRINCIPAL
   ═══════════════════════════════════════ */
#nosotros {
  float: left;
  width: 96%;
  padding-right: 2%;
  padding-left: 2%;
  margin-top: 30px;
  padding-top: 30px;
  padding-bottom: 60px;
  background: var(--color-white);
  background: linear-gradient(to top, #FFFCF8, #FDF7F6);
}

#nosotros-interior {
  float: left;
  width: 90%;
  padding-right: 5%;
  padding-left: 5%;
  padding-top: 20px;
  padding-bottom: 60px;
  background: linear-gradient(to top, #FFFCF8, #FDF7F6);
}

/* ═══════════════════════════════════════
   SERVICIOS (tarjetas con imágenes)
   ═══════════════════════════════════════ */
#servicios {
  width: 100%;
  clear: left;
  float: left;
  margin-top: 3rem;
  margin-bottom: 2rem;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #555;
}

/* Estilos comunes para las 3 tarjetas de servicio */
#banos, #integrales, #cocinas {
  border-radius: var(--radius-lg);
  float: left;
  transition: var(--trans-normal);
  box-shadow: var(--shadow-md);
}

#banos    { width: 24%; margin-left: 5%; }
#integrales { width: 24%; margin-left: 9%; margin-right: 9%; }
#cocinas  { width: 24%; margin-right: 5%; }

#banos img, #integrales img, #cocinas img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
}

#banos:hover, #integrales:hover, #cocinas:hover {
  transform: scale(1.04);
  box-shadow: 0 15px 30px rgba(0,0,0,.28);
  transition: var(--trans-normal);
}

/* ═══════════════════════════════════════
   RESEÑAS / OPINIONES (MEJORADO — E-E-A-T)
   ═══════════════════════════════════════ */
#texto-opiniones {
  float: left;
  width: 100%;
  text-align: center;
}

/* Grid moderno de reseñas */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  width: 90%;
  margin: 0 auto;
  margin-top: 20px;
  margin-bottom: 30px;
  float: none;
  clear: both;
  text-align: left;
}

.review-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0,13,74,.08);
  border-top: 3px solid var(--color-orange);
  transition: var(--trans-fast);
}

.review-card:hover {
  box-shadow: 0 8px 24px rgba(0,13,74,.14);
  transform: translateY(-2px);
}

.review-author {
  font-weight: 700;
  color: var(--color-blue);
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.review-date {
  font-size: 0.73rem;
  color: #999;
  margin-bottom: 10px;
  display: block;
}

.review-body {
  font-size: 0.92rem !important;
  color: #444 !important;
  line-height: 1.65 !important;
  font-style: italic;
  margin: 0 !important;
}

/* Estrellas */
.rating {
  color: #FA9E0A;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

/* ═══════════════════════════════════════
   FAQ — MEJORADO (details/summary nativo)
   ═══════════════════════════════════════ */
.faq-container {
  width: 90%;
  margin: 0 auto;
  max-width: 860px;
  clear: both;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item summary {
  padding: 18px 0;
  cursor: pointer;
  font-weight: 700;
  color: var(--color-blue);
  font-size: clamp(14px, 1vw, 17px);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  transition: color 0.3s;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--color-orange); }

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--color-orange);
  flex-shrink: 0;
  transition: transform 0.3s;
  font-weight: 400;
}

.faq-item[open] summary::after { content: '−'; }

.faq-answer {
  padding: 0 0 18px 0;
}

.faq-answer p {
  color: #444 !important;
  font-size: clamp(14px, 0.95vw, 16px) !important;
  line-height: 1.72 !important;
}

.faq-answer a { color: var(--color-orange); }

/* ═══════════════════════════════════════
   ZONA GEOGRÁFICA (NUEVA — SEO local)
   ═══════════════════════════════════════ */
.zonas-section {
  background: var(--color-white);
  padding: 32px 5% 16px;
  text-align: center;
  clear: both;
  float: left;
  width: 90%;
}

.zonas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
  margin-bottom: 16px;
}

.zona-pill {
  background: #f0f3ff;
  border: 1px solid #d0d8f0;
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-blue);
  text-decoration: none;
  transition: var(--trans-fast);
  white-space: nowrap;
}

.zona-pill:hover {
  background: var(--color-orange);
  color: var(--color-white);
  border-color: var(--color-orange);
  box-shadow: 0 4px 12px rgba(255,158,2,.3);
}

/* ═══════════════════════════════════════
   IMAGEN PRINCIPAL (separador)
   ═══════════════════════════════════════ */
#imagen-principal {
  float: left;
  width: 90%;
  padding-right: 5%;
  padding-left: 5%;
}

#imagen-principal img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

/* ═══════════════════════════════════════
   GALERÍA PARALLAX
   ═══════════════════════════════════════ */
#galeria {
  padding: 5rem 0 7rem;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #000;
}

#galeria-texto {
  padding-top: 10px;
  float: left;
  width: 50%;
  color: var(--color-white);
  text-shadow: 1px 0 6px #929292;
}

#galeria-texto a {
  text-decoration: none;
  color: var(--color-white);
}

.parallax__container {
  clip: rect(0, auto, auto, 0);
  height: 100%;
  left: 0;
  overflow: hidden;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: -100;
}

.parallax {
  position: fixed;
  top: 0;
  transform: translate3d(0,0,0);
  transform-style: preserve-3d;
  width: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* ═══════════════════════════════════════
   BOTONES
   ═══════════════════════════════════════ */
.btn-one {
  font-size: clamp(17px, 2.25vw, 28px);
  font-family: var(--ff-sans);
  margin-top: 2rem;
  color: var(--color-white);
  transition: var(--trans-normal);
  position: relative;
  width: 50%;
  margin-left: 25%;
  margin-right: 25%;
  text-align: center;
  padding: 12px;
  cursor: pointer;
}

.btn-one span  { transition: var(--trans-normal); }
.btn-one:hover span { letter-spacing: 2px; }

.btn-one::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  opacity: 0;
  transition: var(--trans-normal);
  border-top: 1px solid rgba(255,255,255,.9);
  border-bottom: 1px solid rgba(255,255,255,.9);
  transform: scale(0.1, 1);
}

.btn-one:hover::before {
  opacity: 1;
  transform: scale(1.15, 1.15);
}

.btn-one::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  transition: var(--trans-normal);
  background-color: rgba(255,255,255,.25);
}

.btn-one:hover::after {
  opacity: 0;
  transform: scale(0.1, 1);
}

.boton {
  border: 3px solid #E57364;
  padding: 15px;
  background-color: #F39C13;
  color: var(--color-white);
  text-decoration: none;
  text-transform: uppercase;
  font-family: 'Helvetica', sans-serif;
  border-radius: var(--radius-pill);
}

/* ═══════════════════════════════════════
   ANIMACIONES — Scroll reveal
   ═══════════════════════════════════════ */
.fade {
  animation: fadeInOut 3s ease;
}

@keyframes fadeInOut {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.agrandar { transition: var(--trans-normal); }
.agrandar:hover { transform: scale(1.12); }

.oscurecer { transition: var(--trans-normal); opacity: 0.62; }
.oscurecer:hover { opacity: 1; }

.fadeTop1 {
  opacity: 0;
  transform: translate(0, 15vh);
  transition: all 2.5s ease;
}

.fadeTop2 {
  opacity: 0;
  transform: translate(0, 15vh);
  transition: all 2.7s ease;
}

.fadeTop3 {
  opacity: 0;
  transform: translate(0, 15vh);
  transition: all 3.4s ease;
}

.fadeRight {
  opacity: 0;
  transform: translate(40vh, 0);
  transition: all 3s ease;
}

.fadeLeft {
  opacity: 0;
  transform: translate(-40vh, 0);
  transition: all 3s ease;
}

.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ═══════════════════════════════════════
   PROYECTOS — Galería con overlay
   ═══════════════════════════════════════ */
.image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.overlay {
  border-radius: var(--radius-sm);
  position: absolute;
  top: 0; bottom: 0; left: 0; right: 0;
  height: 100%; width: 100%;
  opacity: 0;
  transition: .5s ease;
  background: linear-gradient(0.62deg, #EB7D10 0.5%, rgba(235,125,16,0) 201.42%);
}

.text {
  color: var(--color-white);
  font-size: clamp(22px, 2.5vw, 48px);
  position: absolute;
  top: 80%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-weight: 800;
  text-shadow: 0 2px 6px rgba(0,0,0,.4);
  white-space: nowrap;
}

.hide { display: none; }

/* Proyecto reforma — clases de 1 a 12 (patrón unificado) */
[class^="proyecto-reforma"] {
  position: relative;
  float: left;
  margin-bottom: 35px;
}

[class^="proyecto-reforma"]:hover .overlay { opacity: 1; }
[class^="proyecto-reforma"] img { height: auto; width: 100%; }

/* Anchos específicos: impares a la izquierda, pares a la derecha */
.proyecto-reforma1,  .proyecto-reforma3,
.proyecto-reforma5,  .proyecto-reforma7,
.proyecto-reforma9,  .proyecto-reforma11 {
  width: 47%;
  margin-right: 3%;
}

.proyecto-reforma2,  .proyecto-reforma4,
.proyecto-reforma6,  .proyecto-reforma8,
.proyecto-reforma10, .proyecto-reforma12 {
  width: 47%;
  /* margin-leftt corregido → margin-left */
  margin-left: 0;
}

/* ═══════════════════════════════════════
   MAPA
   ═══════════════════════════════════════ */
.mapa {
  float: left;
  width: 70%;
  padding-left: 15%;
  padding-right: 15%;
}

/* ═══════════════════════════════════════
   SECCIÓN PLUS / EXTRAS
   ═══════════════════════════════════════ */
.plus {
  float: left;
  width: 80%;
  padding: 50px 10% 25px;
  text-align: center;
  border-bottom: 1px solid #B5B6B9;
}

.plus img {
  width: 100%;
  height: auto;
  max-width: 90px;
  padding-top: 50px;
  padding-bottom: 25px;
}

/* ═══════════════════════════════════════
   FRASE / CTA SECUNDARIO
   ═══════════════════════════════════════ */
#frase {
  background: var(--color-white);
  float: left;
  width: 90%;
  height: auto;
  padding: 2rem 5% 2.5rem;
  text-align: center;
}

/* ═══════════════════════════════════════
   FOTO / TEXTO PROYECTO
   ═══════════════════════════════════════ */
#foto-proyecto {
  float: left;
  width: 46%;
  padding: 25px 2%;
}

#foto-proyecto img {
  width: 100%;
  height: auto;
}

#texto-proyecto {
  float: left;
  width: 46%;
  padding: 50px 2% 25px;
}

/* ═══════════════════════════════════════
   ERRORES (páginas de error)
   ═══════════════════════════════════════ */
.error-1 {
  float: left;
  width: 40%;
  margin: 25px 5%;
}

.error-2 {
  float: left;
  width: 40%;
  margin: 25px 5%;
}

.error-2 img { width: 100%; height: auto; }

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
footer {
  background-image: radial-gradient(ellipse at 50% 100%, #FB6E0C 0%, #FA9E0A 40%);
  float: left;
  width: 100%;
  font-family: var(--ff-sans);
  font-size: 16px;
  color: var(--color-white);
  text-align: center;
  margin-top: 50px;
  padding-bottom: 50px;
  padding-top: 30px;
  /* CORRECCIÓN: height fijo eliminado; el footer crecía y cortaba contenido */
  min-height: 300px;
  height: auto;
}

footer p {
  color: var(--color-white) !important;
  font-size: 0.9rem !important;
  line-height: 1.6 !important;
}

#logo-footer {
  border-bottom: 1px solid #FAB74A;
  width: 40%;
  margin-left: 30%;
  margin-right: 30%;
  text-align: center;
  padding-top: 10px;
  padding-bottom: 40px;
  margin-bottom: 20px;
}

#logo-footer img { max-width: 200px; margin: 0 auto; }

#redes {
  width: 100%;
  text-align: center;
  padding-top: 30px;
  margin-bottom: 20px;
}

#redes a { display: inline-block; margin: 0 6px; }

#redes img {
  transition: var(--trans-fast);
  opacity: 0.9;
}

#redes img:hover { opacity: 1; transform: scale(1.1); }

#texto-legal {
  width: 100%;
  text-align: center;
  margin-top: 40px;
  font-size: 0.9rem;
}

#texto-legal a {
  color: var(--color-white);
  text-decoration: none;
}

#texto-legal a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════
   UTILIDADES
   ═══════════════════════════════════════ */
.site-nav--icon {
  display: inline-block;
  font-size: 1em;
  margin-right: 1em;
  width: 1em;
  text-align: right;
  color: #343a47;
}

/* Glow button (kept for backward compat) */
.glow-on-hover {
  width: 220px; height: 50px;
  border: none; outline: none;
  color: var(--color-white);
  background: #111;
  cursor: pointer;
  position: relative;
  z-index: 0;
  border-radius: 10px;
}

.glow-on-hover::before {
  content: '';
  background: linear-gradient(45deg,#ff0000,#ff7300,#fffb00,#48ff00,#00ffd5,#002bff,#7a00ff,#ff00c8,#ff0000);
  position: absolute; top: -2px; left: -2px;
  background-size: 400%; z-index: -1;
  filter: blur(5px);
  width: calc(100% + 4px); height: calc(100% + 4px);
  animation: glowing 20s linear infinite;
  opacity: 0; transition: opacity .3s ease-in-out;
  border-radius: 10px;
}

.glow-on-hover:active { color: #000; }
.glow-on-hover:active::after { background: transparent; }
.glow-on-hover:hover::before { opacity: 1; }

.glow-on-hover::after {
  z-index: -1; content: '';
  position: absolute; width: 100%; height: 100%;
  background: #111; left: 0; top: 0;
  border-radius: 10px;
}

@keyframes glowing {
  0%   { background-position: 0 0; }
  50%  { background-position: 400% 0; }
  100% { background-position: 0 0; }
}

/* ═══════════════════════════════════════
   MEDIA QUERIES — TABLET 900px
   ═══════════════════════════════════════ */
@media (max-width: 900px) {

  h1 { font-size: clamp(28px, 6vw, 48px) !important; letter-spacing: -2px; }
  h2 { font-size: clamp(22px, 4.5vw, 36px) !important; letter-spacing: -1px; }
  h3 { font-size: clamp(20px, 4vw, 32px) !important; }
  h4 { font-size: clamp(18px, 4vw, 30px) !important; text-align: center; }
  h5 { font-size: clamp(17px, 2.8vw, 26px) !important; }
  h6 { font-size: clamp(13px, 1.8vw, 16px) !important; }
  h7 { font-size: clamp(18px, 3vw, 28px) !important; }

  #foto-proyecto, #texto-proyecto {
    width: 96%;
    padding: 15px 2%;
  }

}

/* ═══════════════════════════════════════
   MEDIA QUERIES — MÓVIL 768px
   ═══════════════════════════════════════ */
@media (max-width: 768px) {

  .hero-section-valencia {
    padding: 20px 0;
    min-height: auto;
    background-position: 70% center;
  }

  .hero-bg-overlay {
    background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.88) 100%);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-text {
    text-align: center;
    order: 2;
  }

  .hero-text h1 { font-size: 2rem; text-align: center; }
  .hero-text h2 { font-size: 1rem; text-align: center; }
  .hero-sub     { text-align: center; }
  .hero-benefits { display: inline-block; text-align: left; }

  .hero-form-card {
    order: 1;
    padding: 15px 16px;
  }

  .form-grid-2 { grid-template-columns: 1fr; gap: 10px; }

  .hero-form-card textarea {
    padding: 7px;
    font-size: 0.88rem;
  }

  /* Trust bar en móvil */
  .trust-bar { flex-direction: row; flex-wrap: wrap; }
  .trust-item {
    padding: 8px 14px;
    min-width: 130px;
    border-right: none;
    border-bottom: 1px solid rgba(255,158,2,.2);
    flex: 1 1 40%;
  }
  .trust-item:last-child { border-bottom: none; }

  /* Reseñas en móvil */
  .reviews-grid { grid-template-columns: 1fr; width: 94%; margin: 10px 3%; }

  /* FAQ en móvil */
  .faq-container { width: 94%; }

  /* Badges en móvil */
  .badges-list { gap: 8px; }
  .badge-item { font-size: 0.74rem; padding: 5px 12px; }

  /* Zonas */
  .zonas-section { width: 90%; }
  .zona-pill { font-size: 0.74rem; }

}

/* ═══════════════════════════════════════
   MEDIA QUERIES — MÓVIL 640px
   ═══════════════════════════════════════ */
@media (max-width: 640px) {

  p { font-size: 16px; line-height: 1.7; }

  h1 { font-size: 8vw !important; }
  h2 { font-size: 7vw !important; }
  h3 { font-size: 6vw !important; }
  h4 { font-size: 6vw !important; margin-bottom: 20px; }
  h5 { font-size: 6vw !important; margin-bottom: -20px; }
  h6 { font-size: 4vw !important; line-height: 5.5vw !important; padding-top: 10px; }
  h7 { font-size: 5vw !important; }

  #nosotros {
    float: left;
    width: 96%;
    margin-right: 2%;
    margin-left: 2%;
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: #FAFAFA;
  }

  #banos, #integrales, #cocinas {
    width: 80%;
    margin-left: 10%;
    margin-right: 10%;
    margin-bottom: 20px;
    float: left;
  }

  #opinion1, #opinion2, #opinion3, #opinion4 {
    width: 90%;
    padding-right: 5%;
    padding-left: 5%;
    text-align: center;
  }

  .btn-one {
    font-size: 7vw !important;
    width: 84%;
    margin-left: 8%;
    margin-right: 8%;
  }

  #frase {
    font-size: 5vw;
    width: 90%;
    padding: 1.5rem 5%;
  }

  #servicios { margin-top: 1rem; margin-bottom: 2rem; }

  #mision1, #mision2, #mision3 {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-top: 50px;
  }

  #mision4 {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-top: 30px;
    padding-bottom: 50px;
  }
 #mision1-icono, #mision2-icono,
  #mision3-icono, #mision4-icono {
 margin-bottom: 50px;
  }
  #mision1-icono img, #mision2-icono img,
  #mision3-icono img, #mision4-icono img {
    width: 20%;
    margin-left: 40%;
    margin-right: 40%;
  }

  /* Proyectos en móvil — apilados */
  [class^="proyecto-reforma"] {
    width: 90% !important;
    margin-right: 5%;
    margin-left: 5%;
  }

  #galeria-texto {
    padding-top: 30px;
    margin-top: 100px;
    width: 80%;
  }

  .error-1, .error-2 {
    width: 80%;
    margin-left: 10%;
    margin-right: 10%;
  }

  #foto-proyecto {
    width: 96%;
    padding: 25px 2% 25px;
  }

  #texto-proyecto {
    width: 96%;
    padding: 0 2% 25px;
  }

  .text { font-size: 25px; top: 70%; }

}

/* ═══════════════════════════════════════
   MEDIA QUERIES — DESKTOP 984px+
   ═══════════════════════════════════════ */
@media (min-width: 984px) {

  header {
    background: var(--color-white);
    padding: 0.25em 0;
    position: relative;
    width: 100%;
  }

  #logo {
    float: left;
    margin: 0;
    width: 12%;
    max-width: 300px;
    margin-left: 2%;
  }

  .menu-toggle { display: none; width: auto; }

  .site-nav {
    height: auto;
    background: transparent;
    float: right;
    width: 78%;
    margin-right: 2%;
    margin-top: 0;
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    clip-path: initial;
  }

  .site-nav ul { float: right; }

  .site-nav li {
    display: inline-block;
    border: none;
    text-transform: uppercase;
    margin-right: .4rem;
    margin-left: .4rem;
    font-size: .88rem;
  }

  .site-nav a {
    padding: 0;
    margin-left: 2.5em;
    color: #343a47;
    position: relative;
  }

  .site-nav a:hover,
  .site-nav a:focus {
    background: transparent;
    color: var(--color-orange);
  }

  .site-nav--icon { display: none; }

  #imagen-principal {
    width: 96%;
    padding-right: 2%;
    padding-left: 2%;
  }

  #foto-proyecto {
    float: left;
    width: 46%;
    padding: 25px 2%;
  }

  #foto-proyecto img { width: 100%; height: auto; }

  #texto-proyecto {
    float: left;
    width: 46%;
    padding: 50px 2% 25px;
  }

}

/* ═══════════════════════════════════════
   PRINT — básico
   ═══════════════════════════════════════ */
@media print {
  .hero-section-valencia,
  .trust-bar,
  .badges-section,
  #galeria,
  nav,
  .btn-primary,
  .btn-one,
  footer { display: none !important; }

  body { font-size: 12pt; color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: 10pt; }
}