/*
Theme Name: Vila Pinturas
Theme URI: https://www.pintoresmota.com
Author: Pintores Mota
Description: Tema profesional para empresa de pintura. Incluye página de inicio completa con hero, servicios, galería, testimonios y contacto con envío de email vía AJAX.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vila-pinturas
*/

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

:root {
  --primary: #5B8FBC;
  --primary-dark: #3E6E99;
  --dark: #1C3A5E;
  --gray: #607D8B;
  --light: #EDF3F8;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

/* ── NAV – PORTADA (fijo) ── */
.home nav,
.front-page nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #f0f0f0;
  padding: 0 5%;
}

/* ── NAV – PÁGINAS INTERIORES (sticky) ── */
body:not(.home):not(.front-page) nav {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #f0f0f0;
  padding: 0 5%;
  z-index: 100;
}

.nav-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

body:not(.home):not(.front-page) .nav-inner {
  max-width: 900px;
  height: 64px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  text-decoration: none;
}
body:not(.home):not(.front-page) .logo { font-size: 1.3rem; }

.logo span { color: var(--primary); }

/* Logo imagen */
.logo-img-wrap { display: flex; align-items: center; text-decoration: none; gap: 0.75rem; }
.logo-name { font-size: 1.2rem; font-weight: 800; color: var(--dark); letter-spacing: -0.02em; }
.logo-name em { font-style: normal; color: var(--primary); }
.logo-img { height: 90px; width: auto; display: block; }
body:not(.home):not(.front-page) .logo-img { height: 80px; }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  text-decoration: none;
  color: var(--gray);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; color: var(--white) !important; }

.back-link {
  font-size: 0.9rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.back-link:hover { text-decoration: underline; }

/* ── HERO ── */
#inicio {
  min-height: 100vh;
  background: var(--light);
  display: flex;
  align-items: center;
  padding: 100px 5% 60px;
  position: relative;
  overflow: hidden;
}
#inicio::before {
  content: '';
  position: absolute; top: -10%; right: -5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(91,143,188,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
#inicio::after {
  content: '';
  position: absolute; bottom: -10%; left: -5%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(28,58,94,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px; margin: auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.hero-text h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800; color: var(--dark); line-height: 1.2;
  margin-bottom: 1.2rem;
}
.hero-text h1 em { color: var(--primary); font-style: normal; }
.hero-text p {
  color: var(--gray); font-size: 1.1rem;
  margin-bottom: 2rem; max-width: 480px;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--primary); color: var(--white);
  padding: 0.9rem 2rem; border-radius: var(--radius);
  text-decoration: none; font-weight: 700;
  transition: background 0.2s, transform 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline {
  border: 2px solid var(--dark); color: var(--dark);
  padding: 0.9rem 2rem; border-radius: var(--radius);
  text-decoration: none; font-weight: 600;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  display: inline-block;
}
.btn-outline:hover { background: var(--dark); color: var(--white); }
.hero-stats {
  display: flex; gap: 2rem; margin-top: 3rem; flex-wrap: wrap;
  padding-top: 2rem; border-top: 1px solid rgba(28,58,94,0.12);
}
.stat { text-align: center; }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 0.85rem; color: var(--gray); }
.hero-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.paint-card {
  border-radius: var(--radius); overflow: hidden;
  position: relative; min-height: 160px;
  background-size: cover; background-position: center;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: white; font-weight: 600;
}
.paint-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
}
.paint-card-content {
  position: relative; z-index: 1;
  padding: 1.2rem 1.2rem 1rem;
  display: flex; flex-direction: column; gap: 0.25rem;
}
.paint-card .icon { font-size: 1.5rem; }

/* ── SECTIONS COMMON ── */
section { padding: 80px 5%; }
.section-inner { max-width: 1200px; margin: auto; }
.section-tag {
  display: inline-block;
  background: rgba(91,143,188,0.12); color: var(--primary);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.3rem 0.9rem;
  border-radius: 999px; margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800; margin-bottom: 1rem;
}
.section-subtitle { color: var(--gray); font-size: 1.05rem; max-width: 560px; }

/* ── SERVICIOS ── */
#servicios { background: var(--light); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; margin-top: 3rem;
}
.service-card {
  background: var(--white); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  border-top: 4px solid transparent;
  overflow: hidden; position: relative;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  border-top-color: var(--primary);
}
.service-card::before {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 3px;
  background: var(--primary);
  transition: width 0.35s ease;
}
.service-card:hover::before { width: 100%; }
.service-icon {
  width: 56px; height: 56px;
  background: rgba(91,143,188,0.12);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 1.2rem;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.service-card:hover .service-icon { transform: scale(1.15) rotate(-5deg); }
.service-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.6rem; }
.service-card p { color: var(--gray); font-size: 0.95rem; }

/* ── POR QUÉ ELEGIRNOS ── */
#nosotros { display: flex; }
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.why-items { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.why-item { display: flex; gap: 1rem; align-items: flex-start; }
.why-check {
  width: 36px; height: 36px; min-width: 36px;
  background: rgba(91,143,188,0.12); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.why-item h4 { font-weight: 700; margin-bottom: 0.25rem; }
.why-item p { color: var(--gray); font-size: 0.95rem; }
.why-image {
  border-radius: 20px; overflow: hidden;
  position: relative; min-height: 480px;
}
.why-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.why-image-badge {
  position: absolute; bottom: 1.5rem; left: 1.5rem;
  color: white;
  padding: 0.7rem 1.2rem; border-radius: 10px;
  font-weight: 700; font-size: 0.9rem;
  box-shadow: 0 4px 16px rgba(91,143,188,0.4);
  background: linear-gradient(90deg,
    var(--primary) 0%, var(--primary) 40%,
    #89BDE0 50%, var(--primary) 60%, var(--primary) 100%);
  background-size: 200% auto;
  animation: shine 3s linear infinite;
}

/* ── GALERÍA ── */
#galeria { background: var(--light); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem; margin-top: 3rem;
}
.gallery-item {
  border-radius: var(--radius); overflow: hidden;
  position: relative; aspect-ratio: 4/3; cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:first-child { grid-column: span 2; aspect-ratio: 16/9; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; transition: transform 0.4s;
}
.gallery-item:hover { transform: scale(1.02); box-shadow: 0 16px 40px rgba(28,58,94,0.15); z-index: 1; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(91,143,188,0);
  transition: background 0.3s;
  display: flex; align-items: center; justify-content: center;
}
.gallery-item:hover .gallery-overlay { background: rgba(91,143,188,0.3); }
.gallery-overlay span { color: white; font-size: 2rem; opacity: 0; transition: opacity 0.3s; }
.gallery-item:hover .gallery-overlay span { opacity: 1; }

/* ── TESTIMONIOS ── */
#testimonios { background: var(--white); }
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; margin-top: 3rem;
}
.testimonio-card {
  background: var(--white); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.testimonio-card::before {
  content: '\201C';
  position: absolute; top: -10px; right: 16px;
  font-size: 7rem; font-weight: 800; line-height: 1;
  color: rgba(91,143,188,0.08);
  font-family: Georgia, serif;
  pointer-events: none;
}
.testimonio-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(28,58,94,0.1); }
.stars { color: #f59e0b; font-size: 1.1rem; margin-bottom: 1rem; }
.testimonio-text { color: var(--gray); font-style: italic; margin-bottom: 1.5rem; font-size: 0.95rem; }
.testimonio-author { display: flex; align-items: center; gap: 0.75rem; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #1A4A72, #2E78B5);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 1rem;
}
.author-name { font-weight: 700; font-size: 0.95rem; }
.author-role { color: var(--gray); font-size: 0.82rem; }

/* ── PROCESO ── */
.proceso-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem; margin-top: 3rem; position: relative;
}
.step {
  text-align: center; padding: 2rem 1.5rem;
  background: var(--light); border-radius: var(--radius);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(28,58,94,0.1); }
.step-number {
  width: 56px; height: 56px;
  background: var(--primary); color: white;
  border-radius: 50%; font-size: 1.3rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
  position: relative; transition: transform 0.3s ease;
}
.step:hover .step-number { transform: scale(1.12); box-shadow: 0 0 0 6px rgba(91,143,188,0.2); }
.step h3 { font-weight: 700; margin-bottom: 0.5rem; }
.step p { color: var(--gray); font-size: 0.92rem; }

/* ── CONTACTO ── */
#contacto {
  background: linear-gradient(135deg, #1C3A5E 0%, #2A6496 100%);
  color: white;
}
#contacto .section-title { color: white; }
#contacto .section-subtitle { color: rgba(255,255,255,0.65); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  margin-top: 3rem; align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon {
  width: 44px; height: 44px; min-width: 44px;
  background: rgba(91,143,188,0.18); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.contact-item h4 { font-weight: 600; margin-bottom: 0.2rem; }
.contact-item p { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%; padding: 0.9rem 1.1rem;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px; color: white; font-size: 0.95rem; font-family: inherit;
  outline: none; transition: border-color 0.2s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.4); }
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus { border-color: var(--primary); }
.contact-form select option { background: var(--dark); }
.contact-form textarea { resize: vertical; min-height: 130px; }
.btn-submit {
  background: var(--primary); color: white;
  border: none; padding: 1rem 2rem; border-radius: var(--radius);
  font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn-submit:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

/* ── FOOTER ── */
footer {
  background: #0A1E32; color: rgba(255,255,255,0.5);
  text-align: center; padding: 2rem 5%;
  font-size: 0.88rem;
}
footer a { color: var(--primary); text-decoration: none; }

/* ── SCROLL PROGRESS BAR ── */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 9999;
  background: linear-gradient(to right, var(--primary), #89BDE0);
  width: 0%; transition: width 0.1s linear;
  pointer-events: none;
}

/* ── NAV SCROLLED ── */
nav.scrolled { box-shadow: 0 2px 20px rgba(28,58,94,0.1); }
nav.scrolled .nav-cta { box-shadow: 0 4px 12px rgba(91,143,188,0.35); }

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1),
              transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.reveal.from-left  { transform: translateX(-40px); }
.reveal.from-right { transform: translateX(40px); }
.reveal.visible { opacity: 1; transform: translate(0, 0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ── BRUSH STROKE TITLE ── */
.brush-title { position: relative; display: inline; }
.brush-title::after {
  content: '';
  position: absolute; left: 0; bottom: -10px;
  width: 100%; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 12' preserveAspectRatio='none'%3E%3Cpath d='M2,9 Q40,3 80,8 Q120,13 160,7 Q200,2 240,8 Q270,12 298,6' stroke='%235B8FBC' stroke-width='3.5' fill='none' stroke-linecap='round' stroke-linejoin='round' opacity='0.7'/%3E%3C/svg%3E") no-repeat center;
  background-size: 100% 100%;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1) 0.3s;
}
.brush-title.visible::after { transform: scaleX(1); }

/* ── HERO BADGE ── */
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(91,143,188,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(91,143,188,0); }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: white; border: 1.5px solid rgba(91,143,188,0.35);
  color: var(--dark); font-size: 0.82rem; font-weight: 600;
  padding: 0.45rem 1rem; border-radius: 999px;
  margin-bottom: 1.4rem; animation: badgePulse 2.5s infinite;
}
.hero-badge span { color: var(--primary); font-size: 1rem; }

/* ── FLOATING HERO SHAPES ── */
.hero-shape { position: absolute; border-radius: 50%; pointer-events: none; opacity: 0.5; }
@keyframes float1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-18px) rotate(8deg); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(14px) rotate(-6deg); }
}
.hero-shape-1 { width: 80px; height: 80px; top: 15%; left: 5%; border: 3px solid rgba(91,143,188,0.25); animation: float1 5s ease-in-out infinite; }
.hero-shape-2 { width: 40px; height: 40px; top: 70%; left: 3%; background: rgba(91,143,188,0.1); animation: float2 7s ease-in-out infinite; }
.hero-shape-3 { width: 20px; height: 20px; top: 40%; left: 48%; background: rgba(28,58,94,0.08); border-radius: 4px; animation: float1 6s ease-in-out infinite 1s; }

/* ── SHINE ANIMATION ── */
@keyframes shine {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ─────────────────────────────────────────
   PÁGINAS LEGALES (privacidad, cookies, aviso)
───────────────────────────────────────── */
.legal-main { max-width: 900px; margin: 0 auto; padding: 3rem 5% 5rem; }
.page-header { margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 2px solid #f9fafb; }
.page-header h1 { font-size: 2rem; font-weight: 800; margin-bottom: 0.4rem; }
.page-header p { color: var(--gray); font-size: 0.9rem; }
.legal-main h2 { font-size: 1.15rem; font-weight: 700; margin: 2rem 0 0.6rem; color: var(--dark); }
.legal-main h3 { font-size: 1rem; font-weight: 600; margin: 1.2rem 0 0.4rem; }
.legal-main p,
.legal-main li { color: #374151; font-size: 0.97rem; margin-bottom: 0.6rem; }
.legal-main ul { padding-left: 1.4rem; margin-bottom: 0.6rem; }
.legal-main li { margin-bottom: 0.3rem; }
.legal-main table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.93rem; }
.legal-main th { background: #f9fafb; text-align: left; padding: 0.65rem 1rem; font-weight: 600; border: 1px solid #e5e7eb; }
.legal-main td { padding: 0.65rem 1rem; border: 1px solid #e5e7eb; color: #374151; vertical-align: top; }
.legal-main a { color: var(--primary); }

.highlight-box {
  background: #EBF3FA;
  border-left: 4px solid var(--primary);
  padding: 1rem 1.2rem;
  border-radius: 0 8px 8px 0;
  margin: 1rem 0;
}

/* Badges cookies */
.badge {
  display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700;
}
.badge-green  { background: #dcfce7; color: #166534; }
.badge-yellow { background: #fef9c3; color: #854d0e; }
.badge-red    { background: #fee2e2; color: #991b1b; }

/* Panel preferencias cookies */
.pref-panel { background: #f9fafb; border-radius: 12px; padding: 1.5rem; margin: 2rem 0; }
.pref-panel h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.pref-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 0; border-bottom: 1px solid #e5e7eb; gap: 1rem;
}
.pref-row:last-child { border-bottom: none; }
.pref-info { flex: 1; }
.pref-info strong { display: block; font-size: 0.95rem; margin-bottom: 0.2rem; }
.pref-info span { color: var(--gray); font-size: 0.85rem; }
.toggle-wrap { display: flex; align-items: center; gap: 0.5rem; }
.toggle { position: relative; width: 48px; height: 26px; display: inline-block; }
.toggle input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; inset: 0; cursor: pointer;
  background: #d1d5db; border-radius: 999px; transition: background 0.2s;
}
.slider:before {
  content: ''; position: absolute;
  width: 20px; height: 20px; left: 3px; bottom: 3px;
  background: white; border-radius: 50%;
  transition: transform 0.2s; box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
input:checked + .slider { background: var(--primary-dark); }
input:checked + .slider:before { transform: translateX(22px); }
input:disabled + .slider { cursor: not-allowed; background: #9ca3af; }
.toggle-label { font-size: 0.82rem; color: var(--gray); min-width: 60px; }
.btn-save {
  background: var(--primary); color: white; border: none;
  padding: 0.75rem 1.8rem; border-radius: 8px; font-size: 0.95rem;
  font-weight: 700; cursor: pointer; margin-top: 1rem; transition: background 0.2s;
}
.btn-save:hover { background: var(--primary-dark); }
.save-msg { display: none; color: #166534; font-size: 0.88rem; margin-left: 1rem; font-weight: 600; }

/* ── FAQ ── */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  background: var(--white);
  border: 1px solid #e2eaf2;
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.faq-item[open] { box-shadow: var(--shadow); }
.faq-item summary {
  padding: 1.1rem 1.4rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 1.4rem 1.2rem;
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── TARJETA DE SERVICIO – LINK ── */
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: gap 0.2s;
}
.service-link:hover { gap: 0.45rem; color: var(--primary-dark); }

/* ── PÁGINAS DE SERVICIO ── */
.sp-hero {
  background: var(--light);
  padding: 6rem 5% 4rem;
  text-align: center;
}
.sp-hero .section-tag { margin-bottom: 1rem; display: inline-block; }
.sp-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--dark);
  margin: 0.5rem 0 1.25rem;
  line-height: 1.2;
}
.sp-hero .lead {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.75;
}
.sp-hero .hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.sp-content {
  padding: 4rem 5%;
}
.sp-content-inner {
  max-width: 820px;
  margin: auto;
}
.sp-content h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 700;
  color: var(--dark);
  margin: 2.5rem 0 0.9rem;
  line-height: 1.3;
}
.sp-content h2:first-child { margin-top: 0; }
.sp-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin: 1.75rem 0 0.5rem;
}
.sp-content p {
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.sp-content ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 2rem;
  margin: 1rem 0 1.5rem;
}
.sp-content ul li {
  color: var(--gray);
  font-size: 0.95rem;
  padding-left: 1.4rem;
  position: relative;
  line-height: 1.5;
}
.sp-content ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
.sp-benefits {
  background: var(--light);
  padding: 3.5rem 5%;
}
.sp-benefits-inner {
  max-width: 820px;
  margin: auto;
}
.sp-benefits h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.75rem;
  line-height: 1.3;
}
.sp-faq {
  padding: 3.5rem 5%;
}
.sp-faq-inner {
  max-width: 820px;
  margin: auto;
}
.sp-faq h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.75rem;
  line-height: 1.3;
}
.sp-cta {
  background: var(--dark);
  color: white;
  padding: 4.5rem 5%;
  text-align: center;
}
.sp-cta h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
}
.sp-cta p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 2rem;
  font-size: 1rem;
}
.sp-cta .btn-primary { font-size: 1.05rem; padding: 0.9rem 2.2rem; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .why-image { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .sp-content ul { grid-template-columns: 1fr; }
}
