/* ============================================
   CRITICAL CSS - Zaragonjg Mudanzas Madrid
   Carga inicial para renderizado rápido
   ============================================ */

:root {
    --primary: #1a3a5c;
    --primary-dark: #0f2440;
    --primary-light: #2a5a8c;
    --accent: #e85d2c;
    --accent-hover: #d04d1e;
    --accent-light: #fdf0ea;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --gray-100: #f0f2f5;
    --gray-200: #e2e6ea;
    --gray-300: #c4c9d0;
    --gray-500: #6c757d;
    --gray-700: #495057;
    --gray-900: #212529;
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --container: 1200px;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    transition: box-shadow var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo img {
    height: 44px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav a {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    position: relative;
}

.nav a:hover,
.nav a.active {
    color: var(--primary);
    background: var(--gray-100);
}

.nav .btn-nav-cta {
    background: var(--accent);
    color: var(--white) !important;
    padding: 10px 24px;
    font-weight: 600;
}

.nav .btn-nav-cta:hover {
    background: var(--accent-hover);
    color: #f8f9fa !important;
    transform: translateY(-1px);
}

/* Mobile menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 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;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-content h1 span {
    color: var(--accent);
}

.hero-content p {
    font-size: 1.15rem;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.hero-badge svg {
    width: 16px;
    height: 16px;
    fill: var(--accent);
    flex-shrink: 0;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 93, 44, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    color: #f8f9fa;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--primary);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--primary-dark);
    color: #f8f9fa;
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--off-white);
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-500);
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 16px;
}

.service-card .btn {
    margin-top: 8px;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.feature-item {
    text-align: center;
    padding: 32px 20px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    display: block;
}

.feature-icon svg {
    width: 48px;
    height: 48px;
    fill: var(--accent);
}

.feature-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* Districts Grid */
.districts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.district-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
    font-weight: 500;
    color: var(--gray-700);
}

.district-card:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.district-card .district-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.district-card .district-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--primary-light);
}

.district-card:hover .district-icon svg {
    fill: var(--accent);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.testimonial-text {
    font-style: italic;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 16px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.testimonial-name {
    font-weight: 600;
    color: var(--primary);
}

.testimonial-location {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* CTA */
.cta-section {
    background: linear-gradient(135deg, var(--accent) 0%, #c9441a 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 32px;
}

.cta-section .btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
}

.cta-section .btn-outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.15);
    color: #f8f9fa;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand img {
    height: auto;
    width: 160px;
    max-width: 100%;
    margin-bottom: 16px;
    object-fit: contain;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
    transition: color var(--transition);
}

.footer a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 100px 0 16px;
    background: var(--off-white);
    font-size: 0.85rem;
    color: var(--gray-500);
}

.breadcrumbs a {
    color: var(--primary-light);
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumbs .current {
    color: var(--gray-700);
    font-weight: 500;
}

/* Page Header */
.page-header {
    padding: 40px 0 60px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--white);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition);
}

.faq-question:hover {
    background: var(--gray-100);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--accent);
    transition: transform var(--transition);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.faq-item.active .faq-answer {
    padding: 0 24px 20px;
    max-height: 500px;
}

.faq-answer p {
    color: var(--gray-500);
    line-height: 1.7;
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.contact-info p {
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 24px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.contact-detail-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-detail-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--accent);
}

.contact-detail strong {
    display: block;
    color: var(--primary);
    font-size: 0.9rem;
}

.contact-detail span {
    color: var(--gray-500);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232, 93, 44, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-body {
    padding: 24px;
}

.blog-card-category {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.blog-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.blog-card h3 a {
    color: inherit;
}

.blog-card h3 a:hover {
    color: var(--accent);
}

.blog-card p {
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.blog-card-meta {
    font-size: 0.85rem;
    color: var(--gray-500);
    display: flex;
    gap: 16px;
}

/* Content Grid (páginas de distrito y servicio) */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.content-grid img {
    border-radius: var(--radius);
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 28px;
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: all var(--transition);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent);
    position: relative;
}

.pricing-card.featured::before {
    content: 'Recomendado';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--white);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.pricing-card .price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 20px;
}

.pricing-card .price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray-500);
}

.pricing-card ul {
    text-align: left;
    margin-bottom: 24px;
}

.pricing-card ul li {
    padding: 6px 0;
    font-size: 0.95rem;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-card ul li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Blog Article (páginas de blog individual) */
.blog-article {
    max-width: 800px;
    margin: 0 auto;
}

.blog-article h1 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 16px;
    line-height: 1.3;
}

.blog-article h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 32px 0 12px;
}

.blog-article h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin: 24px 0 8px;
}

.blog-article p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: var(--gray-700);
}

.blog-article ul,
.blog-article ol {
    margin: 0 0 20px 24px;
}

.blog-article li {
    margin-bottom: 8px;
    line-height: 1.7;
    color: var(--gray-700);
}

.blog-article a {
    color: var(--accent);
    font-weight: 600;
}

.blog-article a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.blog-article .meta {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.9rem;
    color: var(--gray-500);
}

.blog-article .meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Highlight Box */
.highlight-box {
    background: var(--accent-light);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 24px;
    margin: 24px 0;
}

.highlight-box p {
    margin-bottom: 0;
    font-size: 1rem;
}

.highlight-box strong {
    color: var(--primary);
}

/* ============================================
   RESPONSIVE - Totalmente adaptativo
   ============================================ */

/* Tablets y laptops pequeñas (992px y menos) */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .hero-content p {
        margin: 0 auto 32px;
        max-width: 100%;
    }

    .hero-badges {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        max-height: 300px;
        width: auto;
        max-width: 100%;
    }

    .btn-group {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .content-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
        text-align: center;
    }

    .content-grid .content-text {
        order: 1;
    }

    .content-grid img {
        max-height: 280px;
        width: auto;
        max-width: 100%;
        margin: 0 auto;
    }

    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .cta-section {
        padding: 60px 0;
    }

    .section {
        padding: 60px 0;
    }

    .page-header {
        padding: 32px 0 48px;
    }

    .blog-article {
        padding: 0 16px;
    }

    .blog-article .meta {
        flex-wrap: wrap;
        gap: 8px 16px;
    }

    .blog-article .meta span {
        font-size: 0.85rem;
    }

    .highlight-box {
        padding: 20px !important;
    }
}

/* Móviles grandes / tablets pequeñas (768px y menos) */
@media (max-width: 768px) {
    .header-inner {
        height: 60px;
    }

    .logo img {
        height: 34px;
    }

    .nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 12px 16px;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow);
        gap: 2px;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .nav.open a {
        width: 100%;
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    .nav.open .btn-nav-cta {
        margin-top: 8px;
        text-align: center;
    }

    .hero {
        padding: 100px 0 50px;
    }

    .hero-content h1 {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-image img {
        max-height: 220px;
    }

    .section {
        padding: 48px 0;
    }

    .section-title {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 32px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 28px 20px;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .feature-item {
        padding: 24px 16px;
    }

    .feature-item h3 {
        font-size: 1rem;
    }

    .feature-item p {
        font-size: 0.9rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 24px 20px;
    }

    .districts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .district-card {
        padding: 14px 16px;
        font-size: 0.9rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer {
        padding: 40px 0 0;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        gap: 32px;
    }

    .contact-detail {
        gap: 10px;
    }

    .contact-detail-icon {
        width: 36px;
        height: 36px;
    }

    .contact-detail-icon svg {
        width: 18px;
        height: 18px;
    }

    .breadcrumbs {
        padding: 80px 0 12px;
        font-size: 0.8rem;
    }

    .page-header h1 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .page-header p {
        font-size: 1rem;
    }

    .cta-section {
        padding: 48px 0;
    }

    .cta-section h2 {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
    }

    .cta-section p {
        font-size: 1rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .pricing-card {
        padding: 28px 20px !important;
    }

    .content-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .content-grid img {
        max-height: 200px;
    }

    .blog-article h1 {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
    }

    .blog-article h2 {
        font-size: clamp(1.2rem, 4vw, 1.4rem);
    }

    .blog-article .meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .highlight-box {
        padding: 16px !important;
        margin: 20px 0 !important;
    }

    .highlight-box p {
        font-size: 0.95rem;
    }

    .faq-question {
        padding: 16px 18px;
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 0 18px;
    }

    .faq-item.active .faq-answer {
        padding: 0 18px 16px;
    }

    .container {
        padding: 0 16px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-card-body {
        padding: 20px;
    }

    .blog-card-img {
        height: 180px;
    }
}

/* Móviles pequeños (480px y menos) */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .hero {
        padding: 90px 0 40px;
    }

    .hero-content h1 {
        font-size: clamp(1.3rem, 7vw, 1.6rem);
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .hero-badges {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 14px;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-image img {
        max-height: 180px;
    }

    .btn-group {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100%;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: clamp(1.2rem, 6vw, 1.5rem);
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .feature-item {
        padding: 20px 14px;
    }

    .districts-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .district-card {
        padding: 12px 14px;
        font-size: 0.85rem;
    }

    .services-grid {
        gap: 16px;
    }

    .service-card {
        padding: 24px 16px;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .testimonials-grid {
        gap: 16px;
    }

    .testimonial-card {
        padding: 20px 16px;
    }

    .cta-section {
        padding: 40px 0;
    }

    .cta-section h2 {
        font-size: clamp(1.2rem, 6vw, 1.5rem);
    }

    .cta-section p {
        font-size: 0.95rem;
    }

    .footer-grid {
        gap: 24px;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-bottom {
        font-size: 0.8rem;
    }

    .page-header {
        padding: 24px 0 36px;
    }

    .page-header h1 {
        font-size: clamp(1.3rem, 6vw, 1.6rem);
    }

    .page-header p {
        font-size: 0.95rem;
    }

    .breadcrumbs {
        padding: 72px 0 10px;
        font-size: 0.75rem;
    }

    .blog-article h1 {
        font-size: clamp(1.2rem, 6vw, 1.5rem);
    }

    .blog-article h2 {
        font-size: clamp(1.1rem, 5vw, 1.3rem);
    }

    .blog-article p,
    .blog-article li {
        font-size: 0.95rem;
    }

    .highlight-box {
        padding: 14px !important;
    }

    .highlight-box p {
        font-size: 0.9rem;
    }

    .faq-question {
        padding: 14px 14px;
        font-size: 0.9rem;
    }

    .faq-answer {
        padding: 0 14px;
    }

    .faq-item.active .faq-answer {
        padding: 0 14px 14px;
    }

    .contact-detail {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .contact-detail-icon {
        width: 32px;
        height: 32px;
    }

    .contact-detail-icon svg {
        width: 16px;
        height: 16px;
    }

    .pricing-card {
        padding: 24px 16px !important;
    }

    .pricing-card h3 {
        font-size: 1.2rem;
    }

    .pricing-card .price {
        font-size: 1.8rem !important;
    }

    .blog-card-img {
        height: 160px;
    }

    .blog-card-body {
        padding: 16px;
    }

    .blog-card h3 {
        font-size: 1rem;
    }

    .logo img {
        height: 30px;
    }

    .header-inner {
        height: 56px;
    }

    .nav.open {
        top: 56px;
        padding: 10px 12px;
    }

    .nav.open a {
        padding: 10px 14px;
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px 14px;
        font-size: 0.95rem;
    }

    .content-grid img {
        max-height: 160px;
    }
}

/* Móviles muy pequeños (360px y menos) */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

    .hero-content h1 {
        font-size: 1.2rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 5px 12px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .feature-item h3 {
        font-size: 0.95rem;
    }

    .feature-item p {
        font-size: 0.85rem;
    }

    .district-card {
        font-size: 0.8rem;
        padding: 10px 12px;
    }

    .logo img {
        height: 26px;
    }

    .header-inner {
        height: 50px;
    }

    .nav.open {
        top: 50px;
    }
}

/* ============================================
   STICKY FLOATING BUTTONS - WhatsApp & Llamada
   ============================================ */
.floating-buttons {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    position: relative;
}

/* Animación de onda (pulse) */
.floating-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    z-index: -1;
    animation: pulse-wave 2s ease-out infinite;
}

.floating-btn-whatsapp::before {
    background: rgba(37, 211, 102, 0.4);
}

.floating-btn-call::before {
    background: rgba(232, 93, 44, 0.4);
}

@keyframes pulse-wave {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.25);
        opacity: 0.2;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.floating-btn:hover::before {
    animation: none;
    opacity: 0;
}

.floating-btn:active {
    transform: scale(0.95);
}

.floating-btn-whatsapp {
    background: #25D366;
    color: #fff;
}

.floating-btn-whatsapp:hover {
    background: #20bd5a;
    color: #fff;
}

.floating-btn-whatsapp svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.floating-btn-call {
    background: var(--accent);
    color: #fff;
}

.floating-btn-call:hover {
    background: var(--accent-hover);
    color: #fff;
}

.floating-btn-call svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

/* Tooltip */
.floating-btn .btn-tooltip {
    position: absolute;
    right: 64px;
    background: var(--gray-900);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-family: var(--font-sans);
}

.floating-btn:hover .btn-tooltip {
    opacity: 1;
}

.floating-btn .btn-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 6px solid var(--gray-900);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

/* Ocultar botón de llamada en desktop */
@media (min-width: 769px) {
    .floating-btn-call {
        display: none;
    }
}

/* Ajuste para móvil */
@media (max-width: 480px) {
    .floating-buttons {
        bottom: 16px;
        right: 16px;
        gap: 10px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
    }

    .floating-btn-whatsapp svg {
        width: 24px;
        height: 24px;
    }

    .floating-btn-call svg {
        width: 22px;
        height: 22px;
    }

    .floating-btn .btn-tooltip {
        display: none;
    }
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: var(--gray-900);
    color: var(--white);
    padding: 16px 24px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.5;
}

.cookie-banner-content {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.cookie-banner-content p {
    flex: 1 1 300px;
    margin: 0;
    color: var(--gray-200);
}

.cookie-banner-content p a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-banner-content p a:hover {
    color: var(--accent-hover);
}

.cookie-banner-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.cookie-banner-buttons .btn {
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
}

.cookie-banner-buttons .btn-primary {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.cookie-banner-buttons .btn-primary:hover {
    background: var(--accent-hover);
    color: var(--white);
    border-color: var(--accent-hover);
}

.cookie-banner-buttons .btn-outline {
    background: transparent;
    color: var(--gray-300);
    border-color: var(--gray-600);
}

.cookie-banner-buttons .btn-outline:hover {
    background: var(--gray-700);
    color: var(--white);
    border-color: var(--gray-500);
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 12px 16px;
    }

    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .cookie-banner-content p {
        flex: 1 1 auto;
        font-size: 13px;
    }

    .cookie-banner-buttons {
        justify-content: center;
    }

    .cookie-banner-buttons .btn {
        font-size: 13px;
        padding: 8px 16px;
        flex: 1;
    }
}

@media (max-width: 480px) {
    .cookie-banner-buttons {
        flex-direction: column;
    }

    .cookie-banner-buttons .btn {
        width: 100%;
    }
}

/* --- Accessibility: Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --- Accessibility: Focus Visible Styles --- */
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Remove outline for mouse clicks (keep for keyboard) */
:focus:not(:focus-visible) {
    outline: none;
}

/* Ensure skip-to-content link (if added) is accessible */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--primary);
    color: var(--white);
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   SOCIAL LINKS - Footer
   ============================================ */
.social-links {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

/* Especificidad aumentada para vencer a .footer a (0,2,1 vs 0,2,0) */
.footer .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    overflow: hidden;
    flex-shrink: 0;
}

.footer .social-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
    color: #f5f0e8;
    box-shadow: 0 4px 15px rgba(232, 93, 44, 0.4);
}

.footer .social-link svg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: currentColor;
}

/* ============================================
   FLOATING SHARE BUTTON
   ============================================ */
.floating-btn-share {
    background: var(--white) !important;
    color: var(--gray-900) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
}

.floating-btn-share:hover {
    background: var(--accent) !important;
    color: var(--white) !important;
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(232, 93, 44, 0.4) !important;
}

/* ============================================
   SHARE MODAL
   ============================================ */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.share-modal.active {
    display: flex;
    opacity: 1;
}

.share-modal-content {
    background: var(--white);
    border-radius: var(--radius);
    max-width: 420px;
    width: 100%;
    padding: 28px;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.share-modal.active .share-modal-content {
    transform: scale(1);
}

.share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.share-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.share-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-500);
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), color var(--transition);
}

.share-modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.share-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    cursor: pointer;
    transition: all var(--transition);
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-900);
    text-align: left;
    width: 100%;
}

.share-option:hover {
    border-color: transparent;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-option svg {
    flex-shrink: 0;
}

.share-option.facebook:hover {
    background: #1877f2;
}

.share-option.twitter:hover {
    background: #000000;
}

.share-option.whatsapp:hover {
    background: #25d366;
}

.share-option.linkedin:hover {
    background: #0a66c2;
}

.share-option.telegram:hover {
    background: #0088cc;
}

.share-option.email:hover {
    background: var(--gray-700);
}

.share-option.copy:hover {
    background: var(--primary);
}

@media (max-width: 480px) {
    .share-options {
        grid-template-columns: 1fr;
    }

    .share-modal-content {
        padding: 20px;
    }
}