/* 
   Promptia Landing Page Styles
   Estética: Dark Premium, Glassmorphism, Modern Gradients
*/

:root {
    --bg-dark: #0a0a0c;
    --bg-card: #16161a;
    --primary: #e11d48;
    /* Crimson */
    --primary-light: #fb7185;
    --primary-gradient: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    --accent-gradient: linear-gradient(135deg, #f43f5e 0%, #9f1239 100%);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --container-width: 1200px;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

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

/* Navbar */
.navbar {
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-main);
}

.logo img {
    height: 32px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Buttons */
.btn-primary,
.btn-main {
    background: var(--primary-gradient);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.btn-primary:hover,
.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(225, 29, 72, 0.4);
}

.btn-secondary {
    background: var(--glass);
    color: var(--text-main);
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--glass-border);
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Hero */
.hero {
    padding-top: 160px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.hero-content {
    max-width: 700px;
    margin-bottom: 4rem;
}

.badge {
    display: inline-block;
    background: rgba(225, 29, 72, 0.1);
    color: var(--primary-light);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(225, 29, 72, 0.2);
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

/* Mockup de la extensión */
.hero-preview {
    margin-top: 2rem;
}

.dashboard-mockup {
    background: #111114;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    height: 400px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.mockup-header {
    height: 45px;
    background: #1a1a1f;
    display: flex;
    align-items: center;
    padding: 0 1.2rem;
    gap: 1rem;
}

.dots {
    display: flex;
    gap: 6px;
}

.dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.search-bar {
    background: #0a0a0c;
    border-radius: 8px;
    height: 25px;
    flex: 1;
    max-width: 400px;
    color: var(--text-muted);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    padding-left: 1rem;
}

.mockup-body {
    display: flex;
    height: calc(100% - 45px);
}

.sidebar {
    width: 220px;
    border-right: 1px solid var(--glass-border);
    background: #0e0e11;
}

.main-content {
    flex: 1;
    padding: 2rem;
}

.item-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.item {
    background: var(--bg-card);
    height: 120px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

/* Features */
.features {
    padding: 100px 0;
    background: radial-gradient(circle at bottom left, rgba(225, 29, 72, 0.05) 0%, transparent 40%);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(225, 29, 72, 0.3);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(225, 29, 72, 0.1);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
}

.cta-container {
    background: linear-gradient(135deg, #16161a 0%, #0a0a0c 100%);
    padding: 4rem;
    border-radius: 32px;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cta-content {
    max-width: 500px;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.big-icon {
    font-size: 8rem;
    color: var(--primary);
    opacity: 0.5;
    filter: drop-shadow(0 0 30px rgba(225, 29, 72, 0.3));
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--glass-border);
    background: #050507;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1.5rem;
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-main);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    font-size: 1.2rem;
}

.social-links a {
    color: var(--text-muted);
}

/* Pricing Section */
.pricing {
    padding: 100px 0;
    position: relative;
}

.pricing::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.05) 0%, transparent 70%);
    z-index: -1;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.pricing-card {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: 32px;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, border-color 0.3s;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    background: linear-gradient(180deg, rgba(225, 29, 72, 0.05) 0%, #16161a 100%);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.plan-header h3 {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.pricing-card.featured .plan-header h3 {
    color: var(--text-main);
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.price span {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 400;
}

.plan-features {
    list-style: none;
    margin-bottom: 3rem;
    flex: 1;
}

.plan-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-muted);
}

.plan-features li i {
    color: var(--primary);
    font-size: 0.9rem;
}

.pricing-card .btn-main,
.pricing-card .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 1rem;
}

.pricing-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Pricing Section */
.pricing {
    padding: 100px 0;
    position: relative;
}

.pricing::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.05) 0%, transparent 70%);
    z-index: -1;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.pricing-card {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: 32px;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, border-color 0.3s;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    /* Verde para destacar el plan actual/lite */
    background: linear-gradient(180deg, rgba(225, 29, 72, 0.05) 0%, #16161a 100%);
}

.user-plan-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.plan-header h3 {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.price span {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 400;
}

.plan-features {
    list-style: none;
    margin-bottom: 3rem;
    flex: 1;
}

.plan-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-muted);
}

.plan-features li i {
    color: var(--primary);
    font-size: 0.9rem;
}

.plan-features li i.fa-cloud {
    color: #3b82f6;
}

.plan-features li i.fa-hdd {
    color: #64748b;
}

.pricing-card .btn-main,
.pricing-card .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 1rem;
}

.pricing-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    opacity: 0.7;
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 1100px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar .btn-primary {
        display: none;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .cta-container {
        flex-direction: column;
        text-align: center;
    }

    .cta-content {
        margin-bottom: 3rem;
    }

    .hero-btns {
        flex-direction: column;
    }
}