/**
 * Estilos Encapsulados Mobile-First CRO para Landings pSEO (Tecnología del Valle)
 */

.tdv-pseo-landing {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1e293b;
    line-height: 1.6;
    margin-bottom: 80px; /* Espacio para el Sticky CTA inferior */
}

/* 1. Hero Section */
.tdv-pseo-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 35px 20px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.2);
    position: relative;
    overflow: hidden;
}

.tdv-pseo-hero h1 {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.3;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.tdv-pseo-hero .tdv-subtitle {
    font-size: 1.05rem;
    color: #cbd5e1;
    margin-bottom: 25px;
}

.tdv-pseo-trust-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 25px;
}

.tdv-pseo-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tdv-pseo-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 16px 28px;
    border-radius: 14px;
    text-decoration: none !important;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    text-align: center;
}

.tdv-pseo-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.45);
}

.tdv-pseo-cta-chatbot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #009ed6 0%, #0077b6 100%);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 1.05rem;
    padding: 16px 24px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 158, 214, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    flex: 1;
    min-width: 220px;
    text-align: center;
}

.tdv-pseo-cta-chatbot:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 158, 214, 0.45);
}

.tdv-pseo-btn-sticky-chat {
    flex: 1;
    background: linear-gradient(135deg, #009ed6 0%, #0077b6 100%);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 14px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-align: center;
}

/* 2. Drive-to-Store (Autoridad Local) */
.tdv-pseo-drivetostore {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-top: 4px solid #009ed6;
    padding: 25px 20px;
    border-radius: 18px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.tdv-pseo-drivetostore h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.tdv-pseo-stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.tdv-pseo-store-card {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    padding: 16px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tdv-pseo-store-card strong {
    color: #0f172a;
    font-size: 0.98rem;
}

.tdv-pseo-btn-map {
    display: inline-block;
    margin-top: 10px;
    background: #0f172a;
    color: #ffffff !important;
    padding: 9px 15px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none !important;
    text-align: center;
}

/* 3. Contenido Dinámico (Problema/Solución) */
.tdv-pseo-content {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 30px 20px;
    border-radius: 18px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.tdv-pseo-content h2 {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 16px;
    line-height: 1.35;
    border-bottom: 3px solid #009ed6;
    display: inline-block;
    padding-bottom: 4px;
}

.tdv-pseo-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 24px;
    margin-bottom: 12px;
}

.tdv-pseo-content p {
    font-size: 1.02rem;
    color: #334155;
    margin-bottom: 16px;
}

.tdv-pseo-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.tdv-pseo-content ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    font-size: 1rem;
    color: #334155;
}

.tdv-pseo-content ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #009ed6;
    font-weight: 900;
    font-size: 1.1rem;
}

/* 4. Mapa Dinámico */
.tdv-pseo-map-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 18px;
    margin-bottom: 30px;
    overflow: hidden;
}

.tdv-pseo-map-box iframe {
    width: 100%;
    height: 320px;
    border: none;
    border-radius: 12px;
}

/* 5. Acordeón FAQs */
.tdv-pseo-faqs {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 30px 20px;
    border-radius: 18px;
    margin-bottom: 30px;
}

.tdv-pseo-faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    background: #f8fafc;
}

.tdv-pseo-faq-item summary {
    padding: 16px 20px;
    font-weight: 700;
    font-size: 1rem;
    color: #0f172a;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tdv-pseo-faq-item summary::-webkit-details-marker {
    display: none;
}

.tdv-pseo-faq-item summary::after {
    content: "▼";
    font-size: 0.8rem;
    color: #009ed6;
    transition: transform 0.2s;
}

.tdv-pseo-faq-item[open] summary::after {
    transform: rotate(180deg);
}

.tdv-pseo-faq-body {
    padding: 16px 20px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.98rem;
}

/* 6. Sticky CTA (Mobile Only) */
.tdv-pseo-sticky-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 12px 16px;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.15);
}

.tdv-pseo-sticky-mobile a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 1.05rem;
    padding: 14px;
    border-radius: 12px;
    text-decoration: none !important;
}

/* Responsive Queries */
@media (max-width: 768px) {
    .tdv-pseo-sticky-mobile {
        display: block;
    }
    .tdv-pseo-hero h1 {
        font-size: 1.5rem;
    }
    .tdv-pseo-cta-primary {
        font-size: 1rem;
        padding: 14px 20px;
    }
}

@media (min-width: 769px) {
    .tdv-pseo-hero {
        padding: 50px 40px;
    }
    .tdv-pseo-hero h1 {
        font-size: 2.3rem;
    }
    .tdv-pseo-cta-primary {
        width: auto;
        display: inline-flex;
    }
}
