/* 
 * PRESUPUESTALO - CSS UNIFICADO Y LIMPIO
 * Reemplaza todos los otros CSS para evitar conflictos
 * Author: Assistant
 * Date: 2025-07-22
 */

/* ==================== VARIABLES CSS - PALETA PROFESIONAL ==================== */
:root {
    /* Paleta profesional según especificaciones del proyecto */
    --primary-color: #005F73;        /* Azul petróleo - Profesionalismo y confianza */
    --secondary-color: #94D2BD;      /* Verde lima suave - Frescura y modernidad */
    --accent-color: #EE9B00;         /* Naranja suave - Energía para CTAs */
    --text-primary: #2c3e50;         /* Texto principal oscuro */
    --text-secondary: #6c757d;       /* Texto secundario */
    --white: #FFFFFF;                /* Blanco puro */
    --background-light: #F4F4F4;     /* Gris claro neutro */
    --background-neutral: #f8fafc;   /* Fondo alternativo */
    --border-light: #e1e8ed;
    
    /* Hover states - variaciones más oscuras de los colores principales */
    --primary-hover: #004A59;        /* Primary hover - 20% más oscuro */
    --accent-hover: #d68900;         /* Accent hover - 15% más oscuro */
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,95,115,0.1);
    --shadow-md: 0 4px 12px rgba(0,95,115,0.15);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #005F73, #94D2BD);
    --gradient-accent: linear-gradient(135deg, #005F73, #EE9B00);
}

/* ==================== RESET Y BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ELIMINAR SUBRAYADOS COMPLETAMENTE - REGLA ÚNICA */
a, a:hover, a:focus, a:active, a:visited, a:link {
    text-decoration: none !important;
    border-bottom: none !important;
    outline: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== HEADER Y NAVEGACIÓN ==================== */

/* `sticky`, no `fixed`: así el banner de arriba puede ocupar su sitio en el
   flujo sin taparla, y la cabecera se pega sola al llegar al borde. Como está
   en el flujo, el `<body>` YA no necesita `padding-top` — antes se lo ponía el
   JS a mano y el contenido pegaba un salto al cargar. Funciona porque `.header`
   es hijo directo de `<body>`: dentro de un wrapper que terminase antes, dejaría
   de pegarse a mitad de página. */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 9998;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    height: 70px;
    overflow: visible;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo-img {
    height: 45px;
    width: auto;
    display: block;
    transition: transform 0.2s ease;
    /* Aspect ratio del logo para evitar CLS: 191x45 */
    aspect-ratio: 191 / 45;
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: var(--background-light);
    color: var(--primary-color);
}
.nav-link--planes {
    color: #ff6b35;
    font-weight: 600;
}
.nav-link--planes:hover {
    color: #d63200;
    background: #fff5f0;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9999;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 16px;
    color: var(--text-primary);
    transition: background 0.2s ease;
}

.dropdown-item:hover {
    background: var(--background-light);
}

/* Profesionales — submenú anidado (tipos > servicios en inicio) */
.dropdown--profesionales {
    min-width: 280px;
    max-width: min(920px, 94vw);
    max-height: 72vh;
    overflow-y: auto;
    padding: 6px 0;
}
.dropdown-group {
    border-bottom: 1px solid var(--border-light);
    padding: 6px 0 8px;
}
.dropdown-group:last-child {
    border-bottom: none;
}
.dropdown-group-title {
    display: block;
    padding: 8px 16px 4px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
}
.dropdown-group-title:hover {
    background: var(--background-light);
}
.dropdown--profesionales .dropdown-item {
    padding-left: 22px;
    font-size: 0.92rem;
}

.auth-buttons {
    display: flex;
    gap: 12px;
    overflow: visible;
    padding: 2px 0;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    line-height: 1.4;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
}

.btn-outline {
    border: none;
    color: var(--white);
    background: var(--primary-color);
    box-sizing: border-box;
}

/* Botón de login específico */
.btn-login {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    line-height: 1.4;
    text-align: center;
    box-sizing: border-box;
}

.btn-login:hover {
    background: var(--primary-hover);
    color: var(--white);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--accent-hover);
}

/* ==================== BREADCRUMBS ==================== */
.breadcrumbs {
    background: var(--background-light);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-light);
}

.breadcrumbs-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb-link {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: var(--primary-color);
}

.breadcrumb-separator {
    color: var(--text-secondary);
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 500;
}

/* ==================== PAGE HEADER ==================== */
.page-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 20px 80px 20px;
    border-bottom: none;
    position: relative;
    overflow: visible;
}

.header-content-main {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.header-text {
    margin-bottom: 30px;
}

.hero-kicker {
    display: inline-block;
    background: rgba(148, 210, 189, 0.2);
    color: var(--secondary-color);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--white);
}

.page-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--white);
    line-height: 1.6;
    opacity: 0.9;
}

.search-box {
    background: var(--white);
    padding: 6px;
    border-radius: 8px;
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.search-input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    outline: none;
    border-radius: 6px;
    color: var(--text-primary);
    background: transparent;
}

.search-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.search-btn:hover {
    background: var(--accent-color);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.quick-categories {
    display: none;
}

.social-proof-cta {
    display: none;
}

/* ==================== SECCIONES DE CONTENIDO ==================== */
.services-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--white);
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-card {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.service-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    display: block;
    transition: transform 0.2s ease;
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    line-height: 1.3;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.4;
    font-size: 0.9rem;
    line-clamp: 2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.service-type {
    background: var(--background-light);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.service-card-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    display: inline-block;
}

.service-card-link:hover {
    color: var(--accent-color);
}

/* ==================== CATEGORÍAS ==================== */

/* Main Content Container */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

@media (max-width: 1024px) {
    .main-content {
        padding: 0 20px;
    }
}

/* Category Header */
.category-header {
    text-align: center;
    padding: 40px 0;
    background: var(--background-light);
}

.category-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.category-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Category Description Section */
.category-description {
    background: var(--background-neutral);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.description-content {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.description-content p {
    margin-bottom: 15px;
}

.description-content strong {
    color: var(--primary-color);
}

/* CTA Section */
.cta-section {
    background: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 50px 0;
    margin: 60px 0;
    border-radius: 12px;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: var(--white);
    color: var(--secondary-color);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* `.cta-button` nace blanco porque en la home va sobre el hero oscuro y en las
   categorías dentro de `.cta-section` (fondo --secondary-color). Pero en las
   fichas de servicio vive dentro de `.price-info`, que es #F4F4F4: blanco sobre
   gris clarísimo = contraste casi nulo, y parecía un botón desactivado.
   Aquí se le da el naranja que la propia paleta define como color de CTA. */
.price-info .cta-button {
    background: var(--accent-color);
    color: var(--white);
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 2px 8px rgba(238, 155, 0, 0.35);
}

.price-info .cta-button:hover {
    background: var(--accent-hover);
    box-shadow: 0 8px 25px rgba(238, 155, 0, 0.45);
}

/* SEO Content Section */
.seo-content {
    margin: 60px 0;
}

.seo-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-item {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid var(--border-light);
}

.benefit-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.benefit-item p {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Service Link */
.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: color 0.2s ease;
}

.service-link:hover {
    color: var(--accent-color);
}
.categories-section {
    background: var(--background-light);
    padding: 40px 20px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    background: var(--background-light);
    padding: 40px 30px;
    border-radius: 16px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    transition: transform 0.2s ease;
}

.category-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.category-card p {
    color: var(--text-secondary);
}

/* ==================== PROFESSIONAL BANNER ==================== */
/* EN EL FLUJO, no fijo. Hasta 2026-08-13 era `position: fixed` y la cabecera
   (también fija, en el mismo `top: 0`) quedaba DEBAJO: el banner la tapaba y no
   se podía usar el menú sin cerrarlo. Había JS para bajar la cabecera, pero no
   funcionaba nunca — ver includes/navigation.php.
   Con el banner en el flujo y la cabecera `sticky`, el navegador los apila solo:
   nada que medir, nada que resincronizar, y al bajar el banner se va y devuelve
   sus ~37px de pantalla. `z-index` solo para que la animación de cierre
   (`translateY(-100%)`) se vea por encima de la cabecera y no por debajo. */
.professional-banner {
    background: var(--gradient-primary);
    padding: 8px 0;
    text-align: center;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 10000;
    transition: all 0.3s ease;
}

.professional-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
}

.professional-banner-text {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
}

.professional-banner-short {
    display: none;
}

@media (max-width: 600px) {
    .professional-banner-long { display: none; }
    .professional-banner-short { display: inline; }
    /* Una sola línea en móvil: con «Cotiza con IA.» el botón saltaba a una
       segunda línea y la barra robaba ~35px de pantalla. El padding derecho
       deja sitio a la ✕, que va en posición absoluta. */
    .professional-banner-content {
        gap: 8px;
        flex-wrap: nowrap;
        padding-right: 36px;
    }
    .professional-banner-text,
    .professional-banner-btn {
        font-size: 0.8rem;
        white-space: nowrap;
    }
    .professional-banner-btn {
        padding: 5px 12px;
    }
}

@media (max-width: 360px) {
    .professional-banner-text,
    .professional-banner-btn {
        font-size: 0.74rem;
    }
    .professional-banner-content {
        gap: 6px;
        padding-right: 38px;
    }
    .professional-banner-btn {
        padding: 5px 10px;
    }
    .professional-banner-close {
        right: 2px;
        font-size: 1.1rem;
        padding: 2px 6px;
    }
}

/* Los móviles más estrechos (320px) no caben en una línea con «¿Profesional?». */
@media (max-width: 340px) {
    .professional-banner-who { display: none; }
}

.professional-banner-btn {
    background: var(--accent-color);
    color: var(--white);
    padding: 6px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(238, 155, 0, 0.3);
}

.professional-banner-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 155, 0, 0.4);
}

.professional-banner-close {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: all 0.2s ease;
}

.professional-banner-close:hover {
    transform: scale(1.2);
    color: var(--accent-color);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--text-primary);
    color: var(--white);
    padding: 40px 20px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-link {
    color: var(--white);
    transition: color 0.3s ease;
    opacity: 0.9;
}

.footer-link:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    margin-bottom: 10px;
    opacity: 0.8;
    font-size: 14px;
}

/* ==================== MENÚ MÓVIL ==================== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 3px;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100%;
    background: var(--white);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.show {
    right: 0;
}

.mobile-menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    padding: 80px 20px 20px;
}

.mobile-nav-item {
    margin-bottom: 15px;
}

.mobile-nav-link {
    display: block;
    padding: 12px 0;
    color: var(--text-primary);
    font-weight: 500;
    border-bottom: 1px solid var(--border-light);
}

.mobile-dropdown {
    margin-left: 15px;
    margin-top: 8px;
}

.mobile-dropdown-item {
    display: block;
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.mobile-auth-buttons {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-auth-buttons .btn {
    text-align: center;
    padding: 12px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 950px) {
    .nav-menu {
        display: none;
    }
    
    /* Mantener solo el botón de Solicitar Presupuesto visible */
    .auth-buttons {
        display: flex;
        gap: 8px;
    }
    
    /* Ocultar el botón de Iniciar Sesión en móvil */
    .btn-login {
        display: none;
    }
    
    /* Ajustar tamaño del botón en móvil */
    .auth-buttons .btn-primary {
        padding: 8px 14px;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    /* LAYOUT GENERAL */
    .page-title {
        font-size: 2rem;
    }
    
    /* LOGO RESPONSIVE */
    .logo-img {
        height: 35px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 10px;
    }
    
    /* CONTAINER MOBILE - SOLO PARA HOME */
    body.home .container {
        padding: 0 15px;
    }
    
    /* CONTENT GRID */
    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-header {
        padding: 20px 0;
    }

    .service-title {
        font-size: 2rem;
    }

    .service-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
    
    /* TARJETAS SERVICIOS MOBILE - SOLO PARA HOME */
    body.home .service-card {
        padding: 20px 15px;
        margin-bottom: 15px;
        min-height: auto;
        text-align: left;
    }
    
    body.home .service-card h3 {
        font-size: 1.1rem;
        line-height: 1.3;
        margin-bottom: 8px;
        font-weight: 600;
    }
    
    body.home .service-card p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 12px;
        line-clamp: 3;
        -webkit-line-clamp: 3;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    body.home .service-meta {
        font-size: 0.8rem;
        margin-bottom: 12px;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-start;
        align-items: center;
    }
    
    body.home .service-type {
        padding: 4px 8px;
        font-size: 0.75rem;
        border-radius: 12px;
        background: var(--secondary-color);
        color: var(--white);
        font-weight: 500;
    }
    
    body.home .service-trade {
        padding: 4px 8px;
        font-size: 0.75rem;
        border-radius: 12px;
        background: var(--primary-color);
        color: var(--white);
        font-weight: 500;
    }
    
    body.home .service-card-link {
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--primary-color);
    }
    
    /* SECCIONES MOBILE - SOLO PARA HOME */
    body.home .services-section {
        padding: 25px 15px;
    }
    
    body.home .section-title {
        font-size: 1.6rem;
        margin-bottom: 6px;
    }
    
    body.home .section-subtitle {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    /* EXTRA SMALL MOBILE */
    .container {
        padding: 0 12px;
    }
    
    /* Botón más compacto en pantallas muy pequeñas */
    .auth-buttons .btn-primary {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    .logo-img {
        height: 30px;
    }
    
    .service-card {
        padding: 14px 10px;
        border-radius: 8px;
    }
    
    .service-card h3 {
        font-size: 0.95rem;
    }
    
    .service-card p {
        font-size: 0.8rem;
    }
    
    .service-meta {
        font-size: 0.7rem;
    }
    
    .services-section {
        padding: 25px 12px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    /* VERY SMALL MOBILE */
    .container {
        padding: 0 10px;
    }
    
    .service-card {
        padding: 12px 8px;
        border-radius: 6px;
    }
    
    .service-card h3 {
        font-size: 0.9rem;
        line-height: 1.1;
    }
    
    .service-card p {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    .service-meta {
        font-size: 0.65rem;
        gap: 2px;
    }
    
    .service-type {
        padding: 1px 4px;
        font-size: 0.65rem;
    }
    
    .service-card-link {
        font-size: 0.8rem;
    }
    
    .services-section {
        padding: 20px 10px;
    }
    
    .section-title {
        font-size: 1.4rem;
        line-height: 1.2;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
    }
} 

/* ==================== SERVICIOS INDIVIDUALES ==================== */

/* Service Header */
.service-header {
    background: var(--background-light);
    text-align: center;
    padding: 30px 0;
    border-bottom: 1px solid var(--border-light);
}

.service-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 20px;
}

.service-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.service-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.meta-item span:first-child {
    font-size: 1.2rem;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.content-card {
    background: var(--white);
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 25px;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 10px;
}

/* Price Info */
.price-info {
    background: var(--background-light);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
}

.price-title {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.price-range {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.price-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Related Services */
.related-services {
    margin: 60px 0 40px 0;
    padding: 40px 0;
    border-top: 1px solid var(--border-light);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.related-item {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.related-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.related-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.related-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* ==================== REVIEWS SECTION ==================== */
.reviews-section {
    padding: 60px 0;
    background: var(--white);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.review-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.review-info {
    flex: 1;
}

.review-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.review-location {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.star {
    font-size: 1.25rem;
    color: #e0e0e0;
}

.star.filled {
    color: #ffc107;
}

.star.half {
    color: #ffc107;
    position: relative;
}

.star.half::after {
    content: '★';
    position: absolute;
    left: 0;
    width: 50%;
    overflow: hidden;
    color: #e0e0e0;
}

.rating-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-left: 5px;
}

.review-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-style: italic;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
}

.review-service {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 500;
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Responsive Reviews */
@media (max-width: 968px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .reviews-section {
        padding: 40px 0;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .review-card {
        padding: 20px;
    }
}

/* ==================== PARA PROFESIONALES SECTION ==================== */
.professionals-section {
    background: var(--primary-color);
    padding: 80px 0;
    margin: 60px 0 0 0;
}

.professionals-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.professionals-text {
    color: var(--white);
}

.professionals-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 40px;
    line-height: 1.2;
}

.professionals-steps {
    margin-bottom: 40px;
}

.step-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.step-number {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
    line-height: 1.3;
}

.step-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
}

.professionals-cta-btn {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.professionals-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
    background: var(--accent-hover);
    color: var(--white);
}

.professionals-image {
    position: relative;
}

/* ── La IA como reclamo para el profesional (portada) ─────────────────
   Colores de las variables del tema: cada país conserva su paleta. */
.pro-ai-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.professionals-section .professionals-title {
    margin-bottom: 12px;
}

.professionals-lead {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 36px;
}

.professionals-section .step-number {
    font-size: 1.4rem;
}

/* Tarjeta de ejemplo del borrador: fuera de .image-container para que su
   overflow:hidden no la recorte. */
.pro-ai-draft {
    position: absolute;
    left: -32px;
    bottom: -28px;
    z-index: 2;
    width: min(320px, 80%);
    background: var(--white);
    color: var(--text-primary);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
    border-top: 4px solid var(--accent-color);
}

.pro-ai-draft__title {
    font-weight: 700;
    font-size: 0.98rem;
    margin: 0 0 10px;
}

.pro-ai-draft__list {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
}

.pro-ai-draft__list li {
    position: relative;
    padding-left: 22px;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 4px;
}

.pro-ai-draft__list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.pro-ai-draft__foot {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

@media (max-width: 968px) {
    .pro-ai-draft {
        /* relative y no static: con static el z-index no aplica y la foto
           tapaba el título de la tarjeta. */
        position: relative;
        left: auto;
        bottom: auto;
        width: auto;
        margin: -48px 16px 0;
    }
}

.image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    /* Reservar espacio para evitar CLS */
    aspect-ratio: 1 / 1;
}

.image-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, rgba(148, 210, 189, 0.2) 0%, transparent 50%);
    transform: rotate(45deg);
    z-index: 1;
}

.professionals-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 0;
}

/* Responsive */
@media (max-width: 968px) {
    .professionals-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .professionals-title {
        font-size: 2rem;
    }
    
    .professionals-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .professionals-section {
        padding: 60px 0;
    }
    
    .professionals-title {
        font-size: 1.75rem;
        margin-bottom: 30px;
    }
    
    .step-item {
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .step-content h3 {
        font-size: 1.1rem;
    }
    
    .step-content p {
        font-size: 0.95rem;
    }
    
    .professionals-cta-btn {
        width: 100%;
        text-align: center;
        padding: 14px 30px;
        font-size: 1rem;
    }
}

/* How It Works Section */
.how-it-works {
    padding: 4rem 0 2rem;
    background: var(--white, #fff);
}
.hiw-block {
    background: var(--background-light, #f8fafc);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
}
.hiw-block--pro {
    background: linear-gradient(135deg, #f0f7fa, #e8f4f8);
    border: 1px solid #d0e8f0;
}
.hiw-subtitle {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color, #005F73);
    margin-bottom: 1.5rem;
}
.hiw-block--pro .hiw-subtitle {
    color: #ff6b35;
}
.hiw-number--pro {
    background: #ff6b35 !important;
}
.hiw-btn--pro {
    background: linear-gradient(135deg, #ff6b35, #e05a20);
    color: white;
    border: none;
}
.hiw-btn--pro:hover {
    background: linear-gradient(135deg, #e05a20, #d63200);
    color: white;
}
.hiw-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 1000px;
    margin: 2.5rem auto 2rem;
}
.hiw-step {
    flex: 1;
    text-align: center;
    padding: 0 1.5rem;
    position: relative;
}
.hiw-number {
    width: 44px;
    height: 44px;
    background: var(--primary-color, #005F73);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}
.hiw-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    line-height: 1;
}
.hiw-step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary, #2c3e50);
    margin-bottom: 0.5rem;
}
.hiw-step p {
    font-size: 0.9rem;
    color: var(--text-secondary, #6c757d);
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
}
.hiw-connector {
    width: 60px;
    height: 2px;
    background: var(--border-light, #e1e8ed);
    flex-shrink: 0;
    margin-top: 56px;
}
.hiw-cta {
    text-align: center;
    margin-top: 0.5rem;
}
.hiw-btn {
    padding: 14px 36px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 10px;
}
@media (max-width: 768px) {
    .hiw-steps {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .hiw-connector {
        width: 2px;
        height: 30px;
        margin: 0;
    }
    .hiw-step {
        padding: 0 1rem;
    }
}

/* Social Proof Stats Bar */
.social-proof {
    background: var(--white, #fff);
    border-bottom: 1px solid var(--border-light, #e1e8ed);
    padding: 1.25rem 0;
}
.stats-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-primary, #2c3e50);
}
.compact-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}
.compact-stats .stat-item {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 16px 12px;
    box-shadow: var(--shadow-sm);
}
.stat-number {
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
    color: var(--primary-color);
}
.stat-label {
    font-size: 0.95rem;
    line-height: 1.3;
    color: var(--text-secondary);
    font-weight: 500;
}
.stat-icon {
    font-size: 1.3rem;
}
.stat-text strong {
    color: var(--primary-color, #005F73);
    font-weight: 700;
}
@media (max-width: 768px) {
    body.home .page-header {
        padding: 24px 0 20px;
    }
    body.home .header-text {
        margin-bottom: 14px;
    }
    body.home .hero-kicker {
        margin-bottom: 12px;
        font-size: 0.68rem;
        padding: 5px 12px;
    }
    body.home .page-title {
        font-size: 2.2rem;
        line-height: 1.1;
        margin-bottom: 10px;
    }
    body.home .page-subtitle {
        font-size: 1rem;
        line-height: 1.35;
        margin-bottom: 0;
    }
    body.home .search-box {
        flex-direction: row;
        gap: 8px;
        padding: 8px;
        border-radius: 12px;
    }
    body.home .search-input {
        padding: 12px 10px;
        font-size: 1rem;
        /* Un <input> tiene ancho mínimo propio (size=20) y, como hijo flex,
           min-width:auto: en un Redmi de 360 px no se encogía y empujaba el
           botón fuera de la caja (visto el 2026-11-10). */
        min-width: 0;
        width: 100%;
    }
    body.home .search-btn {
        padding: 12px 16px;
        min-width: 0;
        flex: 0 0 auto;
        white-space: nowrap;
    }
    body.home .social-proof {
        padding: 12px 0 16px;
    }
    body.home .compact-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        align-items: stretch;
        text-align: center;
        padding: 0;
        margin-bottom: 12px;
    }
    body.home .compact-stats .stat-item {
        flex-direction: column;
        align-items: center;
        gap: 2px;
        background: var(--background-neutral);
        border: 1px solid var(--border-light);
        border-radius: 10px;
        padding: 10px 8px;
    }
    body.home .stat-number {
        font-size: 1.6rem;
        line-height: 1;
        font-weight: 800;
        color: var(--primary-color);
    }
    body.home .stat-label {
        font-size: 0.75rem;
        line-height: 1.2;
        color: var(--text-secondary);
    }
    body.home .quick-categories {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 12px;
    }
    body.home .quick-category-card {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        background: var(--white);
        border: 1px solid var(--border-light);
        border-radius: 10px;
        padding: 10px 8px;
        text-align: center;
        color: var(--text-primary);
        font-size: 0.9rem;
        font-weight: 600;
    }
    body.home .quick-category-icon {
        font-size: 1rem;
        line-height: 1;
    }
    body.home .social-proof-cta {
        display: block;
        text-align: center;
    }
    body.home .quick-cta-btn {
        display: inline-block;
        width: 100%;
        background: var(--accent-color);
        color: var(--white);
        border-radius: 12px;
        padding: 12px 14px;
        font-weight: 700;
        font-size: 1rem;
    }
    body.home .quick-coverage {
        margin-top: 8px;
        font-size: 0.85rem;
        color: var(--text-secondary);
    }
    .stats-bar {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
        padding: 0 0.5rem;
    }
    .stat-item {
        font-size: 0.9rem;
    }
    body.home .categories-section {
        display: none;
    }
    body.home .services-section .section-title {
        text-transform: uppercase;
        letter-spacing: 0.04em;
        font-size: 1.2rem;
        text-align: left;
    }
    body.home .services-section .section-subtitle {
        text-align: left;
        font-size: 0.9rem;
        margin-bottom: 16px;
    }
}

@media (max-width: 1024px) {
    .compact-stats {
        gap: 12px;
    }
    .compact-stats .stat-item {
        padding: 14px 10px;
    }
    .stat-number {
        font-size: 1.8rem;
    }
    .stat-label {
        font-size: 0.9rem;
    }
}
/* ── Formulario de cotización embebido en la ficha de servicio ──────────
   Motivo: sólo el 0,38% de quien ve una ficha llegaba al formulario en
   otra página (medido sobre user_activity_log, 33.230 visitantes). Aquí
   el servicio ya se conoce, así que se pide lo mínimo. */
.svc-quote {
    background: var(--white);
    border: 2px solid var(--accent-color);
    border-radius: 14px;
    padding: 28px;
    margin: 32px 0;
    box-shadow: 0 6px 24px rgba(238, 155, 0, .12);
}
.svc-quote__title {
    font-size: 1.35rem;
    color: var(--text-primary);
    margin: 0 0 6px;
    line-height: 1.25;
}
.svc-quote__sub {
    color: var(--text-secondary);
    font-size: .92rem;
    margin: 0 0 20px;
}
.svc-quote__row { margin-bottom: 16px; position: relative; }
.svc-quote__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
/* Ciudad + CP: la ciudad manda (nombres largos y desplegable con departamento). */
.svc-quote__grid--loc { grid-template-columns: 2fr 1fr; }
.svc-quote__label {
    display: block;
    font-weight: 600;
    font-size: .88rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.svc-quote__optional {
    font-weight: 400;
    color: var(--text-secondary);
    font-size: .82rem;
}
.svc-quote__input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--white);
}
.svc-quote__input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(238, 155, 0, .15);
}
.svc-quote__pills { display: flex; gap: 8px; flex-wrap: wrap; }
.svc-quote__pill {
    padding: 10px 16px;
    border: 1px solid var(--border-light);
    background: var(--white);
    border-radius: 999px;
    cursor: pointer;
    font-size: .9rem;
    font-family: inherit;
    color: var(--text-secondary);
    transition: all .2s ease;
}
.svc-quote__pill.is-active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white);
    font-weight: 600;
}
.svc-quote__results {
    position: absolute;
    z-index: 20;
    left: 0; right: 0;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    max-height: 240px;
    overflow-y: auto;
}
/* La columna del CP es estrecha: el desplegable crece hacia la izquierda
   para que quepan los avisos sin partirse en cuatro líneas. */
.svc-quote__results--zip { left: auto; min-width: 240px; }
.svc-quote__result-item { padding: 10px 14px; cursor: pointer; font-size: .92rem; }
.svc-quote__result-item:hover { background: var(--background-light); }
.svc-quote__result-item.is-empty { cursor: default; color: var(--text-secondary); font-size: .85rem; }
.svc-quote__result-item.is-empty:hover { background: transparent; }
.svc-quote__privacy {
    font-size: .8rem;
    color: var(--text-secondary);
    background: var(--background-light);
    padding: 10px 12px;
    border-radius: 6px;
    margin: 4px 0 14px;
}
.svc-quote__turnstile { margin-bottom: 14px; }
.svc-quote__error {
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: .88rem;
    margin: 0 0 12px;
}
.svc-quote__submit {
    width: 100%;
    padding: 16px;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all .25s ease;
}
.svc-quote__submit:hover:not(:disabled) { background: var(--accent-hover); transform: translateY(-2px); }
.svc-quote__submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.svc-quote__done { text-align: center; padding: 30px 10px; }
.svc-quote__done-icon { font-size: 2.6rem; margin-bottom: 10px; }
.svc-quote__done strong { display: block; font-size: 1.2rem; color: #15803d; margin-bottom: 6px; }
.svc-quote__done p { color: var(--text-secondary); margin: 0; }

@media (max-width: 768px) {
    .svc-quote { padding: 20px 16px; }
    .svc-quote__grid { grid-template-columns: 1fr; gap: 0; }
    .svc-quote__title { font-size: 1.15rem; }
}

/* ==================== WHATSAPP FAB (soporte de empresa) ==================== */
/* Verde de marca WhatsApp deliberado (no la paleta del sitio): reconocimiento
   inmediato del icono = más confianza y CTR que forzar los colores propios. */
.whatsapp-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    z-index: 9990; /* por debajo del menú móvil / cookie banner (9999) */
    transition: transform 0.2s ease, box-shadow 0.2s ease, bottom 0.25s ease;
}
.whatsapp-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    color: #fff;
}
.whatsapp-fab svg {
    width: 30px;
    height: 30px;
}

/* Mientras el banner de cookies esté visible (primera visita), sube el FAB para
   que no se tapen (ver toggle de clase en includes/footer.php).
   La altura la publica ese mismo archivo en `--cookie-banner-h`, medida del
   banner real. Hasta 2026-08-13 aquí había un 96px fijo y un 100px en móvil, y
   el banner NO mide siempre lo mismo: envuelve el texto y baja los botones a
   otra fila según el ancho y lo larga que sea la traducción — de ~60px en
   escritorio a ~150px en un móvil. Con el número fijo el FAB quedaba entero por
   detrás del banner en móvil (z-index 9990 contra 9999), o sea invisible hasta
   aceptar las cookies. El valor de reserva solo actúa si el JS no llegó a
   medir. */
body.cookie-banner-visible .whatsapp-fab {
    bottom: calc(var(--cookie-banner-h, 80px) + 16px);
}

@media (max-width: 950px) {
    .whatsapp-fab {
        width: 48px;
        height: 48px;
        bottom: 16px;
        right: 16px;
    }
    .whatsapp-fab svg {
        width: 26px;
        height: 26px;
    }
    body.cookie-banner-visible .whatsapp-fab {
        bottom: calc(var(--cookie-banner-h, 150px) + 16px);
    }
}

/* ── Últimas solicitudes recibidas (home) ───────────────────────────────
   Prueba social con datos reales. Nunca lleva nombre, teléfono, email ni la
   descripción escrita por el cliente: ver classes/RecentLeadsFeed.php.

   PANEL DE COLOR, y es lo que resuelve el problema de fondo: justo debajo va
   «Servicios más solicitados», tarjetas blancas sobre blanco. Las dos primeras
   versiones (rejilla de tarjetas, y luego lista sobre banda gris) se seguían
   leyendo como más catálogo. Un panel del color del sitio con tarjetas blancas
   encima no se confunde con nada de lo que hay alrededor.

   MULTI-PAÍS: el color NO se escribe aquí. Sale de `--primary-color`, que
   `assets/css/main.css` mapea a `var(--color-primary)` y cada tema define en
   `themes/<país>/assets/css/theme.css` — Colombia #005F73, México #006847…
   Así el panel se tiñe solo en cada clon. Por lo mismo el punto «en directo»
   es blanco y no verde: un verde fijo chocaría con la mitad de las paletas. */
.recent-leads-section {
    background: var(--white, #fff);
    padding: 3rem 0;
}
.recent-leads-panel {
    background: var(--primary-color, #005F73);
    border-radius: 18px;
    padding: 2.5rem 2rem;
    color: var(--white, #fff);
}
.recent-leads-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    color: var(--white, #fff);
}
.recent-leads-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--white, #fff);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
    animation: recent-leads-pulse 2.4s ease-out infinite;
    flex: 0 0 auto;
}
@keyframes recent-leads-pulse {
    70%  { box-shadow: 0 0 0 11px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
/* Quien haya pedido menos movimiento no tiene por qué ver un latido. */
@media (prefers-reduced-motion: reduce) {
    .recent-leads-dot { animation: none; }
}
.recent-leads-sub {
    margin: 0.55rem 0 1.75rem;
    text-align: center;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
}
.recent-leads-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.recent-lead-item {
    background: var(--white, #fff);
    border-radius: 12px;
    padding: 1.15rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.recent-lead-time {
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-secondary, #6c757d);
}
.recent-lead-service {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary, #2c3e50);
}
.recent-lead-service a {
    color: inherit;
    text-decoration: none;
}
.recent-lead-service a:hover,
.recent-lead-service a:focus {
    color: var(--primary-color, #005F73);
    text-decoration: underline;
}
.recent-lead-foot {
    margin: 0.2rem 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.65rem;
    font-size: 0.85rem;
}
.recent-lead-trade {
    background: var(--background-light, #F4F4F4);
    border-radius: 999px;
    padding: 0.12rem 0.7rem;
    color: var(--text-primary, #2c3e50);
    font-weight: 600;
}
.recent-lead-zone {
    color: var(--text-secondary, #6c757d);
}
.recent-leads-cta {
    margin: 1.75rem 0 0;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1.25rem;
}
/* El botón grande es el del PROFESIONAL, no el del cliente: la captación de
   profesionales es el lado flojo del negocio (19 de 10.341 han entrado alguna
   vez al panel) y este bloque es justo donde se demuestra que hay trabajo. */
.recent-leads-cta-main {
    background: var(--accent-color, #EE9B00);
    color: var(--white, #fff);
    font-weight: 700;
    font-size: 1.02rem;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.recent-leads-cta-main:hover,
.recent-leads-cta-main:focus {
    background: var(--accent-hover, #d68900);
    color: var(--white, #fff);
}
.recent-leads-cta-alt {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.92rem;
    text-decoration: underline;
}
.recent-leads-cta-alt:hover,
.recent-leads-cta-alt:focus {
    color: var(--white, #fff);
}

@media (max-width: 700px) {
    .recent-leads-section { padding: 2rem 0; }
    .recent-leads-panel {
        border-radius: 14px;
        padding: 1.75rem 1.15rem;
    }
    .recent-leads-title { font-size: 1.4rem; }
    .recent-leads-grid { grid-template-columns: 1fr; }
    .recent-leads-cta { flex-direction: column; gap: 0.9rem; }
}

/* Portada: «Profesionales por ciudad» (páginas /plomeros/bogota; docs/seo-oficio-zona.md) */
.tz-home__intro { text-align: center; color: var(--text-secondary, #555); margin: -0.5rem auto 1.2rem; max-width: 640px; }
.tz-home__links { list-style: none; margin: 0 auto; padding: 0; max-width: 1100px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.6rem 1.5rem; }
.tz-home__links li { padding: 0.3rem 0; text-align: center; }
.tz-home__links a { color: var(--primary-color, #005F73); text-decoration: none; font-weight: 500; }
.tz-home__links a:hover { text-decoration: underline; }
.tz-home__hubs { text-align: center; margin: 1.4rem auto 0; max-width: 1100px; color: var(--text-secondary, #555); line-height: 1.9; }
.tz-home__hubs-title { font-weight: 600; margin-right: 0.3rem; }
.tz-home__hubs a { color: var(--primary-color, #005F73); text-decoration: none; }
.tz-home__hubs a:hover { text-decoration: underline; }
.tz-home__sep { margin: 0 0.45rem; color: var(--border-light, #ccc); }
/* Escritorio: bloque compacto (título menor, enlaces en una fila que envuelve) */
@media (min-width: 768px) {
    .tz-home .services-section { padding: 24px 20px 28px; }
    .tz-home .section-title { font-size: 1.5rem; margin-bottom: 6px; }
    .tz-home__intro { font-size: 0.92rem; margin: 0 auto 0.9rem; }
    .tz-home__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem 0.5rem; }
    .tz-home__links li { padding: 0; }
    .tz-home__links a { display: inline-block; font-size: 0.86rem; font-weight: 500; padding: 0.3rem 0.7rem; border: 1px solid var(--border-light, #e2e8f0); border-radius: 999px; }
    .tz-home__links a:hover { text-decoration: none; background: var(--background-light, #f6f8fa); }
    .tz-home__hubs { font-size: 0.86rem; margin-top: 0.9rem; line-height: 1.7; }
}

/* Menú «Profesionales»: grupos «Profesionales por ciudad» y «Oficios» a dos columnas */
.dropdown-group-title--static { cursor: default; }
.dropdown-group-title--static:hover { background: transparent; }
.dropdown--profesionales:has(.dropdown-zones) { min-width: 640px; }
.dropdown-zones { display: grid; grid-template-columns: 1fr 1fr; column-gap: 8px; }
.dropdown--profesionales .dropdown-zones .dropdown-item { padding-left: 22px; white-space: normal; line-height: 1.3; }
