/* =====================================================
   vertical.css — Estilos compartidos para páginas de sector
   Importado por todos los archivos en /sectores/
   ===================================================== */

/* Google Fonts ya cargadas en cada página */

/* ─── Reset básico ─── */
*, *::before, *::after { box-sizing: border-box; }

/* ─── Variables (mismas que shared.css + index.html) ─── */
:root {
    --black: #000000;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f7;
    --gray-200: #e8e8ed;
    --gray-400: #86868b;
    --gray-600: #6e6e73;
    --gray-800: #1d1d1f;
    --blue: #0071e3;
    --blue-hover: #0077ed;
    --green: #34c759;
    --orange: #ff9500;
    --wa-green: #075e54;
    --wa-green-light: #128c7e;
    --wa-bg: #e5ddd5;
    --wa-bubble-user: #d9fdd3;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

/* ─── Secciones generales ─── */
section {
    padding: 80px 24px;
}

.section-gray {
    background: var(--gray-100);
}

.section-dark {
    background: #0a0a0f;
    color: var(--white);
}

.vert-container {
    max-width: 1100px;
    margin: 0 auto;
}

.vert-section-header {
    text-align: center;
    margin-bottom: 56px;
}

.vert-section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 12px;
    background: rgba(0, 113, 227, 0.08);
    padding: 5px 14px;
    border-radius: 980px;
    border: 1px solid rgba(0, 113, 227, 0.15);
}

.vert-section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--black);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
}

.vert-section-subtitle {
    font-size: 1.0625rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ─── Breadcrumb ─── */
.vert-breadcrumb {
    padding: 72px 24px 0;
    max-width: 1100px;
    margin: 0 auto;
}

.vert-breadcrumb nav {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--gray-400);
    flex-wrap: wrap;
}

.vert-breadcrumb a {
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.2s;
}

.vert-breadcrumb a:hover {
    color: var(--blue);
}

.vert-breadcrumb .sep {
    color: var(--gray-400);
}

.vert-breadcrumb .current {
    color: var(--gray-800);
    font-weight: 500;
}

/* ─── Hero Vertical ─── */
.vert-hero {
    padding: 48px 24px 80px;
    text-align: center;
}

.vert-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 113, 227, 0.08);
    border: 1px solid rgba(0, 113, 227, 0.18);
    border-radius: 980px;
    padding: 6px 16px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--blue);
    margin-bottom: 24px;
}

.vert-hero h1 {
    font-size: clamp(2rem, 5.5vw, 3.25rem);
    font-weight: 700;
    color: var(--black);
    line-height: 1.15;
    letter-spacing: -0.03em;
    max-width: 820px;
    margin: 0 auto 20px;
}

.vert-hero h1 .highlight {
    color: var(--blue);
}

.vert-hero-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 680px;
    margin: 0 auto 36px;
    line-height: 1.65;
}

.vert-hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.vert-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue);
    color: var(--white) !important;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 980px;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.25s, transform 0.15s;
}

.vert-btn-primary:hover {
    background: var(--blue-hover);
    transform: translateY(-1px);
}

.vert-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--blue) !important;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 980px;
    font-size: 1rem;
    font-weight: 500;
    border: 1.5px solid rgba(0, 113, 227, 0.3);
    transition: background 0.25s, border-color 0.25s;
}

.vert-btn-secondary:hover {
    background: rgba(0, 113, 227, 0.06);
    border-color: var(--blue);
}

/* ─── Stats Bar ─── */
.vert-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--gray-200);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 0;
}

.vert-stat {
    background: var(--white);
    padding: 28px 20px;
    text-align: center;
}

.vert-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--black);
    display: block;
    letter-spacing: -0.02em;
}

.vert-stat-label {
    font-size: 0.8125rem;
    color: var(--gray-600);
    margin-top: 4px;
}

/* ─── WhatsApp Mockup ─── */
.vert-mockup-section {
    padding: 80px 24px;
    background: linear-gradient(135deg, #f0f7ff 0%, #f5f5f7 50%, #f0fff4 100%);
}

.vert-mockup-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 56px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.vert-mockup-layout.reverse {
    grid-template-columns: 320px 1fr;
}

.vert-mockup-layout.reverse .wa-phone-wrap {
    order: -1;
}

.vert-mockup-text h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--black);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 16px;
}

.vert-mockup-text p {
    font-size: 1.0625rem;
    color: var(--gray-600);
    line-height: 1.65;
    margin: 0 0 28px;
}

.vert-mockup-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vert-mockup-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9375rem;
    color: var(--gray-800);
}

.vert-mockup-check-list li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(52, 199, 89, 0.15);
    color: #1a7a34;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── WhatsApp Phone Frame ── */
.wa-phone-wrap {
    display: flex;
    justify-content: center;
}

.wa-phone {
    width: 290px;
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.18), 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    background: var(--white);
    border: 6px solid #1a1a1a;
    position: relative;
}

.wa-phone::before {
    content: '';
    display: block;
    width: 80px;
    height: 6px;
    background: #1a1a1a;
    border-radius: 0 0 8px 8px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.wa-header {
    background: var(--wa-green);
    padding: 28px 14px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wa-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.wa-contact-info {
    flex: 1;
}

.wa-contact-name {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
}

.wa-contact-status {
    color: rgba(255,255,255,0.75);
    font-size: 0.7rem;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.wa-status-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
}

.wa-messages {
    background: var(--wa-bg);
    padding: 10px 10px 6px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background-image: 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='%23000000' 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");
}

.wa-bubble {
    max-width: 78%;
    padding: 7px 10px 5px;
    border-radius: 10px;
    font-size: 0.78rem;
    line-height: 1.4;
    position: relative;
    word-break: break-word;
}

.wa-bubble.bot {
    background: var(--white);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    color: #111;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.wa-bubble.user {
    background: var(--wa-bubble-user);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    color: #111;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.wa-time {
    font-size: 0.6rem;
    color: var(--gray-400);
    display: block;
    text-align: right;
    margin-top: 2px;
}

.wa-bubble.user .wa-time {
    color: #6d9e6a;
}

.wa-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: var(--white);
    border-radius: 10px;
    border-bottom-left-radius: 2px;
    width: fit-content;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.wa-dot {
    width: 6px;
    height: 6px;
    background: var(--gray-400);
    border-radius: 50%;
    animation: waDot 1.2s ease-in-out infinite;
}

.wa-dot:nth-child(2) { animation-delay: 0.2s; }
.wa-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes waDot {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

.wa-input-bar {
    background: var(--gray-100);
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid var(--gray-200);
}

.wa-input-bar .wa-input-field {
    flex: 1;
    background: white;
    border-radius: 20px;
    padding: 7px 12px;
    font-size: 0.75rem;
    color: var(--gray-400);
    border: none;
}

.wa-send-btn {
    width: 32px;
    height: 32px;
    background: var(--wa-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* ─── Features Grid ─── */
.vert-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.vert-feature-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 28px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vert-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.09);
}

.vert-feature-icon {
    font-size: 1.75rem;
    margin-bottom: 14px;
    display: block;
}

.vert-feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--black);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.vert-feature-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

/* ─── How it Works ─── */
.vert-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}

.vert-steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(16.66% + 20px);
    right: calc(16.66% + 20px);
    height: 1px;
    background: var(--gray-200);
    z-index: 0;
}

.vert-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.vert-step-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--blue);
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.35);
}

.vert-step h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--black);
    margin: 0 0 8px;
}

.vert-step p {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

/* ─── FAQ ─── */
.vert-faq-list {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vert-faq-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    overflow: hidden;
}

.vert-faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 22px;
    text-align: left;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--black);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: background 0.15s;
}

.vert-faq-question:hover {
    background: var(--gray-100);
}

.vert-faq-arrow {
    font-size: 0.75rem;
    color: var(--gray-400);
    transition: transform 0.25s;
    flex-shrink: 0;
}

.vert-faq-item.open .vert-faq-arrow {
    transform: rotate(180deg);
}

.vert-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 22px;
}

.vert-faq-item.open .vert-faq-answer {
    max-height: 400px;
    padding: 0 22px 18px;
}

.vert-faq-answer p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.65;
    margin: 0;
}

/* ─── CTA Final ─── */
.vert-cta-section {
    background: linear-gradient(135deg, #0a0a0f 0%, #0d1225 100%);
    padding: 80px 24px;
    text-align: center;
    color: white;
}

.vert-cta-section h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    color: white;
    letter-spacing: -0.03em;
    margin: 0 0 16px;
}

.vert-cta-section p {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.7);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

.vert-cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.vert-cta-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue);
    color: white !important;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 980px;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.25s, transform 0.15s;
}

.vert-cta-btn-primary:hover {
    background: var(--blue-hover);
    transform: translateY(-1px);
}

.vert-cta-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    color: white !important;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 980px;
    font-size: 1rem;
    font-weight: 500;
    border: 1.5px solid rgba(255,255,255,0.2);
    transition: background 0.25s;
}

.vert-cta-btn-secondary:hover {
    background: rgba(255,255,255,0.18);
}

/* ─── Linked Verticals / También disponible ─── */
.vert-also-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.vert-also-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    text-decoration: none;
    color: var(--gray-800);
    font-size: 0.9rem;
    font-weight: 500;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.vert-also-card:hover {
    border-color: var(--blue);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.1);
    transform: translateY(-2px);
    color: var(--blue);
}

.vert-also-card .also-icon {
    font-size: 1.4rem;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .vert-mockup-layout,
    .vert-mockup-layout.reverse {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 36px;
    }

    .vert-mockup-layout.reverse .wa-phone-wrap {
        order: unset;
    }

    .vert-mockup-check-list li {
        justify-content: center;
    }

    .vert-steps {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .vert-steps::before {
        display: none;
    }
}

@media (max-width: 640px) {
    section {
        padding: 60px 20px;
    }

    .vert-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .vert-hero h1 {
        font-size: 2rem;
    }

    .vert-features-grid {
        grid-template-columns: 1fr;
    }

    .wa-phone {
        width: 260px;
    }
}
