/* ══════════════════════════════════════════════
   REPARACIONES VALENCIA — style.css
   Páginas hijas · /assets/css/style.css
   ══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ── VARIABLES ── */
:root {
  --naranja:      #E8521A;
  --naranja-dark: #C43F08;
  --negro:        #0F0E0D;
  --crema:        #F5F0E8;
  --gris:         #6B6660;
  --gris-claro:   #E8E4DC;
  --blanco:       #FDFCFA;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--blanco);
  color: var(--negro);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════════════
   NAV
   ══════════════════════════════════════════════ */
nav.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--negro);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  color: var(--blanco);
  letter-spacing: 0.04em;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}
.nav-logo span { color: var(--naranja); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--gris-claro);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--naranja); }

.nav-cta {
  background: var(--naranja) !important;
  color: var(--blanco) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 2px;
  font-weight: 500 !important;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--naranja-dark) !important; }

/* ══════════════════════════════════════════════
   PAGE HERO (cabecera de página hija)
   ══════════════════════════════════════════════ */
.page-hero {
  background: var(--negro);
  color: var(--blanco);
  padding: 4rem 2.5rem 3.5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232,82,26,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--naranja);
  margin-bottom: 0.75rem;
}
.page-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}
.page-hero-desc {
  color: #B0ABA5;
  font-size: 1rem;
  font-weight: 300;
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

/* ══════════════════════════════════════════════
   BOTONES
   ══════════════════════════════════════════════ */
.btn-primary {
  background: var(--naranja);
  color: var(--blanco);
  padding: 0.875rem 2rem;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-primary:hover { background: var(--naranja-dark); transform: translateY(-1px); }

.btn-white {
  background: var(--blanco);
  color: var(--naranja);
  padding: 1rem 2.5rem;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.03em;
  transition: transform 0.15s, box-shadow 0.15s;
  display: inline-block;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

/* ══════════════════════════════════════════════
   CONTENIDO ARTÍCULO
   ══════════════════════════════════════════════ */
.page-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 3.5rem 2.5rem 4rem;
}

/* H2 dentro del contenido */
.page-content h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--negro);
  margin: 2.5rem 0 0.75rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--gris-claro);
}
.page-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* Párrafos */
.page-content p {
  color: var(--gris);
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.page-content p:last-child { margin-bottom: 0; }

/* Strong dentro de párrafos */
.page-content p strong { color: var(--negro); font-weight: 500; }

/* Links dentro del contenido */
.page-content a {
  color: var(--naranja);
  text-decoration: none;
  font-weight: 400;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.page-content a:hover { border-bottom-color: var(--naranja); }

/* Listas */
.page-content ul {
  list-style: none;
  margin: 1rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.page-content li {
  padding: 0.65rem 1rem;
  background: var(--crema);
  border-left: 3px solid var(--naranja);
  font-size: 0.9rem;
  color: var(--negro);
  line-height: 1.5;
}
.page-content li a {
  color: var(--naranja);
  border-bottom: none;
}
.page-content li strong { color: var(--negro); }

/* Imágenes dentro del artículo */
.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1.5rem auto;
  display: block;
  opacity: 0.92;
}

/* ══════════════════════════════════════════════
   LINKS INTERNOS (servicios relacionados)
   ══════════════════════════════════════════════ */
.internal-links {
  background: var(--crema);
  padding: 3rem 2.5rem;
}
.internal-links-inner {
  max-width: 860px;
  margin: 0 auto;
}
.internal-links h2 {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 1.25rem;
}
.internal-links ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
  list-style: none;
}
.internal-links li { margin: 0; padding: 0; background: none; border-left: none; }
.internal-links a {
  display: block;
  padding: 0.6rem 0.875rem;
  border: 1px solid var(--gris-claro);
  border-radius: 2px;
  background: var(--blanco);
  color: var(--gris);
  font-size: 0.85rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  border-bottom: 1px solid var(--gris-claro);
}
.internal-links a:hover { border-color: var(--naranja); color: var(--naranja); }

/* ══════════════════════════════════════════════
   CTA SECTION FINAL
   ══════════════════════════════════════════════ */
.cta-section {
  background: var(--naranja);
  color: var(--blanco);
  text-align: center;
  padding: 4.5rem 2.5rem;
}
.cta-section .cta-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.75rem;
}
.cta-section h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 1rem;
  color: var(--blanco);
}
.cta-section p {
  color: rgba(255,255,255,0.8);
  font-weight: 300;
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
footer.site-footer {
  background: var(--negro);
  color: var(--gris);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}
.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  color: var(--blanco);
  letter-spacing: 0.04em;
  text-decoration: none;
}
.footer-logo span { color: var(--naranja); }
footer.site-footer a { color: var(--gris); text-decoration: none; transition: color 0.2s; }
footer.site-footer a:hover { color: var(--naranja); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* ══════════════════════════════════════════════
   ANIMACIÓN ENTRADA
   ══════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-hero > * {
  opacity: 0;
  animation: fadeUp 0.5s ease forwards;
}
.page-hero > *:nth-child(1) { animation-delay: 0.05s; }
.page-hero > *:nth-child(2) { animation-delay: 0.15s; }
.page-hero > *:nth-child(3) { animation-delay: 0.25s; }
.page-hero > *:nth-child(4) { animation-delay: 0.35s; }

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 900px) {
  nav.site-nav { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .page-hero { padding: 3rem 1.5rem 2.5rem; }
  .page-content { padding: 2.5rem 1.5rem 3rem; }
  .internal-links { padding: 2.5rem 1.5rem; }
  .cta-section { padding: 3.5rem 1.5rem; }
  footer.site-footer { padding: 1.75rem 1.5rem; }
}
@media (max-width: 600px) {
  .page-hero { padding: 2.5rem 1.25rem; }
  .page-content { padding: 2rem 1.25rem 2.5rem; }
  .internal-links { padding: 2rem 1.25rem; }
  .internal-links ul { grid-template-columns: 1fr 1fr; }
  .cta-section { padding: 3rem 1.25rem; }
  footer.site-footer { padding: 1.5rem 1.25rem; flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════════════════════
   PÁGINA DE CONFIRMACIÓN (gracias.php)
   ══════════════════════════════════════════════ */
.confirm-wrap {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}
.confirm-box {
  max-width: 520px;
  width: 100%;
  text-align: center;
}
.confirm-icon {
  width: 64px;
  height: 64px;
  background: var(--naranja);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.5rem;
  color: var(--blanco);
}
.confirm-box h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: 0.02em;
  color: var(--negro);
  margin-bottom: 0.5rem;
}
.confirm-sub {
  color: var(--gris);
  font-weight: 300;
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.confirm-resumen {
  background: var(--crema);
  border-left: 3px solid var(--naranja);
  padding: 1.25rem 1.5rem;
  text-align: left;
  margin-bottom: 2rem;
  font-size: 0.875rem;
}
.confirm-resumen p { margin-bottom: 0.35rem; color: var(--gris); font-weight: 300; }
.confirm-resumen strong { color: var(--negro); font-weight: 500; }
.confirm-warning {
  background: #fff3cd;
  border-left: 3px solid #e0a800;
  padding: 0.875rem 1rem;
  font-size: 0.85rem;
  color: #856404;
  margin-bottom: 1.5rem;
  text-align: left;
}
.confirm-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-outline {
  padding: 0.75rem 1.75rem;
  border: 1.5px solid var(--gris-claro);
  border-radius: 2px;
  color: var(--gris);
  text-decoration: none;
  font-size: 0.875rem;
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}
.btn-outline:hover { border-color: var(--naranja); color: var(--naranja); }
/* ── CONTACTO: estilos específicos de la pagina de contacto ── */

  .contact-wrap {
    max-width: 1060px;
    margin: 0 auto;
    padding: 3.5rem 2.5rem 5rem;
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 3rem;
    align-items: start;
  }

  /* ── SIDEBAR INFO ── */
  .contact-sidebar h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 0.02em;
    color: var(--negro);
    margin-bottom: 1.5rem;
  }

  .info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--gris-claro);
  }
  .info-item:first-of-type { border-top: 1px solid var(--gris-claro); }

  .info-ico {
    width: 40px;
    height: 40px;
    background: rgba(232,82,26,0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
  }

  .info-item h3 {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--negro);
    margin-bottom: 0.2rem;
  }
  .info-item p {
    font-size: 0.85rem;
    color: var(--gris);
    font-weight: 300;
    line-height: 1.5;
  }

  .servicios-sidebar {
    margin-top: 2rem;
  }
  .servicios-sidebar h3 {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gris);
    margin-bottom: 0.875rem;
  }
  .servicios-sidebar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }
  .servicios-sidebar li {
    padding: 0.5rem 0.75rem;
    background: var(--crema);
    border-left: 3px solid var(--naranja);
    font-size: 0.85rem;
    color: var(--negro);
  }

  /* ── FORMULARIO ── */
  .contact-form-box {
    background: var(--blanco);
    border: 1.5px solid var(--gris-claro);
    border-radius: 4px;
    padding: 2.5rem;
  }

  .form-box-header {
    margin-bottom: 2rem;
  }
  .form-box-header h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 0.02em;
    color: var(--negro);
    margin-bottom: 0.4rem;
  }
  .form-box-header p {
    font-size: 0.875rem;
    color: var(--gris);
    font-weight: 300;
  }

  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }
  .form-group.full { grid-column: 1 / -1; }

  .form-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--negro);
    letter-spacing: 0.03em;
  }
  .form-group label .req { color: var(--naranja); margin-left: 2px; }

  .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--gris-claro);
    border-radius: 2px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--negro);
    background: var(--blanco);
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
  }
  .form-control:focus {
    outline: none;
    border-color: var(--naranja);
    box-shadow: 0 0 0 3px rgba(232,82,26,0.08);
  }
  .form-control.error {
    border-color: #c0392b;
    background: #fff8f7;
  }
  textarea.form-control {
    min-height: 120px;
    resize: vertical;
  }
  select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%230F0E0D' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
  }

  .error-message {
    font-size: 0.78rem;
    color: #c0392b;
    display: none;
    margin-top: 0.1rem;
  }

  /* Captcha hint */
  .captcha-hint {
    font-size: 0.8rem;
    color: var(--gris);
    font-weight: 300;
    margin-bottom: 0.4rem;
  }

  /* Privacidad checkbox */
  .privacy-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--crema);
    border-radius: 2px;
    margin: 1.25rem 0;
  }
  .privacy-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--naranja);
    cursor: pointer;
  }
  .privacy-row label {
    font-size: 0.85rem;
    color: var(--gris);
    font-weight: 300;
    line-height: 1.5;
    cursor: pointer;
  }
  .privacy-row a {
    color: var(--naranja);
    text-decoration: none;
    font-weight: 400;
  }
  .privacy-row a:hover { text-decoration: underline; }

  /* Submit */
  .submit-row { text-align: center; margin-top: 1.5rem; }

  .submit-btn {
    background: var(--naranja);
    color: var(--blanco);
    border: none;
    padding: 0.9rem 2.5rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }
  .submit-btn:hover { background: var(--naranja-dark); transform: translateY(-1px); }
  .submit-btn:active { transform: translateY(0); }

  /* Mensaje éxito inline */
  .success-message {
    display: none;
    background: var(--negro);
    color: var(--blanco);
    padding: 2rem;
    border-radius: 4px;
    text-align: center;
    animation: fadeUp 0.4s ease forwards;
  }
  .success-message h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 0.02em;
    color: var(--naranja);
    margin-bottom: 0.5rem;
  }
  .success-message p {
    color: #B0ABA5;
    font-weight: 300;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }
  .success-message a {
    color: var(--blanco);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    font-size: 0.9rem;
    transition: border-color 0.2s;
  }
  .success-message a:hover { border-bottom-color: var(--naranja); }

  /* RGPD nota */
  .rgpd-note {
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    border-left: 3px solid var(--gris-claro);
    background: var(--crema);
  }
  .rgpd-note h4 {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gris);
    margin-bottom: 0.75rem;
  }
  .rgpd-note p {
    font-size: 0.8rem;
    color: var(--gris);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 0.4rem;
  }
  .rgpd-note p:last-child { margin-bottom: 0; }
  .rgpd-note a { color: var(--naranja); text-decoration: none; }
  .rgpd-note a:hover { text-decoration: underline; }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* ── RESPONSIVE ── */
  @media (max-width: 860px) {
    .contact-wrap {
      grid-template-columns: 1fr;
      padding: 2.5rem 1.5rem 4rem;
      gap: 2.5rem;
    }
  }
  @media (max-width: 560px) {
    .form-row { grid-template-columns: 1fr; }
    .contact-form-box { padding: 1.5rem; }
    .contact-wrap { padding: 2rem 1.25rem 3rem; }
  }
