/* --- VARIABLES Y RESET --- */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --bg-dark: #0f172a;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-400: #94a3b8;
    --slate-600: #475569;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --container-width: 1100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    color: var(--slate-800);
    line-height: 1.6;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* --- COMPONENTES GLOBALES --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.4);
}

.btn-primary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn-secondary {
    background-color: var(--slate-100);
    color: var(--slate-900);
}

.btn-secondary:hover {
    background-color: var(--slate-200);
    transform: translateY(-2px);
}

.btn-secondary:focus-visible {
    outline: 2px solid var(--slate-200);
    outline-offset: 2px;
}

.btn-whatsapp {
    background-color: #22c55e;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #16a34a;
    transform: translateY(-2px);
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: #dbeafe;
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- HEADER --- */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-100);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
}

.logo img {
    height: 38px;
    width: auto;
    display: block;
}

.logo-tag {
    background: var(--primary);
    color: white;
    font-size: 0.6rem;
    font-weight: 900;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 2px;
    width: fit-content;
}

.nav-menu {
    display: flex;
    gap: 24px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--slate-600);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--primary);
}

@media (max-width: 900px) {

    .nav-menu,
    .header .btn-whatsapp {
        display: none;
    }
}

/* --- HERO --- */
.hero {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(-45deg, #f8fafc, #eff6ff, #f8fafc, #ffffff);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    overflow: hidden;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    line-height: 1.1;
    font-weight: 900;
    color: var(--slate-900);
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--slate-600);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* MOCKUP INTERACTIVO */
.hero-visual {
    perspective: 1200px;
}

.mockup-frame {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--slate-200);
    overflow: hidden;
    transform: rotateY(-15deg) rotateX(10deg);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.hero:hover .mockup-frame {
    transform: rotateY(-5deg) rotateX(5deg) scale(1.02);
    box-shadow: 0 40px 60px -15px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.mockup-header {
    background: var(--slate-50);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--slate-100);
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.mockup-dots span:nth-child(1) {
    background: #ff5f56;
}

.mockup-dots span:nth-child(2) {
    background: #ffbd2e;
}

.mockup-dots span:nth-child(3) {
    background: #27c93f;
}

.mockup-content {
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    background: #fff;
}

.mock-card {
    background: var(--slate-50);
    border: 1px solid var(--slate-100);
    border-radius: 8px;
    padding: 16px;
    transition: 0.3s;
}

.mockup-frame:hover .mock-card {
    transform: translateY(-4px);
}

.mock-card h4 {
    font-size: 0.75rem;
    color: var(--slate-400);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.mock-bar {
    height: 8px;
    background: var(--slate-200);
    border-radius: 4px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.mock-bar::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--primary);
    width: 60%;
    transition: 1s ease 0.5s;
}

.mock-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mock-list span {
    height: 4px;
    background: var(--slate-200);
    border-radius: 2px;
}

.mock-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.mock-grid span {
    aspect-ratio: 1;
    background: var(--slate-200);
    border-radius: 2px;
}

@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* --- BENEFICIOS --- */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 16px;
}

.section-title p {
    color: var(--slate-600);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.grid-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-icon-wrapper {
    width: 64px;
    height: 64px;
    background: var(--icon-bg, #dbeafe);
    color: var(--icon-color, var(--primary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.benefit-icon-wrapper svg {
    width: 32px;
    height: 32px;
}

.benefit-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--slate-100);
    transition: 0.3s;
    height: 100%;
}

.benefit-card:hover .benefit-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.benefit-card h3 {
    margin-bottom: 12px;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--slate-900);
}

/* --- COMPARATIVA --- */
.grid-comparativa {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.comp-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--slate-100);
    display: flex;
    flex-direction: column;
    transition: 0.3s;
    position: relative;
    height: 100%;
}

.comp-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.comp-card.featured-web {
    border: 2px solid #0369a1;
    /* Celeste oscuro */
    box-shadow: 0 10px 25px -5px rgba(3, 105, 161, 0.15);
    background: linear-gradient(to bottom, #ffffff, #f0f9ff);
    transform: scale(1.02);
    z-index: 10;
}

.comp-card.featured-web:hover {
    border-color: #0c4a6e;
    transform: scale(1.03);
}

.comp-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--slate-100);
    color: var(--slate-600);
}

.comp-badge.active-new {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.floating-modern {
    position: absolute;
    top: -15px;
    left: 20px;
    background: #fef3c7;
    color: #92400e;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    box-shadow: var(--shadow-md);
    animation: float 3s ease-in-out infinite;
    z-index: 20;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.modern-highlight {
    animation: pulse-border 4s infinite;
}

@keyframes pulse-border {

    0%,
    100% {
        border-color: #0369a1;
    }

    50% {
        border-color: #38bdf8;
    }
}

.comp-badge.active {
    background: #dcfce7;
    color: #166534;
}

.comp-card h3 {
    margin-bottom: 24px;
    font-size: 1.25rem;
    font-weight: 800;
}

.comp-list {
    list-style: none;
    margin-bottom: 24px;
    flex: 1;
}

.comp-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
}

.comp-list li::before {
    content: "✓";
    color: var(--primary);
    font-weight: 900;
}

.comp-note {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-400);
    border-top: 1px solid var(--slate-100);
    padding-top: 16px;
    margin-bottom: 24px;
}

.comp-btn {
    width: 100%;
    text-align: center;
    padding: 18px;
    font-size: 1rem;
    margin-top: auto;
}

.featured-web .comp-btn {
    background-color: var(--primary);
    color: white;
}

.featured-web .comp-btn:hover {
    background-color: var(--primary-dark);
}

.recommendation-band {
    background: var(--slate-900);
    color: white;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
}

.band-pills {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.pill {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
}

.pill:hover {
    background: white;
    color: var(--slate-900);
}

/* --- TUTORIALES --- */
.grid-tutorials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.t-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--slate-100);
    display: flex;
    flex-direction: column;
    transition: 0.3s;
}

.t-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.t-thumb {
    height: 180px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.t-thumb img,
.t-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.t-card:hover .t-thumb img,
.t-card:hover .t-thumb video {
    transform: scale(1.05);
}

.t-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.t-body h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 800;
}

.t-body p {
    font-size: 0.95rem;
    color: var(--slate-600);
    margin-bottom: 24px;
}

.t-body .btn {
    margin-top: auto;
}

/* --- VIDEO DESTAQUE --- */
.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 968px) {
    .video-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.video-container-featured {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
    line-height: 0;
}

.featured-video-element {
    width: 100%;
    display: block;
}

.bg-dark {
    background-color: var(--slate-900);
}

.text-white {
    color: white;
}

/* --- PLAN LANZAMIENTO WEB / PRECIOS --- */
.pricing-section {
    background-color: var(--bg-dark);
    color: white;
    padding: 100px 0;
}

.pricing-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 60px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
    margin: 40px 0;
}

.pricing-item h3 {
    font-size: 1.8rem;
    margin-bottom: 24px;
    color: #fff;
}

.pricing-item ul {
    list-style: none;
}

.pricing-item li {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
}

.pricing-item li::before {
    content: "✔";
    color: #22c55e;
    font-weight: 900;
}

.pricing-divider {
    width: 1px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-divider {
        width: 100%;
        height: 1px;
    }

    .pricing-box {
        padding: 40px 20px;
    }
}

.urgency-badge {
    background: #fef3c7;
    color: #92400e;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95em;
    display: inline-block;
}

/* --- FAQ --- */
.faq-container {
    max-width: 800px;
    /* Ancho optimizado */
    margin: 0 auto 40px;
}

.faq-item {
    background: white;
    border: 1px solid var(--slate-100);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-item summary {
    padding: 24px;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    color: var(--slate-900);
}

.faq-item summary::after {
    content: "+";
    color: var(--primary);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    content: "−";
    transform: rotate(180deg);
}

.faq-content {
    padding: 0 24px 24px;
    color: var(--slate-600);
    font-size: 1rem;
    line-height: 1.6;
    border-top: 1px solid transparent;
}

.faq-item[open] .faq-content {
    border-top-color: var(--slate-50);
}

.faq-cta {
    text-align: center;
    background: var(--slate-50);
    padding: 40px;
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-cta p {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--slate-900);
}

/* --- FOOTER --- */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--slate-100);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-info p {
    margin-top: 16px;
    color: var(--slate-600);
}

.footer-col h4 {
    margin-bottom: 24px;
    font-weight: 800;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    text-decoration: none;
    color: var(--slate-600);
    transition: 0.2s;
}

.footer-col a:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-info .logo {
        justify-content: center;
        align-items: center;
    }
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--slate-100);
    font-size: 0.85rem;
    color: var(--slate-400);
}

/* --- FLOATERS --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #22c55e;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.4);
    z-index: 2000;
    transition: 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}