/* ==========================================================================
   1. RESET Y CONFIGURACIONES GLOBALES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #1E293B;
    background-color: #FAFAFC;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* TIPOGRAFÍAS Y COLORES */
.text-orange { color: #FF6B00; }
h1, h2, h3 { font-weight: 800; color: #0F2C59; }

/* LOGO MULTICOLOR */
.logo { font-weight: 800; font-size: 1.5rem; letter-spacing: -1px; }
.logo-nadie { color: #0F2C59; }
.logo-sin { color: #8A9AAB; }
.logo-web { color: #FF6B00; }


/* ==========================================================================
   2. HEADER Y NAVEGACIÓN (Escritorio por defecto)
   ========================================================================== */
.header {
    background: #FFFFFF;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: #0F2C59;
    font-weight: 600;
    margin-left: 20px;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav a:hover { color: #FF6B00; }

.nav .btn-nav {
    background: #0F2C59;
    color: #FFF;
    padding: 8px 16px;
    border-radius: 6px;
}

.nav .btn-nav:hover { background: #FF6B00; color: #FFF; }

/* Botón hamburguesa oculto en PC */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1020;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #0F2C59;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}


/* ==========================================================================
   3. NAVEGACIÓN RESPONSIVA (Móviles - Máximo 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        position: absolute;
        right: 20px;
        top: 25px;
    }

	
	/* ==========================================================================
       CAPA OSCURECIDA PARA EL MENÚ MÓVIL (Cerrar al hacer clic fuera)
       ========================================================================== */
    .menu-overlay {
        display: none; /* Oculto por defecto */
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(15, 44, 89, 0.4); /* Tu azul corporativo con transparencia */
        backdrop-filter: blur(3px); /* Difumina ligeramente el fondo de la web (Efecto Premium) */
        z-index: 1005; /* Justo debajo del menú lateral pero sobre la web */
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }

    /* Cuando el menú se abre, mostramos la capa y le damos opacidad */
    .menu-overlay.active {
        display: block;
        opacity: 1;
    }
	
    /* Animación de Hamburguesa a X */
    .menu-toggle.open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: #FF6B00;
    }
    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: #FF6B00;
    }

    /* Menú lateral estilo cortina móvil */
    #main-nav.nav {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 80% !important;
        max-width: 300px !important;
        height: 100vh !important;
        background-color: #FFFFFF !important;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1) !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 100px 40px 40px 40px !important;
        gap: 25px !important;
        transition: right 0.4s ease-in-out !important;
        z-index: 1010 !important;
    }

    /* Activación del menú con JavaScript */
    #main-nav.nav.active {
        right: 0 !important;
    }

    #main-nav.nav a {
        font-size: 1.2rem !important;
        width: 100% !important;
        padding: 10px 0 !important;
        border-bottom: 1px solid #F1F5F9 !important;
        color: #0F2C59 !important;
        display: block !important;
        text-align: left !important;
        margin-left: 0 !important;
    }

    #main-nav.nav a.btn-nav {
        background: #FF6B00 !important;
        color: #FFFFFF !important;
        text-align: center !important;
        border-radius: 8px !important;
        margin-top: 15px !important;
        border-bottom: none !important;
    }
}


/* ==========================================================================
   4. HERO Y MOCKUPS
   ========================================================================== */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #FFFFFF 0%, #F1F5F9 100%);
}

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

.hero-text h1 { font-size: 2.8rem; line-height: 1.2; margin-bottom: 20px; }
.hero-text p { font-size: 1.1rem; color: #475569; margin-bottom: 30px; }

/* Cabecera para páginas pilares SEO */
.seo-article-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.3;
    max-width: 900px;
    margin: 0 auto 20px auto;
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.seo-article-header h1 strong {
    color: #FF6B00; 
    font-weight: 800;
}

/* BOTONES */
.btn {
    display: inline-block;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
    transition: transform 0.2s, background 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: #FF6B00; color: #FFFFFF; box-shadow: 0 4px 15px rgba(255,107,0,0.3); }
.btn-primary:hover { background: #E05E00; }

/* MOCKUP TELEFÓNICO */
.hero-mockup { display: flex; justify-content: center; }
.mockup-box {
    width: 280px;
    height: 480px;
    background: #0F2C59;
    border-radius: 30px;
    border: 8px solid #1E293B;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    overflow: hidden;
    position: relative;
}

.mockup-header {
    width: 40%;
    height: 20px;
    background: #1E293B;
    margin: 0 auto;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.mockup-content {
    padding: 20px;
    color: white;
    text-align: center;
    margin-top: 40px;
}

.mockup-badge {
    background: #FF6B00;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

.mockup-text-main { font-size: 1.8rem; font-weight: bold; margin-top: 40px; }
.mockup-button {
    background: #22C55E;
    padding: 12px;
    border-radius: 8px;
    position: absolute;
    bottom: 30px;
    left: 20px;
    right: 20px;
    font-weight: bold;
}


/* ==========================================================================
   5. SECCIÓN CARACTERÍSTICAS (Optimización Responsiva UI/UX)
   ========================================================================== */
.features { padding: 80px 0; background: #FFFFFF; }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 50px; }

/* Comportamiento base móvil: Lista compacta vertical */
.features-checklist {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 100%;
    margin: 0 auto;
    background: #F8FAFC;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.check-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.check-text {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.4;
}

/* Optimización para Escritorio: Rejilla de tarjetas simétricas equilibradas */
@media (min-width: 769px) {
    .features-checklist {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 1200px;
        background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
        padding: 40px;
        border-radius: 20px;
        box-shadow: 0 4px 20px rgba(15, 44, 89, 0.03);
    }

    .check-item {
        background: #FFFFFF;
        padding: 20px;
        border-radius: 12px;
        border: 1px solid #E2E8F0;
        transition: transform 0.2s, border-color 0.2s;
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .check-item:hover {
        transform: translateY(-2px);
        border-color: #FF6B00;
    }

    /* Caja contenedora rígida e idéntica para emojis y SVG */
    .check-icon {
        width: 50px;
        height: 50px;
        background: #F1F5F9;
        border-radius: 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.8rem;
        flex-shrink: 0;
    }

    .check-text {
        font-size: 1rem;
        color: #0F2C59;
    }

    /* Alineación y proporción del icono SVG de WhatsApp */
    .check-icon-whatsapp svg {
        width: 28px !important;
        height: 28px !important;
        display: block;
        margin: 0 auto;
    }
}


/* ==========================================================================
   6. PORTFOLIO / TRABAJOS
   ========================================================================== */
.portfolio { padding: 60px 0; background: #F8FAFC; }
.section-subtitle { text-align: center; margin-top: -10px; margin-bottom: 40px; color: #64748B; }

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

.portfolio-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    border: 1px solid #E2E8F0;
}

.portfolio-img { height: 200px; background: #CBD5E1; }

.portfolio-img.fontaneria {
    background-image: url('portfolio/urbayec_web.jpg');
    background-size: cover;
    background-position: center;
}
.portfolio-img.cerrajeria {
    background-image: url('portfolio/casa_lola.jpg');
    background-size: cover;
    background-position: center;
}
.portfolio-img.estetica {
    background-image: url('portfolio/sofasycolchon.jpg');
    background-size: cover;
    background-position: center;
}

.portfolio-info { padding: 20px; text-align: center; }
.portfolio-info h3 { font-size: 1.1rem; margin-bottom: 15px; }

.btn-secondary {
    display: inline-block;
    text-decoration: none;
    color: #0F2C59;
    border: 2px solid #0F2C59;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
}
.btn-secondary:hover { background: #0F2C59; color: #FFFFFF; }


/* ==========================================================================
   7. PASARELA DE PAGO (STRIPE CORES)
   ========================================================================== */
.checkout { padding: 80px 0; background: #FFFFFF; }
.checkout-box {
    max-width: 700px;
    background: #0F2C59;
    color: #FFFFFF;
    border-radius: 16px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(15,44,89,0.2);
}

.checkout-box h2 { color: #FFFFFF; margin-bottom: 20px; font-size: 2rem; }
.price { font-size: 3.5rem; font-weight: 800; color: #FF6B00; margin-bottom: 10px; }
.pago-unico { display: block; font-size: 1rem; color: #8A9AAB; font-weight: 400; }
.checkout-desc { color: #E2E8F0; margin-bottom: 35px; font-size: 1rem; }

.btn-stripe {
    background: #FFFFFF;
    color: #0F2C59;
    width: 100%;
    max-width: 400px;
}
.btn-stripe:hover { background: #F1F5F9; }
.logos-pago { margin-top: 20px; font-size: 0.85rem; color: #8A9AAB; }


/* ==========================================================================
   8. ESTRUCTURA CORPORATIVA DEL FOOTER (PREMIUM)
   ========================================================================== */
.footer {
    background: #0F2C59;
    color: #FFFFFF;
    padding: 60px 0 0 0;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

@media (min-width: 769px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-col h4 {
    color: #FF6B00;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-text-brand {
    color: #8A9AAB;
    line-height: 1.6;
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #E2E8F0;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #FF6B00;
    text-decoration: underline;
}

.footer-bottom {
    background: #0A1E3D;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: #8A9AAB;
}


/* ==========================================================================
   9. ELEMENTOS INTERACTIVOS (WHATSAPP FLOTANTE)
   ========================================================================== */
.whatsapp-floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.whatsapp-floating-btn a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    font-size: 35px;
    box-shadow: 2px 5px 15px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-floating-btn a:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
}


/* ==========================================================================
   10. MEDIA QUERIES GENERALES
   ========================================================================== */
@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; padding: 40px 0; }
    .hero-text h1 { font-size: 2rem; }
    .hero-mockup { display: none; }
    .checkout-box { padding: 30px 20px; }
    .price { font-size: 2.8rem; }
}
/* ==========================================================================
   SECCIÓN DE INTERLINKING MASIVO (50 CIUDADES EN ESTILO PREMIUM)
   ========================================================================== */
.footer-cities-section {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #09172E; /* Un tono más oscuro y elegante integrado en tu paleta */
    padding: 40px 0;
}

.footer-cities-section h4 {
    color: #FF6B00;
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Rejilla adaptativa e inteligente */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 576px) {
    .cities-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
    .cities-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
    .cities-grid { grid-template-columns: repeat(5, 1fr); }
}

/* Transformamos los enlaces simples en elegantes píldoras interactivas */
.cities-grid a {
    color: #A3B3C2;
    background: rgba(255, 255, 255, 0.03); /* Fondo muy sutil */
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 6px; /* Bordes suaves */
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Icono sutil de marcador de mapa antes de cada ciudad */
/* Reemplaza la regla anterior por esta */
.cities-grid a::before {
    content: "\f3c5"; /* Código universal del pin de mapa en Font Awesome */
    font-family: "Font Awesome 6 Free"; /* Llama a la librería */
    font-weight: 900; /* Obligatorio para que cargue la versión sólida */
    font-size: 0.8rem;
    color: #FF6B00; /* Tu naranja corporativo en el icono */
    opacity: 0.6;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* El efecto al pasar el cursor (hover) se mantiene impecable */
.cities-grid a:hover::before {
    opacity: 1;
    transform: scale(1.2);
    color: #FFFFFF; /* El icono cambia a blanco junto con el texto */
}

