/* ============================================
STYLES.CSS — Design System completo
Proyecto: Alejandro Domínguez Fraile - Abogado
Mobile-first: Base 375px
Paleta: Negro #0a0a0a / Dorado #C9A26D
============================================ */

/* Google Fonts — Inter (cuerpo) + Playfair Display (títulos) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@700;800&display=swap');

/* ============================
1. VARIABLES CSS & RESET
============================ */
:root {
--color-primary: #0a0a0a;
--color-primary-light: #1a1a1a;
--color-primary-dark: #000000;
--color-secondary: #C9A26D;
--color-secondary-dark: #B08B58;
--color-accent: #A9B8C5;
--color-text: #1F2937;
--color-text-light: #4B5563;
--color-text-muted: #9CA3AF;
--color-bg: #ffffff;
--color-bg-light: #F9FAFB;
--color-bg-section: #F3F4F6;
--color-bg-dark: #111827;
--color-border: #E5E7EB;
--color-success: #10b981;

--font-base: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
--font-heading: 'Playfair Display', 'Merriweather', 'Georgia', serif;

--container: 1200px;
--container-sm: 860px;
--radius: 4px;
--radius-lg: 8px;
--radius-full: 9999px;
--shadow: 0 4px 16px rgba(13, 37, 63, 0.08);
--shadow-md: 0 8px 32px rgba(13, 37, 63, 0.12);
--shadow-lg: 0 16px 48px rgba(13, 37, 63, 0.18);
--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

--header-h: 120px;
--section-py: 80px;
--section-py-sm: 56px;
}

/* ============================
顶部信息栏 (Top Bar)
============================ */
.top-bar {
height: 38px;
background: var(--color-primary-dark);
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
display: flex;
align-items: center;
font-size: 0.85rem;
color: rgba(255, 255, 255, 0.7);
}

.top-bar .container {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
}

.top-info-list {
display: flex;
gap: 24px;
}

.top-info-list li {
display: flex;
align-items: center;
gap: 8px;
}

.top-info-list li svg {
width: 14px;
height: 14px;
fill: var(--color-secondary);
}

.top-social-list {
display: flex;
gap: 16px;
}

.top-social-list a:hover {
color: var(--color-secondary);
}

@media (max-width: 1023px) {
.top-bar {
display: none;
}

:root {
--header-h: 82px;
}

.header-main {
height: var(--header-h);
}
}



*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}

html {
scroll-behavior: smooth;
font-size: 16px;
-webkit-text-size-adjust: 100%;
}

body {
font-family: var(--font-base);
font-size: 1rem;
line-height: 1.7;
color: var(--color-text);
background: var(--color-bg);
overflow-x: hidden;
display: flex;
flex-direction: column;
min-height: 100vh;
}

main,
#main {
flex: 1 1 auto;
}

img,
video {
max-width: 100%;
display: block;
}

/* SVG global: tamaño seguro por defecto para evitar expansión en servidor.
   Todas las reglas de clase (`.why-icon svg`, `.btn svg`, etc.) sobreescriben esto. */
svg {
max-width: 100%;
display: inline-block;
width: 24px;
height: 24px;
flex-shrink: 0;
}

a {
color: inherit;
text-decoration: none;
transition: var(--transition);
}

ul,
ol {
list-style: none;
}

button {
cursor: pointer;
border: none;
background: none;
font: inherit;
}

input,
textarea,
select {
font: inherit;
}

/* Skip link */
.skip-link {
position: absolute;
top: -100%;
left: 0;
background: var(--color-secondary);
color: #fff;
padding: 12px 20px;
z-index: 9999;
font-weight: 700;
border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
top: 0;
}

/* Focus visible */
:focus-visible {
outline: 3px solid var(--color-secondary);
outline-offset: 3px;
}

/* ============================
2. TIPOGRAFÍA
============================ */
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: var(--font-heading);
line-height: 1.25;
color: var(--color-primary);
font-weight: 700;
}

h1 {
font-size: clamp(2rem, 5vw, 3.25rem);
}

h2 {
font-size: clamp(1.5rem, 3.5vw, 2.25rem);
}

h3 {
font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

h4 {
font-size: 1.15rem;
}

p {
margin-bottom: 1rem;
}

p:last-child {
margin-bottom: 0;
}

strong {
font-weight: 700;
color: var(--color-primary);
}

/* Enlaces en el contenido */
article p a:not([class]),
.svc-intro-text p a:not([class]),
.bio-content p a:not([class]) {
color: var(--color-secondary);
font-weight: 700;
text-decoration: underline;
text-decoration-thickness: 1px;
text-underline-offset: 3px;
transition: var(--transition);
}

article p a:not([class]):hover,
.svc-intro-text p a:not([class]):hover,
.bio-content p a:not([class]):hover {
color: var(--color-secondary-dark);
text-decoration-thickness: 2px;
}

/* ============================
3. UTILIDADES
============================ */
.container {
max-width: var(--container);
margin-inline: auto;
padding-inline: 20px;
}

.container-sm {
max-width: var(--container-sm);
margin-inline: auto;
padding-inline: 20px;
}

.section-pad {
padding-block: var(--section-py);
}

.section-pad-sm {
padding-block: var(--section-py-sm);
}

.text-center {
text-align: center;
}

.text-gradient {
background: linear-gradient(135deg, var(--color-secondary), #E2C192);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.badge {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 14px;
background: rgba(201, 162, 109, 0.1);
color: var(--color-secondary-dark);
border-radius: var(--radius-full);
font-size: 0.85rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
margin-bottom: 16px;
border: 1px solid rgba(201, 162, 109, 0.3);
}

.section-header {
margin-bottom: 48px;
}

.section-header h2 {
margin-bottom: 12px;
}

.section-header p {
font-size: 1.1rem;
color: var(--color-text-light);
max-width: 600px;
}

.section-header.centered {
text-align: center;
}

.section-header.light h2 {
color: #fff;
}

.section-header.light p {
color: rgba(255, 255, 255, 0.8);
}

.section-header.light .badge {
color: var(--color-secondary);
border-color: rgba(201, 162, 109, 0.4);
background: rgba(255, 255, 255, 0.1);
}

.section-header.centered p {
margin-inline: auto;
}

/* ============================
4. BOTONES
============================ */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 14px 28px;
font-size: 1rem;
font-weight: 700;
border-radius: var(--radius);
transition: var(--transition);
text-decoration: none;
min-height: 52px;
line-height: 1.3;
white-space: nowrap;
}

.btn-primary {
background: var(--color-secondary);
color: #fff;
box-shadow: 0 4px 14px rgba(201, 162, 109, 0.35);
}

.btn-primary:hover {
background: var(--color-secondary-dark);
transform: translateY(-2px);
box-shadow: 0 8px 20px rgba(201, 162, 109, 0.40);
color: #fff;
}

.btn-outline {
background: transparent;
color: var(--color-secondary);
border: 2px solid var(--color-secondary);
}

.btn-outline:hover {
background: var(--color-secondary);
color: #fff;
}

.btn-white {
background: #fff;
color: var(--color-primary);
}

.btn-white:hover {
background: var(--color-bg-light);
transform: translateY(-2px);
}

.btn-outline-white {
background: transparent;
color: #fff;
border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline-white:hover {
background: rgba(255, 255, 255, 0.15);
border-color: #fff;
}

.btn-lg {
padding: 18px 36px;
font-size: 1.1rem;
}

.btn-sm {
padding: 10px 20px;
font-size: 0.9rem;
min-height: 44px;
}

.btn svg {
width: 20px;
height: 20px;
fill: currentColor;
flex-shrink: 0;
}

.btn-lg svg {
width: 22px;
height: 22px;
}

/* ============================
5. HEADER
============================ */
.header {
position: fixed;
top: 0;
left: 0;
right: 0;
background: rgba(13, 37, 63, 0.97);
backdrop-filter: blur(10px);
z-index: 1000;
transition: box-shadow 0.3s ease, background 0.3s ease;
}

.header.scrolled {
box-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
background: rgba(7, 21, 38, 0.98);
}

.header-main {
height: 82px;
}

.header-main .container {
height: 100%;
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
}


.logo {
display: flex;
align-items: center;
gap: 10px;
flex-shrink: 0;
}

.logo-icon {
width: 42px;
height: 42px;
border-radius: var(--radius);
background: var(--color-secondary);
display: flex;
align-items: center;
justify-content: center;
}

.logo-icon svg {
width: 24px;
height: 24px;
fill: #fff;
}

.logo-text {
font-size: 1.2rem;
font-weight: 800;
color: #fff;
line-height: 1.2;
}

.logo-text span {
display: block;
font-size: 0.7rem;
font-weight: 400;
color: rgba(255, 255, 255, 0.6);
text-transform: uppercase;
letter-spacing: 0.1em;
}

/* Logo: SVG directo (páginas interiores sin wrapper .logo-icon) */
.logo>svg {
width: 42px;
height: 42px;
min-width: 42px;
fill: #fff;
background: var(--color-secondary);
border-radius: var(--radius);
padding: 9px;
flex-shrink: 0;
}

/* Nav principal */
.nav-main {
display: none;
}

.nav-main>ul {
display: flex;
align-items: center;
gap: 2px;
}

.nav-main>ul>li>a {
display: block;
padding: 8px 12px;
color: rgba(255, 255, 255, 0.85);
font-weight: 500;
font-size: 0.95rem;
border-radius: 6px;
transition: var(--transition);
}

.nav-main>ul>li>a:hover,
.nav-main>ul>li.has-dropdown:hover>a {
color: #fff;
background: rgba(255, 255, 255, 0.1);
}

/* Dropdown */
.has-dropdown {
position: relative;
}

.dropdown {
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%) translateY(-8px);
width: 240px;
background: #fff;
border-radius: var(--radius);
box-shadow: var(--shadow-md);
padding: 10px 8px 8px;
padding-top: 18px;
/* bridge gap so hover stays active */
margin-top: -8px;
/* visually offset the padding so gap looks normal */
opacity: 0;
visibility: hidden;
transition: all 0.2s ease;
pointer-events: none;
z-index: 100;
}

.has-dropdown:hover .dropdown {
opacity: 1;
visibility: visible;
transform: translateX(-50%) translateY(0);
pointer-events: auto;
}

.dropdown li a {
display: block;
padding: 9px 14px;
color: var(--color-text);
font-size: 0.9rem;
border-radius: 6px;
transition: var(--transition);
}

.dropdown li a:hover {
background: var(--color-bg-light);
color: var(--color-secondary);
padding-left: 18px;
}

.header-phone {
display: none;
align-items: center;
gap: 8px;
color: #fff;
font-weight: 700;
font-size: 1rem;
padding: 10px 18px;
background: var(--color-secondary);
border-radius: var(--radius);
white-space: nowrap;
flex-shrink: 0;
}

.header-phone:hover {
background: var(--color-secondary-dark);
color: #fff;
}

.header-phone svg {
width: 18px;
height: 18px;
fill: #fff;
flex-shrink: 0;
}

/* Hamburguesa */
.nav-toggle {
display: flex;
flex-direction: column;
gap: 5px;
padding: 10px;
border-radius: 8px;
background: rgba(255, 255, 255, 0.1);
}

.nav-toggle span {
display: block;
width: 22px;
height: 2px;
background: #fff;
border-radius: 2px;
transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
transform: translateY(-7px) rotate(-45deg);
}

/* Menú mobile abierto */
@media (max-width: 1023px) {
    .nav-main {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(100vh - var(--header-h));
        background: #0a1628;
        padding: 0 !important;
        margin: 0 !important;
        overflow-y: auto;
        overflow-x: hidden;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: block;
        z-index: 999;
    }

    .nav-main.nav-open {
        transform: translateX(0);
    }

    .nav-main>ul {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }

    .nav-main>ul>li {
        width: 100% !important;
        display: block !important;
        position: static !important; /* Desactivar posicionamiento relativo para el dropdown */
    }

    .nav-main>ul>li>a {
        font-size: 1.1rem;
        font-weight: 600;
        padding: 20px 24px !important;
        color: #fff !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
        transition: background 0.3s ease;
    }

    .nav-main>ul>li>a:hover {
        background: rgba(201, 162, 109, 0.1);
        padding-left: 24px !important;
    }

    .has-dropdown.dropdown-open > a {
        background: rgba(201, 162, 109, 0.15) !important;
        color: var(--color-secondary) !important;
    }

    .dropdown {
        position: static !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
        background: rgba(0, 0, 0, 0.25) !important;
        display: none;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        min-width: 100% !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .dropdown-open .dropdown {
        display: block !important;
    }

    .dropdown li {
        width: 100% !important;
        display: block !important;
    }

    .dropdown li a {
        color: rgba(255, 255, 255, 0.8) !important;
        padding: 16px 24px 16px 44px !important;
        font-size: 1rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        transition: background 0.2s ease;
    }

    .dropdown li a:hover {
        background: rgba(255, 255, 255, 0.05) !important;
        color: #fff !important;
        padding-left: 44px !important;
    }
}

@media (min-width: 768px) {
.header-phone {
display: flex;
}
}

@media (min-width: 1024px) {
.nav-main {
display: block;
}

.nav-toggle {
display: none;
}
}

/* ============================
6. HERO HOME
============================ */
.hero {
position: relative;
min-height: clamp(560px, 80vh, 860px);
display: flex;
align-items: center;
overflow: hidden;
background: var(--color-primary-dark);
padding-top: var(--header-h);
}

.hero-bg {
position: absolute;
inset: 0;
z-index: 0;
}

.hero-bg img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
}

.hero-overlay {
position: absolute;
inset: 0;
background: linear-gradient(135deg, rgba(7, 21, 38, 0.92) 0%, rgba(13, 37, 63, 0.80) 60%, rgba(7, 21, 38, 0.75) 100%);
}

.hero-content {
position: relative;
z-index: 1;
padding-block: 48px;
}

.hero-badge {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 8px 16px;
background: rgba(201, 162, 109, 0.2);
border: 1px solid rgba(201, 162, 109, 0.4);
border-radius: var(--radius-full);
color: #fbbf65;
font-size: 0.85rem;
font-weight: 600;
margin-bottom: 20px;
}

.hero-badge svg {
width: 16px;
height: 16px;
fill: currentColor;
}

.hero h1 {
color: #fff;
margin-bottom: 20px;
font-size: clamp(2.25rem, 5.5vw, 3.75rem);
font-weight: 800;
text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
max-width: 700px;
}

.hero-subtitle {
font-size: clamp(1.05rem, 2vw, 1.25rem);
color: rgba(255, 255, 255, 0.85);
margin-bottom: 32px;
max-width: 580px;
line-height: 1.6;
}

.hero-ctas {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-bottom: 40px;
}

.trust-badges {
display: flex;
flex-wrap: wrap;
gap: 20px;
}

.trust-badge {
display: flex;
align-items: center;
gap: 8px;
color: rgba(255, 255, 255, 0.80);
font-size: 0.9rem;
font-weight: 500;
}

.trust-badge svg {
width: 20px;
height: 20px;
fill: var(--color-secondary);
flex-shrink: 0;
}

/* ============================
7. SECCIÓN PROBLEMAS/INTRO
============================ */
.intro-section {
background: var(--color-bg-light);
}

.intro-grid {
display: grid;
gap: 24px;
}

.intro-card {
background: #fff;
border-radius: var(--radius-lg);
padding: 28px;
border-left: 4px solid var(--color-secondary);
box-shadow: var(--shadow);
transition: var(--transition);
}

.intro-card:hover {
transform: translateY(-4px);
box-shadow: var(--shadow-md);
}

.intro-card-icon {
width: 52px;
height: 52px;
border-radius: var(--radius);
background: rgba(201, 162, 109, 0.1);
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 16px;
}

.intro-card-icon svg {
width: 28px;
height: 28px;
fill: var(--color-secondary);
}

.intro-card h3 {
font-size: 1.15rem;
margin-bottom: 8px;
}

.intro-card p {
color: var(--color-text-light);
font-size: 0.95rem;
margin: 0;
}

/* ============================
8. SERVICIOS GRID
============================ */
.services-section {
background: var(--color-bg);
}

.services-grid {
display: grid;
gap: 24px;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.service-card {
background: #fff;
border-radius: var(--radius-lg);
overflow: hidden;
border: 1px solid var(--color-border);
transition: var(--transition);
display: flex;
flex-direction: column;
box-shadow: var(--shadow);
}

.service-card:hover {
transform: translateY(-6px);
box-shadow: var(--shadow-lg);
border-color: var(--color-secondary);
}

.service-card-img {
height: 200px;
background: var(--color-bg-section);
overflow: hidden;
position: relative;
}

.service-card-img img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s ease;
}

.service-card:hover .service-card-img img {
transform: scale(1.05);
}

.service-card-icon-overlay {
position: absolute;
bottom: 12px;
right: 12px;
width: 48px;
height: 48px;
background: var(--color-secondary);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 4px 12px rgba(201, 162, 109, 0.4);
}

.service-card-icon-overlay svg {
width: 26px;
height: 26px;
fill: #fff;
}

.service-card-body {
padding: 24px;
flex: 1;
display: flex;
flex-direction: column;
}

.service-card-body h3 {
font-size: 1.15rem;
margin-bottom: 10px;
}

.service-card-body p {
color: var(--color-text-light);
font-size: 0.95rem;
flex: 1;
margin-bottom: 16px;
}

.service-link {
display: inline-flex;
align-items: center;
gap: 6px;
color: var(--color-secondary);
font-weight: 700;
font-size: 0.9rem;
transition: var(--transition);
}

.service-link svg {
width: 18px;
height: 18px;
fill: currentColor;
transition: transform 0.2s ease;
}

.service-card:hover .service-link svg {
transform: translateX(4px);
}

/* ============================
9. STATS / DIFERENCIADORES
============================ */
.stats-section {
position: relative;
padding: 100px 0;
color: #fff;
overflow: hidden;
background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
}

.stats-section::before {
content: '';
position: absolute;
inset: 0;
background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
opacity: 0.5;
}

.stats-grid {
position: relative;
z-index: 1;
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 40px;
text-align: center;
}

.stat-item {
padding: 30px 20px;
background: rgba(255, 255, 255, 0.05);
border-radius: var(--radius-lg);
border: 1px solid rgba(255, 255, 255, 0.1);
backdrop-filter: blur(5px);
transition: var(--transition);
}

.stat-item:hover {
background: rgba(255, 255, 255, 0.1);
transform: translateY(-5px);
border-color: var(--color-secondary);
}

.stat-item svg {
width: 40px;
height: 40px;
fill: var(--color-secondary);
margin-bottom: 20px;
opacity: 0.9;
}

.stat-number {
font-size: clamp(2.5rem, 6vw, 3.5rem);
font-weight: 800;
color: var(--color-secondary);
line-height: 1;
margin-bottom: 12px;
}

.stat-label {
color: rgba(255, 255, 255, 0.9);
font-size: 1rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 1px;
}

/* ============================
9b. DYNAMIC CTA BANNER
============================ */
.dynamic-cta {
position: relative;
padding: 80px 0;
background: var(--color-secondary);
color: var(--color-primary-dark);
overflow: hidden;
}

.dynamic-cta::after {
content: '';
position: absolute;
top: -50%;
right: -10%;
width: 500px;
height: 500px;
background: rgba(255, 255, 255, 0.1);
border-radius: 50%;
z-index: 0;
}

.cta-content-wrapper {
position: relative;
z-index: 1;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
max-width: 800px;
margin: 0 auto;
}

.cta-content-wrapper h2 {
font-size: clamp(2rem, 5vw, 2.8rem);
color: var(--color-primary-dark);
margin-bottom: 20px;
line-height: 1.2;
}

.cta-content-wrapper p {
font-size: 1.2rem;
margin-bottom: 35px;
opacity: 0.9;
font-weight: 500;
}

.cta-btns {
display: flex;
gap: 20px;
flex-wrap: wrap;
justify-content: center;
}

.cta-btn-primary {
background: var(--color-primary-dark);
color: #fff;
padding: 16px 40px;
font-weight: 700;
border-radius: var(--radius-full);
}

.cta-btn-primary:hover {
background: var(--color-primary-light);
transform: scale(1.05);
}

.cta-btn-outline {
background: transparent;
color: var(--color-primary-dark);
border: 2px solid var(--color-primary-dark);
padding: 14px 38px;
font-weight: 700;
border-radius: var(--radius-full);
}

.cta-btn-outline:hover {
background: var(--color-primary-dark);
color: #fff;
}


/* ============================
10. POR QUÉ ELEGIRNOS
============================ */
.why-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 30px;
margin-top: 40px;
}


.why-card {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
background: #fff;
padding: 40px 30px;
border-radius: var(--radius-lg);
box-shadow: var(--shadow);
transition: var(--transition);
border: 1px solid var(--color-border);
}

.why-card:hover {
transform: translateY(-8px);
box-shadow: var(--shadow-lg);
border-color: var(--color-secondary);
}

.why-icon {
width: 70px;
height: 70px;
border-radius: 50%;
background: rgba(201, 162, 109, 0.1);
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 24px;
transition: var(--transition);
}

.why-card:hover .why-icon {
background: var(--color-secondary);
}

.why-icon svg {
width: 32px;
height: 32px;
fill: var(--color-secondary);
}

.why-card:hover .why-icon svg {
fill: #fff;
}

.why-content h3 {
font-size: 1.3rem;
margin-bottom: 15px;
color: var(--color-primary);
}

.why-content p {
font-size: 1rem;
color: var(--color-text-light);
line-height: 1.6;
}

/* ============================
10.5 QUIÉN SOY (BIO)
============================ */
.bio-section {
background: #fff;
overflow: hidden;
}

.bio-grid {
display: grid;
grid-template-columns: 1fr 1.2fr;
gap: 60px;
align-items: center;
}

.bio-image {
position: relative;
border-radius: var(--radius-lg);
overflow: hidden;
box-shadow: var(--shadow-lg);
}

.bio-image img {
width: 100%;
height: auto;
display: block;
}

.bio-content h2 {
font-size: 2.5rem;
margin-bottom: 25px;
color: var(--color-primary);
}

.bio-content p {
margin-bottom: 20px;
font-size: 1.1rem;
color: var(--color-text-light);
line-height: 1.8;
}

.bio-sig {
margin-top: 40px;
}

.bio-sig h4 {
font-family: 'Playfair Display', serif;
font-size: 1.8rem;
color: var(--color-secondary);
margin-bottom: 5px;
}

.bio-sig span {
font-weight: 700;
text-transform: uppercase;
letter-spacing: 2px;
font-size: 0.9rem;
color: var(--color-text-muted);
}

/* ============================
10.6 CASOS DE ÉXITO
============================ */
.cases-section {
background: var(--color-bg-light);
}

.cases-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
gap: 30px;
margin-top: 50px;
}

.case-card {
background: #fff;
border-radius: var(--radius-lg);
overflow: hidden;
box-shadow: var(--shadow);
border: 1px solid var(--color-border);
transition: var(--transition);
}

.case-card:hover {
transform: translateY(-10px);
box-shadow: var(--shadow-xl);
}

.case-header {
background: var(--color-primary-dark);
padding: 20px 30px;
display: flex;
justify-content: space-between;
align-items: center;
}

.case-badge {
background: var(--color-secondary);
color: #fff;
padding: 5px 15px;
border-radius: var(--radius-full);
font-size: 0.8rem;
font-weight: 700;
text-transform: uppercase;
}

.case-icon svg {
width: 24px;
height: 24px;
fill: rgba(255, 255, 255, 0.6);
}

.case-body {
padding: 30px;
}

.case-body h3 {
font-size: 1.4rem;
margin-bottom: 15px;
color: var(--color-primary);
}

.case-body p {
font-size: 0.95rem;
color: var(--color-text-light);
margin-bottom: 20px;
line-height: 1.6;
}

.case-footer {
padding: 20px 30px;
border-top: 1px solid var(--color-border);
background: #fafafa;
}

.case-result {
display: flex;
align-items: center;
gap: 10px;
font-weight: 700;
color: #059669;
}

.case-result svg {
width: 18px;
height: 18px;
fill: currentColor;
}

@media (max-width: 991px) {
.bio-grid {
grid-template-columns: 1fr;
gap: 40px;
}

.bio-image {
max-width: 500px;
margin: 0 auto;
}
}


/* ============================
11. PROCESO PASOS
============================ */
.process-section {
background: var(--color-bg-light);
}

.process-grid {
display: grid;
gap: 24px;
position: relative;
}

.process-step {
display: flex;
gap: 20px;
align-items: flex-start;
background: #fff;
padding: 28px;
border-radius: var(--radius-lg);
box-shadow: var(--shadow);
border: 1px solid var(--color-border);
transition: var(--transition);
}

.process-step:hover {
transform: translateX(6px);
box-shadow: var(--shadow-md);
}

.step-number {
width: 56px;
height: 56px;
border-radius: 50%;
background: var(--color-secondary);
color: #fff;
font-size: 1.5rem;
font-weight: 900;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
box-shadow: 0 4px 12px rgba(201, 162, 109, 0.35);
}

.step-content h3 {
font-size: 1.1rem;
margin-bottom: 6px;
}

.step-content p {
font-size: 0.95rem;
color: var(--color-text-light);
margin: 0;
}

/* ============================
12. TESTIMONIOS
============================ */
.reviews-section {
background: var(--color-bg);
}

.reviews-grid {
display: grid;
gap: 20px;
}

.review-card {
background: #fff;
border: 1px solid var(--color-border);
border-radius: var(--radius-lg);
padding: 28px;
position: relative;
box-shadow: var(--shadow);
transition: var(--transition);
}

.review-card:hover {
box-shadow: var(--shadow-md);
transform: translateY(-3px);
}

.review-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 16px;
}

.reviewer-info {
display: flex;
align-items: center;
gap: 12px;
}

.reviewer-avatar {
width: 46px;
height: 46px;
border-radius: 50%;
background: var(--color-primary);
color: #fff;
font-weight: 700;
font-size: 1.1rem;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}

.reviewer-name {
font-weight: 700;
font-size: 0.95rem;
}

.reviewer-meta {
font-size: 0.8rem;
color: var(--color-text-muted);
}

.google-icon {
width: 32px;
height: 32px;
flex-shrink: 0;
}

.stars {
color: #FBBF24;
font-size: 1rem;
margin-bottom: 10px;
letter-spacing: 2px;
}

.review-text {
color: var(--color-text-light);
font-size: 0.95rem;
font-style: italic;
line-height: 1.6;
}

/* ============================
13. ZONAS
============================ */
.zones-section {
background: var(--color-bg-light);
}

.zones-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 16px;
}

.zone-card {
display: flex;
align-items: center;
gap: 12px;
background: #fff;
padding: 16px 20px;
border-radius: var(--radius);
border: 1px solid var(--color-border);
transition: var(--transition);
font-weight: 600;
font-size: 0.95rem;
box-shadow: var(--shadow);
}

.zone-card:hover {
background: var(--color-primary);
color: #fff;
border-color: var(--color-primary);
transform: translateY(-3px);
box-shadow: var(--shadow-md);
}

.zone-card svg {
width: 20px;
height: 20px;
fill: var(--color-secondary);
flex-shrink: 0;
}

.zone-card:hover svg {
fill: #fff;
}

/* ============================
14. FAQ
============================ */
.faq-section {
background: var(--color-bg);
}

.faq-list {
max-width: 800px;
margin-inline: auto;
}

.faq-item {
border: 1px solid var(--color-border);
border-radius: var(--radius);
margin-bottom: 12px;
overflow: hidden;
background: #fff;
box-shadow: var(--shadow);
}

.faq-question {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 20px 24px;
text-align: left;
font-size: 1rem;
font-weight: 600;
color: var(--color-primary);
cursor: pointer;
transition: var(--transition);
background: transparent;
}

.faq-question:hover {
background: var(--color-bg-light);
}

.faq-question .faq-icon {
width: 32px;
height: 32px;
border-radius: 50%;
background: var(--color-bg-light);
border: 2px solid var(--color-border);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
transition: var(--transition);
}

.faq-icon svg {
width: 16px;
height: 16px;
fill: var(--color-secondary);
transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
background: var(--color-secondary);
border-color: var(--color-secondary);
}

.faq-item.open .faq-icon svg {
transform: rotate(45deg);
fill: #fff;
}

.faq-answer {
max-height: 0;
overflow: hidden;
transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
padding: 0 24px 24px;
color: var(--color-text-light);
font-size: 0.95rem;
line-height: 1.7;
}

.faq-item.open .faq-question {
color: var(--color-secondary);
background: rgba(201, 162, 109, 0.04);
}

/* ============================
15. MAPA SECTION
============================ */
.map-section {
background: var(--color-bg-light);
}

#map-placeholder {
width: 100%;
height: 400px;
background: var(--color-bg-section);
border-radius: var(--radius-lg);
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
border: 1px solid var(--color-border);
position: relative;
}

#map-placeholder::before {
content: '';
position: absolute;
width: 48px;
height: 48px;
border: 4px solid var(--color-border);
border-top-color: var(--color-secondary);
border-radius: 50%;
animation: spin 0.8s linear infinite;
}

#map-placeholder[data-loaded="true"]::before {
display: none;
}

@keyframes spin {
to {
transform: rotate(360deg);
}
}

/* ============================
16. CTA BANNER
============================ */
.cta-banner {
background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
text-align: center;
position: relative;
overflow: hidden;
}

.cta-banner::before {
content: '';
position: absolute;
inset: 0;
background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-banner .container {
position: relative;
z-index: 1;
}

.cta-banner h2 {
color: #fff;
margin-bottom: 12px;
}

.cta-banner p {
color: rgba(255, 255, 255, 0.9);
font-size: 1.1rem;
margin-bottom: 28px;
}

.cta-banner-btns {
display: flex;
flex-wrap: wrap;
gap: 12px;
justify-content: center;
}

/* ============================
17. FOOTER
============================ */
.footer {
background: var(--color-bg-dark);
color: rgba(255, 255, 255, 0.75);
padding-block: 56px 24px;
}

.footer-grid {
display: grid;
gap: 40px;
margin-bottom: 48px;
}

.footer-brand {
/* brand column */
}

.footer-logo {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 16px;
}

.footer-logo-icon {
width: 44px;
height: 44px;
border-radius: var(--radius);
background: var(--color-secondary);
display: flex;
align-items: center;
justify-content: center;
}

.footer-logo-icon svg {
width: 26px;
height: 26px;
fill: #fff;
}

.footer-logo-text {
font-size: 1.2rem;
font-weight: 800;
color: #fff;
}

.footer-desc {
font-size: 0.9rem;
line-height: 1.7;
margin-bottom: 20px;
}

.footer-contact-list {
list-style: none;
display: flex;
flex-direction: column;
gap: 12px;
}

.footer-contact-list li {
display: flex;
align-items: center;
gap: 10px;
font-size: 0.9rem;
}

.footer-contact-list svg {
width: 18px;
height: 18px;
fill: var(--color-secondary);
flex-shrink: 0;
}

.footer-contact-list a {
color: rgba(255, 255, 255, 0.75);
}

.footer-contact-list a:hover {
color: var(--color-secondary);
}

.footer-col h4 {
color: #fff;
font-size: 0.95rem;
font-weight: 700;
margin-bottom: 16px;
text-transform: uppercase;
letter-spacing: 0.06em;
}

.footer-links {
list-style: none;
display: flex;
flex-direction: column;
gap: 8px;
}

.footer-links a {
color: rgba(255, 255, 255, 0.65);
font-size: 0.9rem;
display: flex;
align-items: center;
gap: 6px;
transition: var(--transition);
padding: 3px 0;
}

.footer-links a::before {
content: '›';
color: var(--color-secondary);
font-weight: 700;
}

.footer-links a:hover {
color: #fff;
padding-left: 4px;
}

.footer-bottom {
border-top: 1px solid rgba(255, 255, 255, 0.1);
padding-top: 24px;
padding-bottom: 24px;
display: flex;
flex-direction: column;
gap: 12px;
align-items: center;
text-align: center;
font-size: 0.85rem;
}

.footer-legal-links {
display: flex;
flex-wrap: wrap;
gap: 16px;
justify-content: center;
}

.footer-legal-links a {
color: rgba(255, 255, 255, 0.5);
}

.footer-legal-links a:hover {
color: rgba(255, 255, 255, 0.9);
}

/* ============================
18. WHATSAPP FLOTANTE
============================ */
.whatsapp-float {
position: fixed;
bottom: 24px;
right: 24px;
width: 60px;
height: 60px;
background: #25D366;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
z-index: 999;
transition: var(--transition);
}

.whatsapp-float:hover {
transform: scale(1.12);
box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
width: 34px;
height: 34px;
fill: #fff;
}

@media (max-width: 767px) {
.whatsapp-float {
bottom: 80px;
}
}

/* ============================
19. MOBILE CTA BAR
============================ */
.mobile-cta-bar {
display: none;
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: 64px;
z-index: 998;
box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.2);
}

.mobile-cta-bar a {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
font-weight: 700;
font-size: 0.95rem;
text-decoration: none;
}

.mobile-cta-bar .cta-call {
background: var(--color-primary);
color: #fff;
}

.mobile-cta-bar .cta-whatsapp {
background: #25D366;
color: #fff;
}

.mobile-cta-bar svg {
width: 20px;
height: 20px;
fill: #fff;
}

@media (max-width: 767px) {
.mobile-cta-bar {
display: flex;
}
}

/* ============================
20. BREADCRUMBS
============================ */
.breadcrumbs {
padding: 11px 0;
background: rgba(7, 21, 38, 0.97);
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
margin-top: var(--header-h);
}

.breadcrumbs ol {
display: flex;
flex-wrap: wrap;
gap: 6px;
list-style: none;
font-size: 0.8rem;
color: rgba(255, 255, 255, 0.45);
align-items: center;
}

.breadcrumbs li+li::before {
content: '›';
margin-right: 6px;
}

.breadcrumbs a {
color: rgba(255, 255, 255, 0.65);
}

.breadcrumbs a:hover {
color: var(--color-secondary);
}

.breadcrumbs [aria-current="page"] {
color: rgba(255, 255, 255, 0.9);
font-weight: 600;
}

/* ============================
21. HERO INTERIOR (páginas inner)
============================ */
.page-hero {
background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
padding: calc(var(--header-h) + 64px) 0 96px;
}

/* Pages with breadcrumbs: breadcrumbs already offset the header */
.breadcrumbs + .page-hero {
padding-top: 64px;
text-align: center;
position: relative;
overflow: hidden;
}

.page-hero h1 {
color: #fff;
margin-bottom: 16px;
}

/* ============================
22. FAQ SECTION
============================ */
.faq-grid {
display: grid;
gap: 16px;
max-width: 800px;
margin: 40px auto 0;
}

.faq-item {
background: #fff;
border: 1px solid var(--color-border);
border-radius: var(--radius);
overflow: hidden;
}

.faq-question {
width: 100%;
padding: 20px 24px;
background: none;
border: none;
text-align: left;
display: flex;
justify-content: space-between;
align-items: center;
font-weight: 700;
color: var(--color-primary);
cursor: pointer;
font-size: 1.05rem;
transition: background 0.2s ease;
}

.faq-question:hover {
background: var(--color-bg-light);
}

.faq-answer {
padding: 0 24px;
max-height: 0;
overflow: hidden;
color: var(--color-text-light);
line-height: 1.6;
transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
padding: 0 24px 24px;
}

.faq-item.open .faq-question {
color: var(--color-secondary);
}


/* ============================
23. PROCESS SECTION (Design Enhancement)
============================ */
.process-steps {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 30px;
margin-top: 50px;
position: relative;
}

.step-item {
text-align: center;
position: relative;
}

.step-number {
width: 60px;
height: 60px;
background: var(--color-primary);
color: #fff;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
font-weight: 800;
margin: 0 auto 20px;
box-shadow: 0 10px 20px rgba(13, 37, 63, 0.2);
border: 4px solid #fff;
outline: 2px solid var(--color-secondary);
position: relative;
z-index: 2;
}

.step-item h4 {
font-size: 1.2rem;
margin-bottom: 10px;
color: var(--color-primary);
}

.step-item p {
font-size: 0.95rem;
color: var(--color-text-light);
}

@media (min-width: 1024px) {
.step-item:not(:last-child)::after {
content: '';
position: absolute;
top: 30px;
left: 60%;
width: 80%;
height: 2px;
background: repeating-linear-gradient(to right, var(--color-secondary), var(--color-secondary) 5px, transparent 5px, transparent 10px);
z-index: 1;
}
}

/* ============================
24. MAP SECTION
============================ */
.map-container {
width: 100%;
height: 450px;
border-radius: var(--radius-lg);
overflow: hidden;
border: 1px solid var(--color-border);
box-shadow: var(--shadow);
}

.map-container iframe {
width: 100%;
height: 100%;
border: 0;
}


.page-hero p {
color: rgba(255, 255, 255, 0.80);
font-size: 1.1rem;
max-width: 600px;
margin-inline: auto;
margin-bottom: 28px;
}

.page-hero-btns {
display: flex;
gap: 12px;
justify-content: center;
flex-wrap: wrap;
}

/* ============================
22. GALERÍA DE TRABAJOS
============================ */
.gallery-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 16px;
}

.gallery-item {
border-radius: var(--radius-lg);
overflow: hidden;
aspect-ratio: 4/3;
background: var(--color-bg-section);
position: relative;
cursor: pointer;
}

.gallery-item img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s ease;
}

.gallery-item:hover img {
transform: scale(1.06);
}

.gallery-overlay {
position: absolute;
inset: 0;
background: linear-gradient(to top, rgba(7, 21, 38, 0.8) 0%, transparent 60%);
opacity: 0;
transition: opacity 0.3s ease;
display: flex;
align-items: flex-end;
padding: 16px;
}

.gallery-item:hover .gallery-overlay {
opacity: 1;
}

.gallery-caption {
color: #fff;
font-weight: 600;
font-size: 0.9rem;
}

/* ============================
23. FORM CONTACTO
============================ */
.contact-form-wrapper {
background: #fff;
border-radius: var(--radius-lg);
padding: 40px;
box-shadow: var(--shadow-md);
border: 1px solid var(--color-border);
}

.form-group {
margin-bottom: 20px;
}

.form-group label {
display: block;
font-weight: 600;
font-size: 0.95rem;
margin-bottom: 6px;
color: var(--color-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
width: 100%;
padding: 14px 16px;
border: 2px solid var(--color-border);
border-radius: var(--radius);
font-size: 1rem;
color: var(--color-text);
background: var(--color-bg);
transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
outline: none;
border-color: var(--color-secondary);
box-shadow: 0 0 0 4px rgba(201, 162, 109, 0.15);
}

.form-group textarea {
resize: vertical;
min-height: 120px;
}

.form-disclaimer {
text-align: center;
font-size: 0.82rem;
color: var(--color-text-muted);
margin-top: 8px;
}

/* ============================
24. BLOG CARDS
============================ */
.blog-section {
background: var(--color-bg-light);
}

.blog-grid {
display: grid;
gap: 24px;
}

.blog-card {
background: #fff;
border-radius: var(--radius-lg);
overflow: hidden;
border: 1px solid var(--color-border);
box-shadow: var(--shadow);
transition: var(--transition);
}

.blog-card:hover {
transform: translateY(-5px);
box-shadow: var(--shadow-md);
}

.blog-card-img {
height: 200px;
background: var(--color-bg-section);
overflow: hidden;
}

.blog-card-img img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img img {
transform: scale(1.05);
}

.blog-card-body {
padding: 24px;
}

.blog-meta {
display: flex;
gap: 12px;
align-items: center;
margin-bottom: 12px;
font-size: 0.82rem;
color: var(--color-text-muted);
}

.blog-tag {
display: inline-block;
background: rgba(201, 162, 109, 0.1);
color: var(--color-secondary);
padding: 3px 10px;
border-radius: var(--radius-full);
font-size: 0.78rem;
font-weight: 600;
}

.blog-card-body h3 {
font-size: 1.1rem;
margin-bottom: 8px;
line-height: 1.35;
}

.blog-card-body p {
color: var(--color-text-light);
font-size: 0.9rem;
margin-bottom: 16px;
}

.read-more {
color: var(--color-secondary);
font-weight: 700;
font-size: 0.9rem;
display: inline-flex;
align-items: center;
gap: 4px;
}

.read-more svg {
width: 16px;
height: 16px;
fill: currentColor;
}

/* ============================
24b. FEATURES & BENEFITS (Home)
============================ */
.features-grid {
display: grid;
gap: 32px;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.feature-item {
background: #fff;
padding: 32px;
border-radius: var(--radius-lg);
border: 1px solid var(--color-border);
transition: var(--transition);
}

.feature-item:hover {
box-shadow: var(--shadow-md);
transform: translateY(-4px);
}

.feature-icon {
width: 56px;
height: 56px;
background: rgba(201, 162, 109, 0.1);
color: var(--color-secondary);
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 20px;
}

.feature-icon svg {
width: 32px;
height: 32px;
fill: currentColor;
}

.feature-item h4 {
margin-bottom: 12px;
font-size: 1.25rem;
}

.feature-item p {
color: var(--color-text-light);
font-size: 0.95rem;
line-height: 1.6;
}

/* ============================
25. ANIMACIONES
============================ */
[data-animate] {
opacity: 0;
transform: translateY(24px);
transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-animate].animated {
opacity: 1;
transform: translateY(0);
}

/* ============================
26. RESPONSIVE AJUSTES
============================ */
@media (min-width: 640px) {
.intro-grid {
grid-template-columns: repeat(2, 1fr);
}

.stats-grid {
grid-template-columns: repeat(4, 1fr);
}

.why-grid {
grid-template-columns: repeat(2, 1fr);
}

.reviews-grid {
grid-template-columns: repeat(2, 1fr);
}

.blog-grid {
grid-template-columns: repeat(2, 1fr);
}
}

@media (min-width: 768px) {
.process-grid {
grid-template-columns: repeat(2, 1fr);
}

.footer-grid {
grid-template-columns: 2fr 1fr 1fr;
}

.footer-bottom {
flex-direction: row;
justify-content: space-between;
text-align: left;
}
}

@media (min-width: 1024px) {
.intro-grid {
grid-template-columns: repeat(3, 1fr);
}

.why-grid {
grid-template-columns: repeat(2, 1fr);
}

.process-grid {
grid-template-columns: repeat(4, 1fr);
}

.reviews-grid {
grid-template-columns: repeat(3, 1fr);
}

.blog-grid {
grid-template-columns: repeat(3, 1fr);
}

.footer-grid {
grid-template-columns: 2fr 1fr 1fr 1fr;
}

.hero-content {
max-width: 700px;
}
}

/* ============================
27. PÁGINA DE TRABAJOS
============================ */
.filter-bar {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-bottom: 32px;
}

.filter-btn {
padding: 8px 18px;
border-radius: var(--radius-full);
background: var(--color-bg-light);
border: 2px solid var(--color-border);
font-size: 0.9rem;
font-weight: 600;
color: var(--color-text-light);
transition: var(--transition);
cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
background: var(--color-primary);
color: #fff;
border-color: var(--color-primary);
}

/* ============================
28. PRINT / MISC
============================ */
@media print {

.header,
.footer,
.whatsapp-float,
.mobile-cta-bar {
display: none;
}

body {
color: #000;
}
}

/* ============================
COOKIE BANNER GDPR
============================ */
/* ============================
   COOKIE CONSENT — LAYER 1 (banner bar)
============================ */
#cookie-banner {
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 9000;
background: #111827;
border-top: 3px solid var(--color-secondary);
box-shadow: 0 -4px 32px rgba(0,0,0,0.4);
transform: translateY(100%);
transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
}
#cookie-banner.visible { transform: translateY(0); }
#cookie-banner.hiding  { transform: translateY(110%); }

.ck-bar {
max-width: 1200px;
margin: 0 auto;
padding: 18px 24px;
display: flex;
align-items: center;
gap: 24px;
flex-wrap: wrap;
}
.ck-icon { width: 36px; height: 36px; fill: var(--color-secondary); flex-shrink: 0; }
.ck-bar-text { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 260px; }
.ck-bar-copy strong { display: block; color: #fff; font-size: 0.93rem; margin-bottom: 3px; }
.ck-bar-copy p { font-size: 0.82rem; color: rgba(255,255,255,0.68); line-height: 1.5; margin: 0; }
.ck-bar-copy a { color: var(--color-secondary); text-decoration: underline; }
.ck-bar-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; align-items: center; }

.ck-btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 10px 18px;
border-radius: 6px;
font-size: 0.84rem;
font-weight: 700;
cursor: pointer;
transition: all 0.2s;
white-space: nowrap;
font-family: var(--font-base);
border: none;
}
.ck-btn--primary  { background: var(--color-secondary); color: #0a0a0a; }
.ck-btn--primary:hover  { background: var(--color-secondary-dark); }
.ck-btn--secondary { background: transparent; color: rgba(255,255,255,0.65); border: 1px solid rgba(255,255,255,0.25); }
.ck-btn--secondary:hover { background: rgba(255,255,255,0.08); color: #fff; }
.ck-btn--outline  { background: transparent; color: var(--color-secondary); border: 1px solid var(--color-secondary); }
.ck-btn--outline:hover  { background: rgba(201,162,109,0.12); }

/* ============================
   COOKIE CONSENT — LAYER 2 (preferences panel)
============================ */
#cookie-panel { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; }
#cookie-panel[hidden] { display: none; }

.ck-overlay {
position: absolute;
inset: 0;
background: rgba(0,0,0,0.6);
backdrop-filter: blur(3px);
opacity: 0;
transition: opacity 0.3s;
}
#cookie-panel.open .ck-overlay { opacity: 1; }

.ck-panel {
position: relative;
z-index: 1;
background: #fff;
border-radius: 14px;
width: min(580px, calc(100vw - 32px));
max-height: calc(100vh - 40px);
overflow-y: auto;
box-shadow: 0 24px 80px rgba(0,0,0,0.45);
display: flex;
flex-direction: column;
transform: translateY(20px);
opacity: 0;
transition: transform 0.3s, opacity 0.3s;
}
#cookie-panel.open .ck-panel { transform: translateY(0); opacity: 1; }

.ck-panel-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 22px 24px 16px;
border-bottom: 1px solid #f0f0f0;
position: sticky;
top: 0;
background: #fff;
z-index: 2;
}
.ck-panel-title { font-size: 1.1rem; font-weight: 700; color: var(--color-primary); margin: 0; }
.ck-panel-close {
width: 32px;
height: 32px;
border: none;
background: #f5f5f5;
border-radius: 50%;
cursor: pointer;
font-size: 1.25rem;
line-height: 1;
color: #555;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.2s;
}
.ck-panel-close:hover { background: #e5e5e5; color: #111; }

.ck-panel-body { padding: 16px 24px; flex: 1; }
.ck-panel-intro { font-size: 0.83rem; color: #666; line-height: 1.6; margin-bottom: 16px; }

.ck-category { padding: 16px 0; border-bottom: 1px solid #f0f0f0; }
.ck-category:last-child { border-bottom: none; }
.ck-category-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ck-category-info strong { display: block; font-size: 0.9rem; color: var(--color-primary); margin-bottom: 4px; }
.ck-category-info p { font-size: 0.8rem; color: #777; line-height: 1.5; margin: 0; max-width: 380px; }

.ck-always-on {
font-size: 0.75rem;
font-weight: 700;
color: #16a34a;
background: #f0fdf4;
padding: 4px 10px;
border-radius: 20px;
white-space: nowrap;
flex-shrink: 0;
}

/* iOS-style toggle switch */
.ck-switch { position: relative; flex-shrink: 0; cursor: pointer; }
.ck-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.ck-switch-track {
display: block;
width: 44px;
height: 24px;
background: #d1d5db;
border-radius: 12px;
transition: background 0.25s;
position: relative;
}
.ck-switch input:checked + .ck-switch-track { background: var(--color-secondary); }
.ck-switch-thumb {
position: absolute;
top: 3px;
left: 3px;
width: 18px;
height: 18px;
background: #fff;
border-radius: 50%;
box-shadow: 0 1px 3px rgba(0,0,0,0.2);
transition: transform 0.25s;
}
.ck-switch input:checked + .ck-switch-track .ck-switch-thumb { transform: translateX(20px); }
.ck-switch input:focus-visible + .ck-switch-track { outline: 2px solid var(--color-secondary); outline-offset: 2px; }

.ck-panel-footer {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 14px 24px;
border-top: 1px solid #f0f0f0;
background: #fafafa;
border-radius: 0 0 14px 14px;
position: sticky;
bottom: 0;
}
.ck-panel-link { font-size: 0.78rem; color: #aaa; text-decoration: underline; }
.ck-panel-link:hover { color: var(--color-secondary); }
.ck-panel-footer-btns { display: flex; gap: 10px; }
.ck-panel-footer .ck-btn--secondary { color: #555; border-color: #d1d5db; }
.ck-panel-footer .ck-btn--secondary:hover { background: #f5f5f5; color: #222; }

@media (max-width: 640px) {
.ck-bar { flex-direction: column; align-items: flex-start; gap: 14px; }
.ck-icon { display: none; }
.ck-bar-actions { width: 100%; }
.ck-btn { flex: 1; font-size: 0.79rem; padding: 9px 8px; }
.ck-panel-footer { flex-direction: column; align-items: flex-start; }
.ck-panel-footer-btns { width: 100%; }
.ck-panel-footer-btns .ck-btn { flex: 1; }
}

/* ============================
FLOATING: EMAIL + SCROLL-TOP
============================ */
#email-float {
position: fixed;
bottom: 90px;
left: 24px;
width: 54px;
height: 54px;
background: var(--color-primary);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 4px 20px rgba(10, 25, 47, 0.4);
z-index: 998;
transition: var(--transition);
}

#email-float:hover {
background: var(--color-secondary);
transform: scale(1.12);
box-shadow: 0 8px 28px rgba(201, 162, 109, 0.45);
}

#email-float svg {
width: 24px;
height: 24px;
fill: #fff;
}

#scroll-top {
position: fixed;
bottom: 90px;
right: 96px;
width: 48px;
height: 48px;
background: rgba(10, 25, 47, 0.85);
border: 2px solid rgba(255, 255, 255, 0.15);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
z-index: 997;
opacity: 0;
visibility: hidden;
transform: translateY(12px);
transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.3s ease;
backdrop-filter: blur(8px);
}

#scroll-top.visible {
opacity: 1;
visibility: visible;
transform: translateY(0);
}

#scroll-top:hover {
background: var(--color-secondary);
border-color: var(--color-secondary);
}

#scroll-top svg {
width: 22px;
height: 22px;
fill: #fff;
}

@media (max-width: 767px) {
#email-float {
bottom: 80px;
left: 16px;
width: 48px;
height: 48px;
}

#scroll-top {
bottom: 140px;
right: 16px;
}
}

/* ============================
29. SERVICE PAGES
============================ */

/* Hero trust row */
.hero-trust-row {
display: flex;
flex-wrap: wrap;
gap: 16px;
justify-content: center;
margin-top: 32px;
}

.hero-trust-item {
display: flex;
align-items: center;
gap: 6px;
color: rgba(255, 255, 255, 0.9);
font-size: 0.9rem;
font-weight: 600;
}

.hero-trust-item svg {
width: 16px;
height: 16px;
fill: var(--color-secondary);
flex-shrink: 0;
}

.page-hero-badge {
display: inline-flex;
align-items: center;
padding: 6px 18px;
border-radius: var(--radius-full);
background: rgba(201, 162, 109, 0.2);
color: var(--color-secondary);
font-size: 0.85rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.06em;
margin-bottom: 20px;
border: 1px solid rgba(201, 162, 109, 0.4);
}

/* Two-column layout */
.service-layout-grid {
display: grid;
grid-template-columns: 1fr 340px;
gap: 48px;
align-items: start;
}

.service-main {
min-width: 0;
}

.service-intro h2 {
font-size: clamp(1.6rem, 3vw, 2.2rem);
margin-bottom: 20px;
}

.service-intro p {
font-size: 1.08rem;
line-height: 1.8;
color: var(--color-text-light);
}

/* Sub-services grid */
.subsvc-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 24px;
margin-top: 32px;
}

.subsvc-card {
display: flex;
gap: 18px;
background: #fff;
border: 1px solid var(--color-border);
border-radius: var(--radius-lg);
padding: 28px 24px;
box-shadow: var(--shadow);
transition: var(--transition);
}

.subsvc-card:hover {
transform: translateY(-4px);
box-shadow: var(--shadow-md);
border-color: var(--color-secondary);
}

.subsvc-icon {
width: 48px;
height: 48px;
border-radius: var(--radius);
background: rgba(201, 162, 109, 0.1);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
transition: var(--transition);
}

.subsvc-card:hover .subsvc-icon {
background: var(--color-secondary);
}

.subsvc-icon svg {
width: 24px;
height: 24px;
fill: var(--color-secondary);
transition: var(--transition);
}

.subsvc-card:hover .subsvc-icon svg {
fill: #fff;
}

.subsvc-body h3 {
font-size: 1.05rem;
margin-bottom: 8px;
color: var(--color-primary);
}

.subsvc-body p {
font-size: 0.9rem;
line-height: 1.6;
color: var(--color-text-light);
margin: 0;
}

/* Process steps */
.svc-steps {
display: flex;
flex-direction: column;
gap: 16px;
margin-top: 28px;
position: relative;
}

.svc-steps::before {
content: '';
position: absolute;
left: 22px;
top: 44px;
bottom: 0;
width: 2px;
background: linear-gradient(to bottom, var(--color-secondary), transparent);
}

.svc-step {
display: flex;
gap: 20px;
align-items: flex-start;
background: #fff;
border: 1px solid var(--color-border);
border-radius: var(--radius-lg);
padding: 22px 24px;
position: relative;
transition: var(--transition);
}

.svc-step:hover {
border-color: var(--color-secondary);
box-shadow: var(--shadow);
}

.svc-step-num {
width: 44px;
height: 44px;
border-radius: 50%;
background: var(--color-secondary);
color: #fff;
font-size: 1.2rem;
font-weight: 900;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
box-shadow: 0 4px 12px rgba(201, 162, 109, 0.35);
}

.svc-step strong {
display: block;
font-size: 1rem;
margin-bottom: 4px;
color: var(--color-primary);
}

.svc-step p {
font-size: 0.9rem;
color: var(--color-text-light);
margin: 0;
line-height: 1.6;
}

/* Mid-page CTA box */
.scta-box {
background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
border-radius: var(--radius-lg);
padding: 40px;
display: flex;
gap: 32px;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
}

.scta-content h3 {
font-size: 1.4rem;
color: #fff;
margin-bottom: 8px;
}

.scta-content p {
color: rgba(255, 255, 255, 0.85);
margin: 0;
max-width: 520px;
}

.scta-actions {
display: flex;
gap: 14px;
flex-shrink: 0;
flex-wrap: wrap;
}

.btn-secondary {
background: rgba(255, 255, 255, 0.15);
color: #fff;
border: 2px solid rgba(255, 255, 255, 0.4);
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 14px 28px;
font-weight: 700;
border-radius: var(--radius);
transition: var(--transition);
}

.btn-secondary:hover {
background: rgba(255, 255, 255, 0.25);
border-color: #fff;
color: #fff;
}

/* Case highlight */
.case-highlight {
display: flex;
gap: 28px;
background: #fff;
border: 1px solid var(--color-border);
border-left: 4px solid var(--color-secondary);
border-radius: var(--radius-lg);
padding: 36px;
box-shadow: var(--shadow);
margin-top: 24px;
align-items: flex-start;
}

.case-highlight-icon {
width: 56px;
height: 56px;
border-radius: 50%;
background: rgba(201, 162, 109, 0.12);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}

.case-highlight-icon svg {
width: 28px;
height: 28px;
fill: var(--color-secondary);
}

.case-highlight h3 {
font-size: 1.2rem;
margin-bottom: 12px;
}

.case-highlight p {
color: var(--color-text-light) !important;
font-size: 0.95rem;
line-height: 1.7;
}

.case-verdict {
display: inline-flex;
align-items: center;
gap: 8px;
margin-top: 12px;
background: #d1fae5;
color: #065f46;
font-weight: 700;
font-size: 0.9rem;
padding: 8px 16px;
border-radius: var(--radius-full);
}

.case-verdict svg {
width: 16px;
height: 16px;
fill: #059669;
}

/* Sidebar */
.service-sidebar {
position: sticky;
top: calc(var(--header-h) + 24px);
display: flex;
flex-direction: column;
gap: 24px;
}

.sidebar-card {
background: #fff;
border: 1px solid var(--color-border);
border-radius: var(--radius-lg);
padding: 28px;
box-shadow: var(--shadow);
}

.sidebar-card--cta {
background: var(--color-primary-dark);
color: #fff;
border-color: transparent;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
}

.sidebar-card--cta .sidebar-card-icon {
width: 52px;
height: 52px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.1);
display: flex;
align-items: center;
justify-content: center;
}

.sidebar-card--cta .sidebar-card-icon svg {
width: 26px;
height: 26px;
fill: var(--color-secondary);
}

.sidebar-card--cta h3 {
color: #fff;
font-size: 1.25rem;
}

.sidebar-card--cta p {
color: rgba(255, 255, 255, 0.8);
font-size: 0.9rem;
margin: 0;
max-width: 240px;
}

.sidebar-card--cta .btn {
width: 100%;
justify-content: center;
}

.btn-wa {
background: #25D366;
color: #fff;
border-radius: var(--radius);
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 14px 20px;
font-weight: 700;
transition: var(--transition);
width: 100%;
}

.btn-wa svg {
width: 20px;
height: 20px;
fill: #fff;
}

.btn-wa:hover {
background: #1da854;
color: #fff;
transform: translateY(-2px);
}

.sidebar-card h4 {
display: flex;
align-items: center;
gap: 8px;
font-size: 0.95rem;
margin-bottom: 16px;
color: var(--color-primary);
}

.sidebar-card h4 svg {
width: 18px;
height: 18px;
fill: var(--color-secondary);
}

.sidebar-list {
list-style: none;
display: flex;
flex-direction: column;
gap: 10px;
}

.sidebar-list li {
display: flex;
align-items: center;
gap: 8px;
font-size: 0.9rem;
color: var(--color-text-light);
}

.sidebar-list li svg {
width: 16px;
height: 16px;
fill: #059669;
flex-shrink: 0;
}

.sidebar-card--hours p {
font-size: 0.9rem;
color: var(--color-text-light);
margin-bottom: 8px;
}

.sidebar-link {
display: inline-flex;
align-items: center;
gap: 4px;
margin-top: 12px;
font-weight: 700;
font-size: 0.9rem;
color: var(--color-secondary);
}

.sidebar-link svg {
width: 16px;
height: 16px;
fill: currentColor;
}

.sidebar-link:hover {
color: var(--color-secondary-dark);
}

/* Section titles within service-main */
.service-subservices h2,
.service-process h2,
.service-case h2,
.service-faq h2 {
font-size: clamp(1.4rem, 2.5vw, 1.9rem);
margin-bottom: 8px;
}

/* Responsive: hide sidebar below 1024px */
@media (max-width: 1024px) {
.service-layout-grid {
grid-template-columns: 1fr;
}

.service-sidebar {
position: static;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.sidebar-card--cta {
grid-column: 1 / -1;
}
}

@media (max-width: 640px) {
.subsvc-grid {
grid-template-columns: 1fr;
}

.subsvc-card {
flex-direction: column;
}

.scta-box {
flex-direction: column;
gap: 20px;
}

.case-highlight {
flex-direction: column;
}

.hero-trust-row {
flex-direction: column;
align-items: flex-start;
padding: 0 20px;
}
}

/* ============================
ZONE PAGES
============================ */
.zona-intro-grid {
display: grid;
grid-template-columns: 1fr 340px;
gap: 48px;
align-items: start;
}

.zona-intro-content p {
font-size: 1.05rem;
line-height: 1.8;
color: var(--color-text-light);
margin-bottom: 1rem;
}

.zona-checks {
display: flex;
flex-direction: column;
gap: 10px;
margin: 28px 0;
}

.zona-check {
display: flex;
align-items: center;
gap: 10px;
font-size: 0.95rem;
font-weight: 600;
color: var(--color-primary);
}

.zona-check svg {
width: 18px;
height: 18px;
fill: #059669;
flex-shrink: 0;
}

.zona-cta-row {
display: flex;
gap: 14px;
flex-wrap: wrap;
margin-top: 20px;
}

.zona-intro-sidebar {
position: sticky;
top: calc(var(--header-h) + 24px);
}

/* Zona service cards grid */
.zona-services-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
margin-top: 36px;
}

.zona-svc-card {
display: flex;
gap: 16px;
align-items: flex-start;
background: #fff;
border: 1px solid var(--color-border);
border-radius: var(--radius-lg);
padding: 24px;
box-shadow: var(--shadow);
transition: var(--transition);
text-decoration: none;
}

.zona-svc-card:hover {
border-color: var(--color-secondary);
transform: translateY(-4px);
box-shadow: var(--shadow-md);
}

.zona-svc-icon {
width: 42px;
height: 42px;
border-radius: var(--radius);
background: rgba(201, 162, 109, 0.12);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
transition: var(--transition);
}

.zona-svc-card:hover .zona-svc-icon {
background: var(--color-secondary);
}

.zona-svc-icon svg {
width: 20px;
height: 20px;
fill: var(--color-secondary);
transition: var(--transition);
}

.zona-svc-card:hover .zona-svc-icon svg {
fill: #fff;
}

.zona-svc-body h3 {
font-size: 1rem;
color: var(--color-primary);
margin-bottom: 6px;
}

.zona-svc-body p {
font-size: 0.875rem;
color: var(--color-text-light);
line-height: 1.55;
margin-bottom: 8px;
}

.zona-svc-link {
font-size: 0.85rem;
font-weight: 700;
color: var(--color-secondary);
}

/* Zones index grid */
.zones-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 20px;
margin-top: 8px;
}

.zone-card {
display: flex;
align-items: center;
gap: 12px;
padding: 22px 24px;
background: #fff;
border: 1px solid var(--color-border);
border-radius: var(--radius-lg);
box-shadow: var(--shadow);
transition: var(--transition);
font-size: 1rem;
color: var(--color-primary);
text-decoration: none;
}

.zone-card:hover {
border-color: var(--color-secondary);
background: var(--color-secondary);
color: #fff;
transform: translateY(-3px);
box-shadow: var(--shadow-md);
}

.zone-card svg {
width: 20px;
height: 20px;
fill: var(--color-secondary);
flex-shrink: 0;
transition: var(--transition);
}

.zone-card:hover svg {
fill: #fff;
}

@media (max-width: 1024px) {
.zona-intro-grid {
grid-template-columns: 1fr;
}

.zona-intro-sidebar {
position: static;
}
}

@media (max-width: 640px) {
.zona-services-grid {
grid-template-columns: 1fr;
}

.zona-cta-row {
flex-direction: column;
}
}

/* ============================
MADRID SEO SECTION
============================ */
.madrid-kw-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 28px;
margin-top: 12px;
}

.madrid-kw-card {
background: #fff;
border: 1px solid var(--color-border);
border-radius: var(--radius-lg);
padding: 32px 28px;
box-shadow: var(--shadow);
transition: var(--transition);
position: relative;
overflow: hidden;
}

.madrid-kw-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
opacity: 0;
transition: var(--transition);
}

.madrid-kw-card:hover {
transform: translateY(-5px);
box-shadow: var(--shadow-md);
}

.madrid-kw-card:hover::before {
opacity: 1;
}

.madrid-kw-icon {
width: 52px;
height: 52px;
border-radius: var(--radius);
background: rgba(201, 162, 109, 0.1);
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 18px;
transition: var(--transition);
}

.madrid-kw-card:hover .madrid-kw-icon {
background: var(--color-secondary);
}

.madrid-kw-icon svg {
width: 26px;
height: 26px;
fill: var(--color-secondary);
transition: var(--transition);
}

.madrid-kw-card:hover .madrid-kw-icon svg {
fill: #fff;
}

.madrid-kw-card h3 {
font-size: 1.1rem;
color: var(--color-primary);
margin-bottom: 10px;
}

.madrid-kw-card p {
font-size: 0.9rem;
color: var(--color-text-light);
line-height: 1.7;
margin: 0;
}

/* ============================
HOME ZONES CLUSTER
============================ */
.home-zones-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 16px;
margin-top: 12px;
margin-bottom: 36px;
}

.home-zone-card {
display: flex;
align-items: center;
gap: 14px;
padding: 20px 18px;
background: #fff;
border: 1px solid var(--color-border);
border-radius: var(--radius-lg);
box-shadow: var(--shadow);
text-decoration: none;
transition: var(--transition);
position: relative;
overflow: hidden;
}

.home-zone-card::after {
content: '→';
position: absolute;
right: 18px;
font-size: 1.1rem;
color: var(--color-secondary);
opacity: 0;
transform: translateX(-8px);
transition: var(--transition);
}

.home-zone-card:hover {
border-color: var(--color-secondary);
transform: translateY(-4px);
box-shadow: var(--shadow-md);
background: rgba(201, 162, 109, 0.04);
}

.home-zone-card:hover::after {
opacity: 1;
transform: translateX(0);
}

.home-zone-card svg {
width: 22px;
height: 22px;
fill: var(--color-secondary);
flex-shrink: 0;
transition: var(--transition);
}

.home-zone-body {
display: flex;
flex-direction: column;
gap: 2px;
}

.home-zone-body strong {
font-size: 0.95rem;
color: var(--color-primary);
font-weight: 700;
}

.home-zone-body span {
font-size: 0.8rem;
color: var(--color-text-light);
font-weight: 400;
}

.zones-home-cta {
text-align: center;
padding-top: 8px;
}

.zones-home-cta p {
color: var(--color-text-light);
margin-bottom: 16px;
font-size: 0.95rem;
}

@media (max-width: 640px) {
.madrid-kw-grid {
grid-template-columns: 1fr;
}

.home-zones-grid {
grid-template-columns: repeat(2, 1fr);
}
}

@media (max-width: 400px) {
.home-zones-grid {
grid-template-columns: 1fr;
}
}

/* ============================
DARK ZONE CARDS (over dark bg)
============================ */
.home-zone-card--dark {
background: rgba(255, 255, 255, 0.08);
border: 1px solid rgba(255, 255, 255, 0.15);
backdrop-filter: blur(8px);
}

.home-zone-card--dark .home-zone-body strong {
color: #fff;
}

.home-zone-card--dark .home-zone-body span {
color: rgba(255, 255, 255, 0.6);
}

.home-zone-card--dark svg {
fill: var(--color-secondary);
}

.home-zone-card--dark::after {
color: var(--color-secondary);
}

.home-zone-card--dark:hover {
background: rgba(255, 255, 255, 0.14);
border-color: var(--color-secondary);
transform: translateY(-4px);
}

/* Badge for dark backgrounds */
.badge-light {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 16px;
border-radius: 100px;
font-size: 0.78rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
background: rgba(201, 162, 109, 0.25);
color: var(--color-secondary);
border: 1px solid rgba(201, 162, 109, 0.4);
margin-bottom: 16px;
}

/* Why grid: 1 column on mobile */
@media (max-width: 767px) {
.why-grid {
grid-template-columns: 1fr;
}
}
/* ============================
SERVICE PAGES — FULL WIDTH
============================ */

/* Intro layout: text + trust widget */
.svc-intro-grid {
display: grid;
grid-template-columns: 1fr 320px;
gap: 56px;
align-items: start;
}
.svc-intro-text p {
font-size: 1.06rem;
line-height: 1.85;
color: var(--color-text-light);
margin-bottom: 14px;
}
.svc-intro-text p:last-child { margin-bottom: 0; }
.svc-trust-box {
background: var(--color-primary);
color: #fff;
border-radius: var(--radius-lg);
padding: 32px;
position: sticky;
top: 88px;
}
.svc-trust-box-title {
font-size: 1.1rem;
font-weight: 800;
color: #fff;
margin-bottom: 20px;
}
.svc-trust-item {
display: flex;
align-items: flex-start;
gap: 10px;
font-size: 0.9rem;
color: rgba(255,255,255,0.85);
line-height: 1.5;
margin-bottom: 12px;
}
.svc-trust-item svg { width: 16px; height: 16px; fill: var(--color-secondary); flex-shrink: 0; margin-top: 2px; }
.svc-trust-divider { border: none; border-top: 1px solid rgba(255,255,255,0.15); margin: 18px 0; }
.svc-trust-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.svc-trust-btns .btn { text-align: center; justify-content: center; }

/* Inline CTA strip — golden style, full-bleed */
/* Remove section padding and container max-width when wrapping a cta-strip */
.section-pad-sm:has(> .container > .cta-strip) {
padding-block: 0;
}
.section-pad-sm:has(> .container > .cta-strip) > .container {
max-width: 100%;
padding-inline: 0;
}

.cta-strip {
background: linear-gradient(135deg, #c9a96e 0%, #b8935a 40%, #a07840 100%);
border-radius: 0;
padding: 72px 20px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 16px;
text-align: center;
position: relative;
overflow: hidden;
}
.cta-strip::before {
content: '';
position: absolute;
top: -60px; right: -80px;
width: 320px; height: 320px;
background: rgba(255,255,255,0.07);
border-radius: 50%;
pointer-events: none;
}
.cta-strip::after {
content: '';
position: absolute;
bottom: -80px; left: -60px;
width: 240px; height: 240px;
background: rgba(255,255,255,0.05);
border-radius: 50%;
pointer-events: none;
}
.cta-strip > * { position: relative; z-index: 1; }
.cta-strip h3 { color: #1a1000; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; margin-bottom: 10px; max-width: 700px; }
.cta-strip p { color: rgba(20,10,0,0.72); margin: 0; font-size: 1rem; max-width: 560px; }
.cta-strip-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
/* Primary button: dark navy pill — matches .cta-btn-dark on homepage */
.cta-strip .btn-primary {
background: #0f1e30;
color: #fff;
border: 2px solid #0f1e30;
border-radius: 50px;
padding: 15px 32px;
font-size: 1rem;
font-weight: 700;
box-shadow: 0 4px 20px rgba(0,0,0,0.25);
white-space: nowrap;
}
.cta-strip .btn-primary:hover { background: #1a2f48; border-color: #1a2f48; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.35); }
/* Secondary / outline button — matches .cta-btn-outline-dark on homepage */
.cta-strip .btn-secondary {
background: rgba(255,255,255,0.18);
color: #1a1000;
border: 2px solid rgba(20,10,0,0.4);
border-radius: 50px;
padding: 13px 32px;
font-size: 1rem;
font-weight: 700;
white-space: nowrap;
}
.cta-strip .btn-secondary:hover { background: rgba(255,255,255,0.32); transform: translateY(-2px); }
.cta-strip .btn-wa {
background: rgba(255,255,255,0.18);
color: #1a1000;
border: 2px solid rgba(20,10,0,0.4);
border-radius: 50px;
padding: 13px 32px;
font-size: 1rem;
font-weight: 700;
white-space: nowrap;
}
.cta-strip .btn-wa:hover { background: rgba(255,255,255,0.32); transform: translateY(-2px); }

/* Process steps full-width */
.svc-steps-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 28px;
margin-top: 36px;
}
.svc-step-card {
background: #fff;
border: 1px solid var(--color-border);
border-radius: var(--radius-lg);
padding: 28px 24px;
box-shadow: var(--shadow);
position: relative;
}
.svc-step-card-num {
width: 42px; height: 42px;
border-radius: 50%;
background: var(--color-secondary);
color: var(--color-primary);
font-weight: 900;
font-size: 1.1rem;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 16px;
}
.svc-step-card h3 { font-size: 1rem; margin-bottom: 10px; }
.svc-step-card p { font-size: 0.92rem; color: var(--color-text-light); line-height: 1.65; margin: 0; }

/* Success cases grid */
.cases-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 24px;
margin-top: 36px;
}
.case-card {
background: #fff;
border: 1px solid var(--color-border);
border-top: 3px solid var(--color-secondary);
border-radius: var(--radius-lg);
padding: 28px;
box-shadow: var(--shadow);
display: flex;
flex-direction: column;
transition: var(--transition);
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.case-card-type {
font-size: 0.76rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 1px;
color: var(--color-secondary);
margin-bottom: 10px;
}
.case-card h3 { font-size: 1rem; margin-bottom: 10px; }
.case-card p { font-size: 0.91rem; color: var(--color-text-light); line-height: 1.65; flex: 1; margin-bottom: 18px; }
.case-card-result {
display: inline-flex;
align-items: center;
gap: 7px;
background: rgba(201,162,109,0.12);
color: #8b6a30;
font-size: 0.84rem;
font-weight: 700;
padding: 7px 14px;
border-radius: 20px;
align-self: flex-start;
}
.case-card-result svg { width: 14px; height: 14px; fill: var(--color-secondary); flex-shrink: 0; }

/* Testimonials — Google style */
.reviews-header { text-align: center; margin-bottom: 40px; }
.google-badge {
display: inline-flex;
align-items: center;
gap: 14px;
background: #fff;
border: 1px solid var(--color-border);
border-radius: var(--radius-lg);
padding: 14px 24px;
box-shadow: var(--shadow);
margin-bottom: 20px;
}
.google-g { width: 28px; height: 28px; flex-shrink: 0; }
.google-badge-score { font-size: 2rem; font-weight: 900; color: var(--color-text); line-height: 1; }
.google-badge-right { display: flex; flex-direction: column; gap: 2px; }
.google-stars { color: #FBBC04; font-size: 1rem; letter-spacing: 2px; }
.google-count { font-size: 0.82rem; color: var(--color-text-muted); }
.reviews-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
}
.review-card {
background: #fff;
border: 1px solid var(--color-border);
border-radius: var(--radius-lg);
padding: 24px;
box-shadow: var(--shadow);
display: flex;
flex-direction: column;
gap: 12px;
}
.review-card-head {
display: flex;
align-items: center;
gap: 12px;
}
.review-avatar {
width: 42px; height: 42px;
border-radius: 50%;
background: var(--color-primary);
color: #fff;
font-weight: 800;
font-size: 1rem;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.review-meta { flex: 1; min-width: 0; }
.review-name { font-weight: 700; font-size: 0.93rem; color: var(--color-text); }
.review-date { font-size: 0.8rem; color: var(--color-text-muted); }
.review-g { width: 18px; height: 18px; flex-shrink: 0; }
.review-stars { color: #FBBC04; font-size: 0.95rem; letter-spacing: 1px; }
.review-text { font-size: 0.91rem; color: var(--color-text-light); line-height: 1.7; margin: 0; flex: 1; }

/* FAQ full-width */
.faq-section-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
margin-top: 32px;
}

/* Final CTA section */
.final-cta-box {
background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
border-radius: var(--radius-lg);
padding: 60px 48px;
text-align: center;
color: #fff;
}
.final-cta-box h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 16px; }
.final-cta-box p { color: rgba(255,255,255,0.82); font-size: 1.05rem; max-width: 560px; margin: 0 auto 32px; }
.final-cta-btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* Trust bar (3 cols between sections) */
.trust-bar {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 1px;
background: var(--color-border);
border: 1px solid var(--color-border);
border-radius: var(--radius-lg);
overflow: hidden;
}
.trust-bar-item {
background: #fff;
padding: 20px 16px;
text-align: center;
font-size: 0.88rem;
font-weight: 700;
color: var(--color-text);
line-height: 1.4;
}
.trust-bar-item span { display: block; font-size: 1.4rem; font-weight: 900; color: var(--color-secondary); }

/* ============================
RESPONSIVE — SERVICE PAGES
============================ */
@media (max-width: 1023px) {
.svc-intro-grid { grid-template-columns: 1fr; gap: 32px; }
.svc-trust-box { position: static; }
.reviews-grid { grid-template-columns: repeat(2, 1fr); }
.faq-section-grid { grid-template-columns: 1fr; }
.trust-bar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
.reviews-grid { grid-template-columns: 1fr; }
.svc-steps-grid { grid-template-columns: 1fr; }
.cta-strip { padding: 48px 20px; }
.cta-strip-actions { width: 100%; max-width: 400px; flex-direction: column; }
.cta-strip-actions .btn { justify-content: center; }
.final-cta-box { padding: 40px 24px; }
.trust-bar { grid-template-columns: repeat(2, 1fr); }
}

/* Review card Google G fix */
.review-card-head svg{width:20px!important;height:20px!important;flex-shrink:0;margin-left:auto}

/* ═══════════════════════════════════════════
LOGO IMAGE STYLES
═══════════════════════════════════════════ */
.logo-img-link { display:flex; align-items:center; text-decoration:none; }
.nav-logo-img { width:72px; height:72px; object-fit:contain; border-radius:50%; transition:transform 0.3s ease; filter:drop-shadow(0 2px 8px rgba(0,0,0,0.3)); }
.nav-logo-img:hover { transform:scale(1.05); }
.footer-logo-img { width:64px; height:64px; object-fit:contain; border-radius:50%; opacity:0.9; }

/* ═══════════════════════════════════════════
CTA SECTION — PREMIUM STYLE (foto 2 ref)
═══════════════════════════════════════════ */
.dynamic-cta {
background: linear-gradient(135deg, #c9a96e 0%, #b8935a 40%, #a07840 100%);
position: relative;
padding: 72px 20px;
overflow: hidden;
}
.dynamic-cta::before {
content:'';
position:absolute;
top:-60px; right:-80px;
width:320px; height:320px;
background: rgba(255,255,255,0.07);
border-radius:50%;
pointer-events:none;
}
.dynamic-cta::after {
content:'';
position:absolute;
bottom:-80px; left:-60px;
width:240px; height:240px;
background: rgba(255,255,255,0.05);
border-radius:50%;
pointer-events:none;
}
.cta-content-wrapper {
text-align: center;
max-width: 720px;
margin: 0 auto;
position: relative;
z-index: 1;
}
.cta-content-wrapper h2 {
font-size: clamp(1.8rem, 4vw, 2.8rem);
font-weight: 800;
color: #1a1000;
margin-bottom: 18px;
line-height: 1.2;
}
.cta-content-wrapper p {
font-size: 1.05rem;
color: rgba(20,10,0,0.75);
max-width: 580px;
margin: 0 auto 36px;
line-height: 1.7;
}
.cta-btns {
display: flex;
gap: 16px;
justify-content: center;
flex-wrap: wrap;
align-items: center;
}
/* Dark pill button (primary) */
.cta-btn-dark {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 10px;
padding: 15px 32px;
background: #0f1e30;
color: #fff;
font-size: 1rem;
font-weight: 700;
border-radius: 50px;
text-decoration: none;
border: 2px solid #0f1e30;
transition: all 0.3s ease;
letter-spacing: 0.02em;
white-space: nowrap;
box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.cta-btn-dark:hover {
background: #1a2f48;
border-color: #1a2f48;
transform: translateY(-2px);
box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}
/* Outline pill button (secondary) */
.cta-btn-outline-dark {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 10px;
padding: 13px 30px;
background: transparent;
color: #1a1000;
font-size: 1rem;
font-weight: 700;
border-radius: 50px;
text-decoration: none;
border: 2px solid rgba(20,10,0,0.6);
transition: all 0.3s ease;
letter-spacing: 0.02em;
white-space: nowrap;
}
.cta-btn-outline-dark:hover {
background: rgba(20,10,0,0.08);
border-color: #1a1000;
transform: translateY(-2px);
}

/* TOP BAR — updated for phone + email + address */
.top-info-list { display:flex; gap:20px; flex-wrap:wrap; }
.top-info-list li { font-size:0.82rem; }

/* ═══════════════════════════════════════════
RESPONSIVE OVERRIDES FOR NEW STYLES
═══════════════════════════════════════════ */
@media (max-width: 640px) {
.cta-btns { flex-direction: column; align-items: stretch; }
.cta-btn-dark, .cta-btn-outline-dark { width: 100%; justify-content: center; }
.top-info-list { gap: 10px; }
.top-info-list li:last-child { display: none; }
}

/* ═══════════════════════════════════════════
FOOTER BRAND COLUMN WRAPPER
═══════════════════════════════════════════ */
.footer-brand-col {
display: flex;
flex-direction: column;
}

/* ═══════════════════════════════════════════
HERO 2-COLUMN WITH CONTACT FORM
═══════════════════════════════════════════ */
.hero-content-grid {
position: relative;
z-index: 1;
display: grid;
grid-template-columns: 1fr 420px;
gap: 48px;
align-items: center;
width: 100%;
padding-block: 56px;
}
.hero-text {
display: flex;
flex-direction: column;
}
.hero-form-card {
background: rgba(255,255,255,0.97);
border-radius: 12px;
padding: 32px 28px;
box-shadow: 0 24px 64px rgba(0,0,0,0.35);
position: relative;
}
.hero-form-card h3 {
color: var(--color-primary);
font-size: 1.3rem;
margin-bottom: 4px;
font-family: var(--font-heading);
}
.hero-form-card .form-top-note {
font-size: 0.8rem;
color: var(--color-text-muted);
margin-bottom: 18px;
}
.hero-form-card input,
.hero-form-card select,
.hero-form-card textarea {
width: 100%;
padding: 10px 14px;
border: 1.5px solid var(--color-border);
border-radius: 6px;
font-size: 0.93rem;
font-family: var(--font-base);
outline: none;
transition: border-color 0.2s;
color: var(--color-text);
background: #fff;
}
.hero-form-card input:focus,
.hero-form-card select:focus,
.hero-form-card textarea:focus {
border-color: var(--color-secondary);
box-shadow: 0 0 0 3px rgba(201,162,109,0.15);
}
.hero-form-card textarea { resize: vertical; min-height: 72px; }
.hero-form-submit {
width: 100%;
background: var(--color-secondary);
color: var(--color-primary);
border: none;
padding: 13px;
border-radius: 6px;
font-size: 0.97rem;
font-weight: 700;
cursor: pointer;
transition: background 0.2s, transform 0.2s;
font-family: var(--font-base);
letter-spacing: 0.01em;
}
.hero-form-submit:hover {
background: var(--color-secondary-dark);
transform: translateY(-1px);
}
.hero-form-disclaimer {
font-size: 0.77rem;
color: var(--color-text-muted);
text-align: center;
margin-top: 10px;
line-height: 1.4;
}
.hero-form-success {
display: none;
text-align: center;
padding: 20px;
}
.hero-form-success svg { fill: var(--color-success); width: 40px; height: 40px; margin-bottom: 12px; }
.hero-form-success p { color: var(--color-primary); font-weight: 600; }

/* Hero service highlights list */
.hero-services-list {
list-style: none;
padding: 0;
margin: 0 0 24px;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 9px 20px;
}
.hero-services-list li {
display: flex;
align-items: flex-start;
gap: 8px;
color: rgba(255,255,255,0.88);
font-size: 0.86rem;
line-height: 1.35;
}
.hero-services-list li svg {
width: 15px;
height: 15px;
fill: var(--color-secondary);
flex-shrink: 0;
margin-top: 2px;
}
.hero-services-list li strong { color: #fff; font-weight: 700; }

/* Compact form: 2-column row for name+phone */
.hf-row2 {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
margin-bottom: 10px;
}
.hf-row2 input { width: 100%; box-sizing: border-box; }

/* Spacing for direct-child form elements (no .form-group wrapper) */
#hero-form > input,
#hero-form > select,
#hero-form > textarea { margin-bottom: 10px; }
#hero-form > textarea { resize: vertical; min-height: 60px; max-height: 100px; }

.hero-form-card { padding: 26px 24px; }

@media (max-width: 1100px) {
.hero-content-grid { grid-template-columns: 1fr 360px; gap: 32px; }
}
@media (max-width: 900px) {
.hero-content-grid { grid-template-columns: 1fr; }
.hero-form-card { display: none; }
.hero-services-list { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
FLOATING PHONE CALL BUTTON
═══════════════════════════════════════════ */
#phone-float {
position: fixed;
bottom: 80px;
right: 24px;
width: 52px;
height: 52px;
background: var(--color-secondary);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 4px 18px rgba(201,162,109,0.5);
z-index: 997;
transition: transform 0.25s, box-shadow 0.25s;
text-decoration: none;
}
#phone-float:hover {
transform: scale(1.12);
box-shadow: 0 8px 28px rgba(201,162,109,0.6);
}
#phone-float svg {
width: 26px;
height: 26px;
fill: var(--color-primary);
}
@media (max-width: 767px) {
#phone-float { bottom: 80px; }
}

/* ═══════════════════════════════════════════
PRE-FOOTER GOLD CTA (foto 2 ref)
═══════════════════════════════════════════ */
.pre-footer-cta {
background: var(--color-secondary);
padding: 72px 20px;
text-align: center;
position: relative;
overflow: hidden;
}
.pre-footer-cta::before {
content: '';
position: absolute;
inset: 0;
background: radial-gradient(ellipse at 70% 50%, rgba(255,255,255,0.18) 0%, transparent 60%),
            radial-gradient(ellipse at 20% 80%, rgba(0,0,0,0.08) 0%, transparent 50%);
pointer-events: none;
}
.pre-footer-cta .container { position: relative; z-index: 1; }
.pre-footer-cta h2 {
color: var(--color-primary);
font-size: clamp(1.6rem, 3.5vw, 2.4rem);
margin-bottom: 12px;
}
.pre-footer-cta p {
color: rgba(10,10,10,0.68);
font-size: 1.05rem;
max-width: 560px;
margin: 0 auto 32px;
line-height: 1.6;
}
.pre-footer-cta-btns {
display: flex;
gap: 16px;
justify-content: center;
flex-wrap: wrap;
}
@media (max-width: 480px) {
.pre-footer-cta { padding: 52px 20px; }
.pre-footer-cta-btns { flex-direction: column; align-items: center; }
.pre-footer-cta-btns .cta-btn-dark,
.pre-footer-cta-btns .cta-btn-outline-dark { width: 100%; max-width: 320px; justify-content: center; }
}

/* ═══════════════════════════════════════════
BLUE CTA BUTTON
═══════════════════════════════════════════ */
.btn-blue {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
background: #1a3a5c;
color: #fff;
border: 2px solid #1a3a5c;
padding: 13px 28px;
border-radius: var(--radius-full);
font-weight: 700;
font-size: 0.95rem;
letter-spacing: 0.01em;
transition: var(--transition);
text-decoration: none;
white-space: nowrap;
}
.btn-blue:hover {
background: #0d2540;
border-color: #0d2540;
transform: translateY(-2px);
box-shadow: 0 8px 24px rgba(13,37,64,0.3);
}
.btn-blue svg { width: 18px; height: 18px; fill: #fff; }

/* ═══════════════════════════════════════════
FORM RESPONSE STATES
═══════════════════════════════════════════ */
.form-msg {
padding: 12px 16px;
border-radius: 6px;
font-size: 0.9rem;
font-weight: 600;
margin-top: 12px;
display: none;
}
.form-msg.success { background: #d1fae5; color: #065f46; display: block; }
.form-msg.error   { background: #fee2e2; color: #991b1b; display: block; }

/* ═══════════════════════════════════════════
FOOTER GRID FIX — 4 columns + responsive
═══════════════════════════════════════════ */
@media (min-width: 768px) {
.footer-grid {
grid-template-columns: 2fr 1fr 1fr 1fr;
}
}


/* Email float button positioning fix */
.email-float {
bottom: 140px;
}
#email-float {
bottom: 140px !important;
}
#scroll-top {
bottom: 24px;
right: 24px;
}

/* ═══════════════════════════════════════════
HEADER PHONE — URGENCIAS STYLE
═══════════════════════════════════════════ */
.header-phone .phone-urgencias {
font-size: 0.7rem;
opacity: 0.8;
display: block;
line-height: 1;
margin-bottom: 1px;
text-transform: uppercase;
letter-spacing: 0.06em;
}
.header-phone .phone-num {
font-size: 0.95rem;
font-weight: 700;
display: block;
line-height: 1.2;
}

/* ═══════════════════════════════════════════
SVG SIZE FIXES
═══════════════════════════════════════════ */
/* Blog card "Leer artículo" / "Ver especialidad" arrow SVGs */
.blog-card a svg,
.section-pad article a svg {
width: 16px;
height: 16px;
display: inline-block;
vertical-align: middle;
flex-shrink: 0;
}
/* Blog article sidebar trust list icons */
aside [style*="font-size:0.87rem"] svg {
width: 14px;
height: 14px;
display: inline-block;
vertical-align: middle;
fill: var(--color-secondary) !important;
}

/* ═══════════════════════════════════════════
HOMEPAGE — ABOGADO EN MADRID + COBERTURA
═══════════════════════════════════════════ */
.madrid-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 24px;
margin-top: 40px;
}
.madrid-card {
background: #fff;
border: 1px solid var(--color-border);
border-radius: var(--radius-lg);
padding: 28px 24px;
display: flex;
gap: 18px;
align-items: flex-start;
transition: var(--transition);
}
.madrid-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.madrid-card-icon {
width: 44px;
height: 44px;
border-radius: 10px;
background: var(--color-primary);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.madrid-card-icon svg { width: 22px; height: 22px; fill: var(--color-secondary); }
.madrid-card h3 { font-size: 1rem; margin-bottom: 6px; }
.madrid-card p { font-size: 0.88rem; color: var(--color-text-light); line-height: 1.6; margin: 0; }
.coverage-stats {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16px;
margin-bottom: 16px;
}
.coverage-stat {
padding: 16px;
background: #fff;
border-radius: 8px;
border: 1px solid var(--color-border);
text-align: center;
}
.coverage-stat-num { font-size: 1.4rem; font-weight: 900; color: var(--color-primary); }
.coverage-stat-label { font-size: 0.75rem; color: var(--color-text-muted); margin-top: 4px; }
.coverage-highlight {
padding: 16px 20px;
background: var(--color-secondary);
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
gap: 4px;
}
.coverage-highlight strong { color: #fff; font-size: 1rem; }
.coverage-highlight span { color: rgba(255,255,255,0.85); font-size: 0.82rem; }
@media (max-width: 767px) {
.coverage-stats { grid-template-columns: repeat(3, 1fr); }
.madrid-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   CORRECCIONES SVG SERVIDOR — SEGURIDAD GLOBAL
   Evita expansión de SVG inline sin clase en Raiola/Apache
═══════════════════════════════════════════ */

/* Google badge SVG (logo Google de colores) */
.google-badge > svg { width: 28px !important; height: 28px !important; flex-shrink: 0; }

/* Stats section icons */
.stat-item > svg { width: 40px; height: 40px; display: block; margin: 0 auto 20px; }

/* Footer contact list icons */
.footer-contact-list li svg { width: 16px; height: 16px; fill: var(--color-secondary); flex-shrink: 0; }

/* Mobile CTA bar SVG */
.mobile-cta-bar svg { width: 20px; height: 20px; fill: currentColor; }
.cta-call svg, .cta-whatsapp svg { width: 20px !important; height: 20px !important; }

/* Email float SVG */
.email-float svg { width: 18px; height: 18px; }

/* Hero badge icon */
.hero-badge svg { width: 16px; height: 16px; fill: currentColor; }

/* Step numbers section */
.process-steps .step-number { font-family: var(--font-base); }

/* Cualquier SVG dentro de un enlace inline */
a > svg { display: inline-block; vertical-align: middle; }

/* SVG dentro de botones tipo cta */
.cta-btn-dark svg,
.cta-btn-outline-dark svg,
.btn-blue svg { width: 18px !important; height: 18px !important; fill: currentColor; }

/* Footer social icons */
.footer-links li svg { width: 14px; height: 14px; }
