/* ============================================================
   Oferta Web + Hosting — Hospecat / Digital Innovation Global
   ============================================================ */

:root {
    --primary-purple: #8b5cf6;
    --primary-purple-dark: #7c3aed;
    --primary-purple-light: #a78bfa;
    --primary-blue: #38bdf8;
    --primary-blue-dark: #0ea5e9;
    --dark: #1f2937;
    --dark-light: #374151;
    --gray: #6b7280;
    --gray-light: #9ca3af;
    --light: #f3f4f6;
    --lighter: #f9fafb;
    --white: #ffffff;
    --whatsapp: #25d366;
    --whatsapp-dark: #128c7e;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 10px 40px rgba(31, 41, 55, .12);
    --shadow-lg: 0 20px 60px rgba(124, 58, 237, .25);
    --gradient: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 45%, #0ea5e9 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--dark);
    background: var(--lighter);
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { color: var(--primary-purple-dark); }

.container {
    width: min(1140px, 92%);
    margin: 0 auto;
}

.container-narrow { width: min(820px, 92%); }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .8rem 1.6rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    white-space: nowrap;
}

.btn:active { transform: scale(.97); }

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(124, 58, 237, .35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(124, 58, 237, .45);
}

.btn-outline {
    background: transparent;
    color: var(--primary-purple-dark);
    border-color: var(--primary-purple);
}
.btn-outline:hover { background: rgba(139, 92, 246, .08); }

.btn-whatsapp {
    background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
    color: var(--white);
    box-shadow: 0 6px 20px rgba(37, 211, 102, .35);
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(37, 211, 102, .45); }

.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: .5rem 1.1rem; font-size: .9rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(139, 92, 246, .12);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .7rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    color: var(--dark);
}
.logo img { border-radius: 8px; }
.logo-text {
    font-weight: 800;
    font-size: 1.15rem;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
}
.logo-text small {
    font-weight: 500;
    font-size: .68rem;
    color: var(--gray);
    letter-spacing: .04em;
    text-transform: uppercase;
}

.nav { display: flex; gap: 1.4rem; }
.nav a {
    text-decoration: none;
    color: var(--dark-light);
    font-weight: 500;
    font-size: .95rem;
    position: relative;
    padding: .2rem 0;
}
.nav a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 2px;
    background: var(--gradient);
    transition: width .25s ease;
}
.nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: .8rem; }

.lang-selector {
    display: flex;
    border: 1px solid var(--light);
    border-radius: 50px;
    overflow: hidden;
    background: var(--white);
}
.lang-btn {
    border: none;
    background: transparent;
    padding: .35rem .65rem;
    font-size: .78rem;
    font-weight: 700;
    color: var(--gray);
    cursor: pointer;
    transition: background .2s, color .2s;
}
.lang-btn.active { background: var(--gradient); color: var(--white); }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: .4rem;
}
.menu-toggle span {
    display: block;
    width: 24px; height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 4.5rem 0 5rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 85% 10%, rgba(56, 189, 248, .16), transparent),
        radial-gradient(ellipse 55% 55% at 10% 90%, rgba(139, 92, 246, .18), transparent),
        var(--white);
    z-index: -1;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 3rem;
    align-items: center;
}

.badge {
    display: inline-block;
    background: rgba(139, 92, 246, .12);
    color: var(--primary-purple-dark);
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .35rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.2rem;
}

.hero h1 {
    font-size: clamp(2rem, 4.2vw, 3.1rem);
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 1.1rem;
    letter-spacing: -.02em;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead {
    font-size: 1.15rem;
    color: var(--gray);
    margin-bottom: 1.8rem;
    max-width: 34rem;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.6rem; }

.hero-trust {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    color: var(--dark-light);
    font-weight: 500;
    font-size: .92rem;
}

/* ---------- Mockup navegador ---------- */
.hero-visual { position: relative; }

.browser-mockup {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, .15);
    transform: perspective(1200px) rotateY(-4deg);
    transition: transform .4s ease;
}
.browser-mockup:hover { transform: perspective(1200px) rotateY(0deg); }

.browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--light);
    padding: .6rem .8rem;
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }
.browser-url {
    flex: 1;
    margin-left: .6rem;
    background: var(--white);
    border-radius: 50px;
    padding: .25rem .9rem;
    font-size: .75rem;
    color: var(--gray);
}

.browser-body { padding: 1.1rem; }

.mock-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.mock-logo {
    width: 70px; height: 16px;
    border-radius: 4px;
    background: var(--gradient);
}
.mock-nav-links { display: flex; gap: 8px; }
.mock-nav-links span { width: 34px; height: 8px; border-radius: 4px; background: var(--light); }

.mock-hero {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.mock-line { height: 12px; border-radius: 6px; background: var(--dark-light); margin-bottom: .6rem; }
.mock-line.w70 { width: 70%; height: 16px; }
.mock-line.w60 { width: 60%; }
.mock-line.w50 { width: 50%; height: 16px; }
.mock-line.light { background: var(--gray-light); opacity: .5; height: 9px; }
.mock-btn {
    width: 90px; height: 26px;
    border-radius: 50px;
    background: var(--gradient);
    margin-top: .8rem;
}
.mock-hero-img {
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(139, 92, 246, .35), rgba(56, 189, 248, .35));
    min-height: 110px;
}

.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.mock-card {
    height: 58px;
    border-radius: var(--radius-sm);
    background: var(--lighter);
    border: 1px solid var(--light);
}

.price-card-float {
    position: absolute;
    bottom: -22px;
    right: -14px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: .8rem 1.3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid var(--primary-purple-light);
    animation: float 4s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.price-old { text-decoration: line-through; color: var(--gray-light); font-size: .9rem; }
.price-now {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
}
.price-note { font-size: .75rem; color: var(--gray); text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Secciones ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--white); }

.section-head { text-align: center; max-width: 40rem; margin: 0 auto 3rem; }
.section-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -.01em;
    margin-bottom: .6rem;
}
.section-head p { color: var(--gray); font-size: 1.05rem; }

/* ---------- Pricing ---------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 420px));
    justify-content: center;
    gap: 1.6rem;
}

.pricing-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--light);
    padding: 2.2rem 2rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pricing-card.featured {
    border: 2px solid var(--primary-purple);
    background: linear-gradient(180deg, rgba(139, 92, 246, .05), var(--white) 40%);
    transform: scale(1.03);
}

.pricing-flag {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: var(--white);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: .3rem 1.1rem;
    border-radius: 50px;
    box-shadow: 0 4px 14px rgba(124, 58, 237, .4);
    white-space: nowrap;
}

.pricing-card h3 { font-size: 1.25rem; }

.pricing-price { display: flex; align-items: baseline; gap: .3rem; }
.pricing-price .currency { font-size: 1.6rem; font-weight: 700; color: var(--primary-purple-dark); }
.pricing-price .amount {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.pricing-price.small .amount { font-size: 2rem; }
.pricing-price .period { color: var(--gray); font-size: .95rem; }

.pricing-renew { color: var(--gray); font-size: .95rem; flex-grow: 1; }

/* ---------- Features ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}

.feature {
    background: var(--lighter);
    border: 1px solid var(--light);
    border-radius: var(--radius);
    padding: 1.8rem 1.5rem;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--primary-purple-light);
}
.feature-icon {
    font-size: 2rem;
    width: 60px; height: 60px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, .14), rgba(56, 189, 248, .14));
    border-radius: 16px;
    margin-bottom: 1rem;
}
.feature h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.feature p { color: var(--gray); font-size: .95rem; }

/* ---------- Pasos ---------- */
.steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 1rem;
    align-items: stretch;
}

.step {
    background: var(--white);
    border: 1px solid var(--light);
    border-radius: var(--radius);
    padding: 1.8rem 1.4rem;
    text-align: center;
    box-shadow: var(--shadow);
}
.step-num {
    width: 46px; height: 46px;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--white);
    font-weight: 800;
    font-size: 1.2rem;
}
.step h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.step p { color: var(--gray); font-size: .93rem; }
.step-arrow {
    align-self: center;
    font-size: 1.6rem;
    color: var(--primary-purple-light);
    font-weight: 700;
}

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: .8rem; }

.faq-item {
    background: var(--white);
    border: 1px solid var(--light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color .2s;
}
.faq-item[open] { border-color: var(--primary-purple-light); }

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 1.1rem 1.3rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--primary-purple);
    transition: transform .2s;
    flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
    padding: 0 1.3rem 1.2rem;
    color: var(--gray);
}

/* ---------- Contacto ---------- */
.contact-card {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 2.5rem;
    background: var(--white);
    border-radius: calc(var(--radius) + 6px);
    border: 1px solid rgba(139, 92, 246, .2);
    box-shadow: var(--shadow-lg);
    padding: 2.8rem;
}

.contact-info h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: .6rem; }
.contact-info > p { color: var(--gray); margin-bottom: 1.6rem; }

.contact-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.contact-list li {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding-left: 1rem;
    border-left: 3px solid var(--primary-purple-light);
}
.contact-list strong { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gray); }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }

.contact-cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}
.contact-note { text-align: center; color: var(--gray); font-size: .88rem; }

/* ---------- Footer ---------- */
.footer {
    background: var(--dark);
    color: var(--light);
    padding: 2.5rem 0;
    margin-top: 2rem;
}
.footer-inner { display: flex; flex-direction: column; gap: 1.4rem; }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-brand img { border-radius: 8px; }
.footer-brand p { color: var(--gray-light); font-size: .88rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-links a { color: var(--primary-blue-light); text-decoration: none; font-size: .92rem; }
.footer-links a:hover { text-decoration: underline; }
.footer-copy { color: var(--gray-light); font-size: .85rem; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 90;
    width: 58px; height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
    color: var(--white);
    box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
    transition: transform .25s ease;
}
.wa-float:hover { transform: scale(1.1) rotate(6deg); }

/* ---------- GDPR ---------- */
.gdpr-banner {
    position: fixed;
    bottom: 0;
    left: 0; right: 0;
    z-index: 200;
    background: var(--white);
    border-top: 1px solid var(--light);
    box-shadow: 0 -8px 30px rgba(31, 41, 55, .15);
    padding: 1rem 0;
}
.gdpr-content {
    width: min(1140px, 92%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.gdpr-content p { font-size: .9rem; color: var(--dark-light); max-width: 46rem; }
.gdpr-actions { display: flex; gap: .7rem; flex-shrink: 0; }

/* ---------- Animación de entrada ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .lead { max-width: none; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
    .pricing-card.featured { transform: none; }
    .steps { grid-template-columns: 1fr; }
    .step-arrow { transform: rotate(90deg); justify-self: center; }
    .contact-card { grid-template-columns: 1fr; padding: 2rem; gap: 1.8rem; }
}

@media (max-width: 720px) {
    .nav {
        position: fixed;
        top: 64px;
        left: 0; right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1.2rem 5%;
        gap: 1rem;
        border-bottom: 1px solid var(--light);
        box-shadow: var(--shadow);
        transform: translateY(-130%);
        transition: transform .3s ease;
    }
    .nav.open { transform: translateY(0); }
    .menu-toggle { display: flex; }
    .menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.open span:nth-child(2) { opacity: 0; }
    .menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .header-actions .btn { display: none; }

    .features-grid { grid-template-columns: 1fr; }
    .hero { padding: 3rem 0 4rem; }
    .price-card-float { right: 0; bottom: -18px; }
    .browser-mockup { transform: none; }
    .section { padding: 3.2rem 0; }
    .gdpr-content { flex-direction: column; align-items: flex-start; }
}
