/*
Theme Name: Paddock Automoción
Theme URI: https://paddock4688.live-website.com
Author: Paddock Automoción
Author URI: https://paddock4688.live-website.com
Description: Tema profesional para Paddock Automoción – Taller mecánico en Oropesa del Mar. SEO optimizado, velocidad máxima y diseño adaptado a móviles.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: paddock
Tags: taller, mecanico, oropesa, seo, responsive
*/

/* =========================================================
   VARIABLES GLOBALES
   ========================================================= */
:root {
  --rojo:       #C0392B;
  --rojo-hover: #a93226;
  --negro:      #111111;
  --gris-osc:   #1e1e1e;
  --gris-med:   #444444;
  --gris-cla:   #f5f5f5;
  --blanco:     #ffffff;
  --texto:      #333333;
  --borde:      #e0e0e0;
  --font-head:  'Montserrat', sans-serif;
  --font-body:  'Open Sans', sans-serif;
  --sombra:     0 4px 24px rgba(0,0,0,0.10);
  --radio:      6px;
  --max-width:  1200px;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  color: var(--texto);
  background: var(--blanco);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--rojo); text-decoration: none; transition: color .2s; }
a:hover { color: var(--rojo-hover); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--negro);
  line-height: 1.2;
  margin-bottom: .75em;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem);   font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }

p { margin-bottom: 1.1em; }
ul, ol { padding-left: 1.4em; margin-bottom: 1em; }
li { margin-bottom: .4em; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 72px 0; }

/* =========================================================
   BOTONES
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radio);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  text-decoration: none;
  letter-spacing: .3px;
}

.btn-primary {
  background: var(--rojo);
  color: var(--blanco);
}
.btn-primary:hover {
  background: var(--rojo-hover);
  color: var(--blanco);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192,57,43,.35);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--blanco);
}
.btn-whatsapp:hover {
  background: #1ebe5d;
  color: var(--blanco);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,.35);
}

.btn-outline {
  background: transparent;
  color: var(--blanco);
  border: 2px solid var(--blanco);
}
.btn-outline:hover {
  background: var(--blanco);
  color: var(--negro);
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo img {
  height: 48px;
  width: auto;
}

.site-logo .logo-text {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--blanco);
  letter-spacing: .5px;
}

.site-logo .logo-text span { color: var(--rojo); }

/* Menú principal */
#primary-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  padding: 0;
  margin: 0;
}

#primary-nav a {
  display: block;
  padding: 8px 14px;
  color: #ccc;
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  border-radius: 4px;
  transition: color .2s, background .2s;
}

#primary-nav a:hover,
#primary-nav .current-menu-item a {
  color: var(--blanco);
  background: rgba(255,255,255,.08);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-phone {
  color: var(--blanco);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-phone:hover { color: var(--rojo); }

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--blanco);
  margin: 5px 0;
  transition: .3s;
}

/* =========================================================
   HERO
   ========================================================= */
#hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--negro);
  overflow: hidden;
  padding: 0;
}

/* Foto del taller: al 100% de opacidad, el degradado gestiona la legibilidad */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 68% center; 
	background-repeat: no-repeat;
  opacity: 1;
  transform: scale(1.04);
  transition: transform 9s ease;
}

#hero:hover .hero-bg {
  transform: scale(1);
}

/* Degradado en dos capas:
   → Izquierda muy oscura para que el texto sea legible
   → Derecha más clara para que se vea bien la foto del taller
   → Abajo con un toque oscuro para suavizar el corte */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(10, 10, 10, 0.90) 0%,
      rgba(10, 10, 10, 0.75) 40%,
      rgba(10, 10, 10, 0.38) 70%,
      rgba(10, 10, 10, 0.12) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(10, 10, 10, 0.30) 0%,
      rgba(10, 10, 10, 0.00) 25%,
      rgba(10, 10, 10, 0.00) 72%,
      rgba(10, 10, 10, 0.60) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 80px 0;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--rojo);
  color: var(--blanco);
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.hero-title {
  color: var(--blanco);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-title span { color: var(--rojo); }

.hero-subtitle {
  color: #bbb;
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 580px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-badges {
  display: flex;
  gap: 24px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ccc;
  font-size: .9rem;
}

.hero-badge .icon {
  width: 40px;
  height: 40px;
  background: rgba(192,57,43,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* =========================================================
   VENTAJAS (Features strip)
   ========================================================= */
#ventajas {
  background: var(--rojo);
  padding: 0;
}

.ventajas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.ventaja-item {
  padding: 36px 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border-right: 1px solid rgba(255,255,255,.15);
}

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

.ventaja-icon {
  font-size: 2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.ventaja-item h3 {
  color: var(--blanco);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.ventaja-item p {
  color: rgba(255,255,255,.8);
  font-size: .88rem;
  margin: 0;
  line-height: 1.5;
}

/* =========================================================
   SOBRE NOSOTROS
   ========================================================= */
#sobre-nosotros { background: var(--blanco); }

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.sobre-img {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.sobre-img img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 10px;
}

.sobre-img .badge-exp {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--rojo);
  color: var(--blanco);
  border-radius: 8px;
  padding: 14px 20px;
  text-align: center;
}

.badge-exp .num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  display: block;
}

.badge-exp .txt {
  font-size: .8rem;
  font-weight: 600;
  opacity: .9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-eyebrow {
  display: inline-block;
  color: var(--rojo);
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.sobre-checks {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.sobre-checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--borde);
  font-size: .95rem;
}

.sobre-checks li:last-child { border-bottom: none; }

.sobre-checks li::before {
  content: '✓';
  color: var(--rojo);
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* =========================================================
   SERVICIOS
   ========================================================= */
#servicios { background: var(--gris-cla); }

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 52px;
}

.section-header p {
  color: var(--gris-med);
  font-size: 1.05rem;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.servicio-card {
  background: var(--blanco);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--sombra);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}

.servicio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,.14);
}

.servicio-card .card-img {
  height: 200px;
  overflow: hidden;
}

.servicio-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.servicio-card:hover .card-img img {
  transform: scale(1.05);
}

/* Placeholder si no hay imagen */
.servicio-card .card-img-placeholder {
  height: 200px;
  background: linear-gradient(135deg, var(--negro) 0%, var(--gris-osc) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.servicio-card .card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.servicio-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--negro);
}

.servicio-card p {
  color: var(--gris-med);
  font-size: .9rem;
  flex: 1;
  margin-bottom: 18px;
}

.servicio-card .card-link {
  color: var(--rojo);
  font-weight: 700;
  font-size: .88rem;
  font-family: var(--font-head);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s;
}

.servicio-card:hover .card-link { gap: 10px; }

/* =========================================================
   PROCESO DE TRABAJO
   ========================================================= */
#proceso { background: var(--negro); }

#proceso .section-header h2,
#proceso .section-eyebrow { color: var(--blanco); }
#proceso .section-header p { color: #888; }

.proceso-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

.proceso-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: rgba(192,57,43,.3);
}

.step-item {
  text-align: center;
  padding: 0 16px;
  position: relative;
}

.step-num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--rojo);
  color: var(--blanco);
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  position: relative;
  z-index: 2;
  border: 3px solid var(--gris-osc);
}

.step-item h4 {
  color: var(--blanco);
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-item p {
  color: #777;
  font-size: .82rem;
  line-height: 1.5;
  margin: 0;
}

/* =========================================================
   RESEÑAS
   ========================================================= */
#resenas { background: var(--gris-cla); }

.resenas-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.rating-big {
  display: flex;
  align-items: center;
  gap: 16px;
}

.rating-score {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  color: var(--negro);
  line-height: 1;
}

.rating-stars { color: #f5a623; font-size: 1.4rem; letter-spacing: 2px; }
.rating-count { color: var(--gris-med); font-size: .88rem; margin-top: 4px; }

/* Widget Trustindex placeholder */
.trustindex-widget-placeholder {
  background: var(--blanco);
  border: 2px dashed var(--borde);
  border-radius: 10px;
  padding: 40px;
  text-align: center;
  color: var(--gris-med);
  font-size: .9rem;
}

/* =========================================================
   CTA WHATSAPP BAND
   ========================================================= */
#cta-band {
  background: var(--rojo);
  padding: 56px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-text h2 {
  color: var(--blanco);
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 8px;
}

.cta-text p {
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  margin: 0;
}

/* =========================================================
   BLOG / NOTICIAS
   ========================================================= */
#blog-home { background: var(--blanco); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: var(--blanco);
  border-radius: 10px;
  border: 1px solid var(--borde);
  overflow: hidden;
  transition: box-shadow .25s;
}

.blog-card:hover { box-shadow: var(--sombra); }

.blog-card .card-img {
  height: 200px;
  overflow: hidden;
  background: var(--gris-cla);
}

.blog-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.blog-card:hover .card-img img { transform: scale(1.05); }

.blog-card .card-body { padding: 22px; }

.blog-card .card-meta {
  font-size: .8rem;
  color: #999;
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
}

.blog-card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--negro);
}

.blog-card h3 a { color: var(--negro); }
.blog-card h3 a:hover { color: var(--rojo); }

.blog-card p {
  font-size: .88rem;
  color: var(--gris-med);
  margin-bottom: 14px;
}

/* =========================================================
   MAPA / CONTACTO HOME
   ========================================================= */
#contacto-home { background: var(--gris-cla); padding: 72px 0 0; }

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  padding-bottom: 72px;
}

.contacto-info h2 { margin-bottom: 8px; }
.contacto-info .lead { color: var(--gris-med); margin-bottom: 32px; font-size: 1.05rem; }

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.info-icon {
  width: 44px;
  height: 44px;
  background: var(--rojo);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  color: var(--blanco);
}

.info-label {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--rojo);
  margin-bottom: 3px;
}

.info-value {
  font-size: 1rem;
  color: var(--negro);
  font-weight: 600;
}

.info-sub { font-size: .85rem; color: var(--gris-med); }

.mapa-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--sombra);
  height: 380px;
}

.mapa-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* =========================================================
   FOOTER
   ========================================================= */
#site-footer {
  background: var(--negro);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #222;
}

.footer-logo { margin-bottom: 16px; }
.footer-logo img { height: 44px; }
.footer-logo .logo-text {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--blanco);
}
.footer-logo .logo-text span { color: var(--rojo); }

.footer-desc {
  color: #777;
  font-size: .88rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 36px;
  height: 36px;
  background: #222;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: .9rem;
  transition: background .2s, color .2s;
  text-decoration: none;
}

.social-btn:hover { background: var(--rojo); color: var(--blanco); }

.footer-col h4 {
  color: var(--blanco);
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a {
  color: #777;
  font-size: .88rem;
  transition: color .2s;
}
.footer-col ul a:hover { color: var(--blanco); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  color: #555;
  font-size: .82rem;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  color: #555;
  font-size: .82rem;
  transition: color .2s;
}

.footer-legal a:hover { color: var(--blanco); }

/* =========================================================
   PÁGINAS INTERIORES
   ========================================================= */
.page-hero {
  background: var(--negro);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(192,57,43,.15) 0%, transparent 70%);
}

.page-hero .container { position: relative; z-index: 2; }

.page-hero h1 {
  color: var(--blanco);
  margin-bottom: 12px;
}

.page-hero p {
  color: #aaa;
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 0;
}

.breadcrumb {
  color: #666;
  font-size: .85rem;
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.breadcrumb a { color: #888; }
.breadcrumb a:hover { color: var(--rojo); }
.breadcrumb span { color: var(--rojo); }

/* Contenido de página de servicio */
.service-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 0;
}

.service-content h2 {
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--negro);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--borde);
}

.service-content h3 {
  font-size: 1.15rem;
  margin-top: 28px;
  color: var(--negro);
}

.highlight-box {
  background: var(--gris-cla);
  border-left: 4px solid var(--rojo);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 28px 0;
  font-size: .95rem;
}

.faq-item {
  border: 1px solid var(--borde);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 18px 22px;
  background: var(--gris-cla);
  font-weight: 700;
  font-family: var(--font-head);
  font-size: .95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .2s;
}

.faq-question:hover { background: #ebebeb; }
.faq-question.open { background: var(--rojo); color: var(--blanco); }

.faq-answer {
  padding: 0 22px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s;
  font-size: .93rem;
  color: var(--gris-med);
}

.faq-answer.open {
  max-height: 300px;
  padding: 18px 22px;
}

/* CTA al final de páginas de servicio */
.service-cta {
  background: var(--negro);
  border-radius: 12px;
  padding: 40px;
  margin-top: 56px;
  text-align: center;
}

.service-cta h3 { color: var(--blanco); font-size: 1.5rem; margin-bottom: 10px; }
.service-cta p { color: #aaa; margin-bottom: 24px; }
.service-cta .buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   PÁGINA DE CONTACTO
   ========================================================= */
.contact-form-wrap {
  background: var(--blanco);
  border-radius: 12px;
  box-shadow: var(--sombra);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gris-med);
  margin-bottom: 7px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--borde);
  border-radius: var(--radio);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--negro);
  background: var(--blanco);
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--rojo);
  box-shadow: 0 0 0 3px rgba(192,57,43,.12);
}

.form-group textarea { height: 130px; resize: vertical; }

/* =========================================================
   BLOG – POSTS LIST & SINGLE
   ========================================================= */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  padding: 64px 0;
}

.posts-list { display: flex; flex-direction: column; gap: 40px; }

.post-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  border-bottom: 1px solid var(--borde);
  padding-bottom: 40px;
}

.post-item .post-img {
  height: 190px;
  border-radius: 8px;
  overflow: hidden;
}

.post-item .post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-item .post-cat {
  display: inline-block;
  background: var(--rojo);
  color: var(--blanco);
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.post-item h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.post-item h2 a { color: var(--negro); }
.post-item h2 a:hover { color: var(--rojo); }

.post-item .post-meta {
  font-size: .82rem;
  color: #999;
  margin-bottom: 12px;
}

.sidebar-widget {
  background: var(--gris-cla);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 28px;
}

.sidebar-widget h3 {
  font-size: 1rem;
  font-weight: 700;
  border-bottom: 2px solid var(--rojo);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

/* Single post */
.single-post {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 0;
}

.single-post .post-header { margin-bottom: 36px; }

.single-post .post-content h2 { font-size: 1.35rem; margin-top: 36px; }
.single-post .post-content h3 { font-size: 1.1rem; margin-top: 24px; }

.single-post .post-featured-img {
  width: 100%;
  border-radius: 10px;
  height: 400px;
  object-fit: cover;
  margin-bottom: 36px;
}

/* =========================================================
   STICKY WHATSAPP BUTTON
   ========================================================= */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.5);
  text-decoration: none;
  font-size: 1.6rem;
  animation: pulse 2.5s infinite;
  transition: transform .2s;
}

.wa-float:hover { transform: scale(1.12); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,.5); }
  50%       { box-shadow: 0 6px 36px rgba(37,211,102,.75); }
}

/* =========================================================
   PÁGINAS DE SERVICIO – ESTILOS EXTRA
   ========================================================= */

/* Imagen hero de servicio */
.service-hero-img {
  width: 100%;
  max-height: 440px;
  overflow: hidden;
  background: var(--gris-cla);
}

.service-hero-img img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
}

.service-hero-img .img-placeholder {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #aaa;
  font-size: 1rem;
  flex-direction: column;
  background: var(--gris-cla);
  text-align: center;
  padding: 24px;
}

.service-hero-img .img-placeholder span {
  font-size: .85rem;
  max-width: 300px;
}

/* Lead text en páginas de servicio */
.lead-text {
  font-size: 1.08rem;
  line-height: 1.8;
  color: #444;
  border-left: 4px solid var(--rojo);
  padding-left: 20px;
  margin-bottom: 36px;
}

/* =========================================================
   PÁGINA DE CONTACTO
   ========================================================= */

/* Hero contacto */
.contact-page-hero { padding: 56px 0; }
.contact-page-hero h1 { margin-bottom: 10px; }

/* Barra rápida de acceso */
.contact-quick-bar {
  background: var(--negro);
  border-top: 3px solid var(--rojo);
  border-bottom: 1px solid #222;
}

.quick-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.quick-bar-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 20px;
  border-right: 1px solid #222;
  text-decoration: none;
  transition: background .2s;
}

.quick-bar-item:last-child { border-right: none; }
.quick-bar-item:not(.no-link):hover { background: rgba(192,57,43,.12); }

.qb-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(192,57,43,.18);
  border-radius: 8px;
}

.qb-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 3px;
}

.qb-value {
  display: block;
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  color: var(--blanco);
}

/* Layout principal contacto */
.contact-main-section { padding: 64px 0; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: start;
}

/* Formulario */
.contact-form-wrap {
  background: var(--blanco);
  border-radius: 12px;
  box-shadow: 0 4px 32px rgba(0,0,0,.08);
  border: 1px solid var(--borde);
  overflow: hidden;
}

.form-header {
  background: var(--negro);
  padding: 28px 32px;
  border-bottom: 3px solid var(--rojo);
}

.form-header h2 {
  color: var(--blanco);
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.form-header p {
  color: #aaa;
  font-size: .9rem;
  margin: 0;
}

.paddock-form {
  padding: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 6px;
}

.required { color: var(--rojo); }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--borde);
  border-radius: var(--radio);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--negro);
  background: var(--blanco);
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--rojo);
  box-shadow: 0 0 0 3px rgba(192,57,43,.1);
}

.form-group input.field-error,
.form-group textarea.field-error,
.form-group select.field-error {
  border-color: var(--rojo);
  background: #fff8f8;
}

.form-group textarea { height: 130px; resize: vertical; }

/* Select arrow */
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

/* Checkbox privacidad */
.form-check { margin-bottom: 24px; }

.check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: .88rem !important;
  color: #666 !important;
  font-weight: 400 !important;
}

.check-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: var(--rojo);
  margin-top: 2px;
}

.check-label a { color: var(--rojo); }

/* Submit */
.form-submit { display: flex; flex-direction: column; gap: 12px; }

.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1rem;
}

.form-note {
  font-size: .83rem;
  color: #999;
  text-align: center;
  margin: 0;
}

.form-note a { color: var(--rojo); font-weight: 600; }

/* Alertas del formulario */
.form-alert {
  padding: 16px 20px;
  border-radius: 8px;
  font-size: .92rem;
  margin-top: 16px;
  line-height: 1.5;
}

.form-alert-ok {
  background: rgba(29,185,84,.1);
  border: 1px solid rgba(29,185,84,.3);
  color: #1a7a40;
}

.form-alert-error {
  background: rgba(192,57,43,.08);
  border: 1px solid rgba(192,57,43,.25);
  color: var(--rojo);
}

/* CF7 compatibilidad */
.cf7-wrapper { padding: 32px; }
.cf7-wrapper .wpcf7-form p { margin-bottom: 16px; }
.cf7-wrapper input,
.cf7-wrapper textarea,
.cf7-wrapper select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--borde);
  border-radius: var(--radio);
  font-size: .95rem;
  transition: border-color .2s;
}
.cf7-wrapper input:focus,
.cf7-wrapper textarea:focus { border-color: var(--rojo); outline: none; }
.cf7-wrapper input[type="submit"] {
  background: var(--rojo);
  color: var(--blanco);
  border: none;
  font-family: var(--font-head);
  font-weight: 700;
  cursor: pointer;
  padding: 14px 28px;
  border-radius: var(--radio);
}
.cf7-wrapper input[type="submit"]:hover { background: var(--rojo-hover); }

/* Info lateral contacto */
.contact-info-card {
  background: var(--blanco);
  border-radius: 12px;
  border: 1px solid var(--borde);
  padding: 28px;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  margin-bottom: 20px;
}

.contact-info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--rojo);
  color: var(--negro);
}

.contact-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.contact-services-card {
  background: var(--gris-cla);
  border-radius: 10px;
  padding: 22px;
  margin-bottom: 20px;
}

.contact-services-card h4 {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--rojo);
  margin-bottom: 14px;
}

.contact-services-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-services-card li {
  padding: 7px 0;
  border-bottom: 1px solid #e8e8e8;
  margin: 0;
}

.contact-services-card li:last-child { border-bottom: none; }

.contact-services-card a {
  font-size: .88rem;
  color: var(--texto);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color .2s, gap .2s;
}

.contact-services-card a:hover { color: var(--rojo); gap: 12px; }

/* Mapa ancho completo */
.contact-map-full {
  height: 440px;
  background: var(--gris-cla);
}

.contact-map-full iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Responsive contacto */
@media (max-width: 1024px) {
  .contact-layout { grid-template-columns: 1fr; }
  .quick-bar-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .quick-bar-grid { grid-template-columns: 1fr; }
  .quick-bar-item { border-right: none; border-bottom: 1px solid #222; }
  .quick-bar-item:last-child { border-bottom: none; }
  .form-row { grid-template-columns: 1fr; }
  .paddock-form { padding: 20px; }
  .form-header { padding: 20px; }
}

/* =========================================================
   RESPONSIVE – TABLET (≤1024px)
   ========================================================= */
@media (max-width: 1024px) {
  .servicios-grid   { grid-template-columns: repeat(2, 1fr); }
  .footer-grid      { grid-template-columns: 1fr 1fr; }
  .proceso-steps    { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .proceso-steps::before { display: none; }
  .blog-grid        { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   RESPONSIVE – MÓVIL GRANDE (≤768px)
   ========================================================= */
@media (max-width: 768px) {

  /* Espaciado global */
  section { padding: 44px 0; }
  .container { padding: 0 16px; }

  /* ── Header ── */
  .menu-toggle { display: block; }

  .header-inner { height: 60px; }

  #primary-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--gris-osc);
    padding: 8px 0 16px;
    border-top: 1px solid #333;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
  }

  #primary-nav.open { display: block; }

  #primary-nav ul { flex-direction: column; gap: 0; }

  #primary-nav a {
    padding: 14px 20px;
    font-size: .95rem;
    border-radius: 0;
    border-bottom: 1px solid #2a2a2a;
  }

  #primary-nav a:last-child { border-bottom: none; }

  .header-phone   { display: none; }
  .header-cta .btn-whatsapp { padding: 8px 14px; font-size: .8rem; }

  /* ── Hero ── */
  #hero { min-height: 100svh; min-height: 100vh; }

  /* Degradado en móvil: cubre más para legibilidad */
  .hero-bg::after {
    background:
      linear-gradient(
        to bottom,
        rgba(10,10,10,0.75) 0%,
        rgba(10,10,10,0.60) 40%,
        rgba(10,10,10,0.70) 100%
      ),
      linear-gradient(
        to right,
        rgba(10,10,10,0.85) 0%,
        rgba(10,10,10,0.40) 100%
      );
  }

  .hero-content { padding: 72px 0 52px; }

  .hero-eyebrow { font-size: .7rem; letter-spacing: 1.5px; }

  .hero-title { font-size: clamp(1.7rem, 7vw, 2.4rem); margin-bottom: 14px; }

  .hero-subtitle { font-size: .95rem; margin-bottom: 28px; }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .hero-buttons .btn { width: 100%; justify-content: center; padding: 14px; }

  .hero-badges {
    gap: 14px;
    margin-top: 36px;
  }

  .hero-badge { font-size: .82rem; }
  .hero-badge .icon { width: 34px; height: 34px; font-size: .95rem; }

  /* ── Ventajas ── */
  .ventajas-grid { grid-template-columns: 1fr; }
  .ventaja-item  {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.12);
    padding: 24px 20px;
  }
  .ventaja-item:last-child { border-bottom: none; }

  /* ── Sobre nosotros ── */
  .sobre-grid { grid-template-columns: 1fr; gap: 28px; }
  .sobre-img img { height: 280px; }
  .badge-exp { bottom: 16px; left: 16px; }
  .badge-exp .num { font-size: 1.8rem; }

  /* ── Servicios ── */
  .servicios-grid { grid-template-columns: 1fr; }
  .section-header { margin-bottom: 32px; }

  /* ── Proceso ── */
  .proceso-steps { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  /* ── Reseñas ── */
  .resenas-intro { flex-direction: column; gap: 12px; }
  .rating-score  { font-size: 2.4rem; }

  /* ── CTA Band ── */
  #cta-band { padding: 40px 0; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-inner .btn { width: 100%; justify-content: center; }

  /* ── Blog ── */
  .blog-grid  { grid-template-columns: 1fr; }
  .blog-layout { grid-template-columns: 1fr; }
  .post-item  { grid-template-columns: 1fr; }
  .post-item .post-img { height: 200px; }

  /* ── Contacto home ── */
  .contacto-grid { grid-template-columns: 1fr; }
  .mapa-container { height: 280px; }

  /* ── Footer ── */
  .footer-grid   { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
  .footer-legal  { flex-wrap: wrap; justify-content: center; }

  /* ── Páginas interiores (servicios) ── */
  .service-hero-img img { height: 220px; }

  .service-content { padding: 40px 0; }
  .service-content h2 { font-size: 1.25rem; }

  .service-cta { padding: 28px 20px; }
  .service-cta .buttons { flex-direction: column; }
  .service-cta .buttons .btn { width: 100%; justify-content: center; }

  .highlight-box { padding: 16px 18px; font-size: .9rem; }

  /* ── FAQ ── */
  .faq-question { font-size: .9rem; padding: 15px 18px; }
  .faq-answer   { padding: 0 18px; }
  .faq-answer.open { padding: 15px 18px; }

  /* ── Breadcrumb ── */
  .breadcrumb { font-size: .78rem; flex-wrap: wrap; gap: 4px; }

  /* ── Hero de página interior ── */
  .page-hero { padding: 44px 0; }
  .page-hero h1 { font-size: clamp(1.4rem, 6vw, 2rem); }

  /* ── WhatsApp flotante ── */
  .wa-float { bottom: 18px; right: 18px; width: 52px; height: 52px; font-size: 1.4rem; }
}

/* =========================================================
   RESPONSIVE – MÓVIL PEQUEÑO (≤480px)
   ========================================================= */
@media (max-width: 480px) {

  .container { padding: 0 14px; }

  /* Hero más compacto en móviles pequeños */
  .hero-content { padding: 64px 0 44px; }
  .hero-title   { font-size: clamp(1.5rem, 8vw, 2rem); }

  .hero-badges  { flex-direction: column; gap: 10px; }
  .hero-badge   { gap: 8px; }

  /* Proceso en columna única */
  .proceso-steps { grid-template-columns: 1fr; gap: 16px; }
  .step-num { width: 56px; height: 56px; font-size: 1.2rem; }

  /* Servicios */
  .servicio-card .card-img,
  .servicio-card .card-img-placeholder { height: 160px; }

  /* Blog */
  .blog-card .card-img { height: 160px; }

  /* Footer */
  .footer-legal { gap: 12px; }
  .footer-copy  { font-size: .78rem; }

  /* Botones CTA a columna */
  .hero-buttons .btn,
  .cta-inner .btn { font-size: .9rem; padding: 13px 18px; }

  /* Formulario contacto */
  .form-row   { grid-template-columns: 1fr; }
  .paddock-form { padding: 16px; }

  /* Info items */
  .info-icon  { width: 38px; height: 38px; font-size: 1rem; }
  .info-value { font-size: .9rem; }
}

/* =========================================================
   TOUCH – mejoras táctiles generales
   ========================================================= */
@media (hover: none) and (pointer: coarse) {
  /* Área mínima táctil de 44px para todos los enlaces y botones */
  .btn, nav a, .card-link, .footer-col a,
  .servicio-card .card-link { min-height: 44px; }

  /* Quitar hover effects que no tienen sentido en táctil */
  .servicio-card:hover        { transform: none; }
  .servicio-card:hover .card-img img { transform: none; }
  .blog-card:hover            { box-shadow: none; }
  #hero:hover .hero-bg        { transform: scale(1.04); }
}
