/* ═══════════════════════════════════════════════════════════════
   PLANES.CSS — Pricing Page Styling with Animations
   ═══════════════════════════════════════════════════════════════ */

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

:root {
    --primary: #d92027;
    --primary-dark: #b31b20;
    --primary-light: #fdf2f2;
    --accent: #c39c43;
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #1a202c;
    --muted: #64748b;
    --border: #e2e8f0;
    --transition: 0.3s cubic-bezier(0.16,1,0.3,1);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.reveal {
    opacity: 0;
    animation: fadeUp 0.6s ease-out forwards;
}

.reveal.visible {
    opacity: 1;
}

/* ══════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════ */
header {
    background: var(--surface);
    border-bottom: 3px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: box-shadow var(--transition);
}

header.scrolled {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    user-select: none;
    transition: transform var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1;
    color: var(--text);
}

.logo-text span.r {
    color: var(--primary);
}

.logo-text span.g {
    color: var(--text);
}

.logo-text span.c {
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 600;
}

.logo-sub {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    margin-top: 2px;
}

.header-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: color var(--transition), transform var(--transition);
}

.header-links a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-login {
    border: 1.5px solid var(--border);
    padding: 0.45rem 1rem;
    border-radius: 8px;
}

.btn-login:hover {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

/* ══════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════ */
.hero {
    background: linear-gradient(rgba(17, 24, 39, 0.8), rgba(17, 24, 39, 0.9)), url('https://images.unsplash.com/photo-1552519507-da3b142c6e3d?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center 60%;
    background-attachment: fixed;
    padding: 5rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(217,32,39,0.1), transparent 50%),
                radial-gradient(ellipse at 80% 80%, rgba(195,156,67,0.08), transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
    animation: fadeUp 0.6s ease-out;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: fadeUp 0.8s ease-out 0.1s backwards;
    position: relative;
    z-index: 2;
}

.hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.82);
    max-width: 550px;
    margin: 0 auto 2rem;
    animation: fadeUp 0.8s ease-out 0.2s backwards;
    position: relative;
    z-index: 2;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}

.hero-stat {
    animation: fadeUp 0.8s ease-out 0.3s backwards;
    transition: transform var(--transition);
}

.hero-stat:hover {
    transform: translateY(-5px);
}

.hero-stat strong {
    font-size: 1.8rem;
    font-weight: 800;
    display: block;
    color: var(--accent);
}

.hero-stat span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    margin-top: 0.25rem;
}

/* ══════════════════════════════════════════════
   PRICING SECTION
   ══════════════════════════════════════════════ */
.pricing-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeUp 0.6s ease-out;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title p {
    color: var(--muted);
    font-size: 1rem;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.plan-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform var(--transition),
                box-shadow var(--transition),
                border-color var(--transition);
    position: relative;
    animation: fadeUp 0.6s ease-out backwards;
}

.plan-card:nth-child(1) { animation-delay: 0.1s; }
.plan-card:nth-child(2) { animation-delay: 0.2s; }
.plan-card:nth-child(3) { animation-delay: 0.3s; }

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.plan-card.destacado {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), 0 8px 30px rgba(217,32,39,0.15);
    transform: scale(1.02);
}

.plan-card.destacado:hover {
    transform: scale(1.02) translateY(-8px);
    box-shadow: 0 0 0 1px var(--primary), 0 25px 70px rgba(217,32,39,0.25);
}

.plan-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 0.4rem 1.5rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(217,32,39,0.3);
    animation: scaleIn 0.5s ease-out 0.3s backwards;
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.plan-desc {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
    min-height: 40px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.plan-price .amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.plan-price .currency {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--muted);
}

.plan-price .period {
    font-size: 0.875rem;
    color: var(--muted);
}

.plan-limits {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f5f7fa;
    transition: color var(--transition);
}

.plan-features li:hover {
    color: var(--primary);
}

.plan-features li:last-child {
    border-bottom: none;
}

.feat-icon {
    flex-shrink: 0;
    font-size: 0.9rem;
    display: block;
}

.btn-plan {
    width: 100%;
    padding: 0.9rem;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: all var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-plan::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-plan:hover::before {
    width: 300px;
    height: 300px;
}

.btn-plan-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.btn-plan-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(217,32,39,0.3);
}

.btn-plan-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-plan-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(217,32,39,0.2);
}

/* ══════════════════════════════════════════════
   APPS SECTION
   ══════════════════════════════════════════════ */
.apps-section {
    background: linear-gradient(135deg, #1a1d23 0%, #2d3139 100%);
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.apps-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(217,32,39,0.05), transparent 70%);
    pointer-events: none;
}

.apps-inner {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.apps-section h2 {
    color: white;
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
    animation: fadeUp 0.6s ease-out;
}

.apps-section > p {
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeUp 0.6s ease-out 0.1s backwards;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
}

.app-chip {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all var(--transition);
    animation: fadeUp 0.6s ease-out backwards;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.app-chip:nth-child(1) { animation-delay: 0.2s; }
.app-chip:nth-child(2) { animation-delay: 0.25s; }
.app-chip:nth-child(3) { animation-delay: 0.3s; }
.app-chip:nth-child(4) { animation-delay: 0.35s; }
.app-chip:nth-child(5) { animation-delay: 0.4s; }
.app-chip:nth-child(6) { animation-delay: 0.45s; }
.app-chip:nth-child(7) { animation-delay: 0.5s; }
.app-chip:nth-child(8) { animation-delay: 0.55s; }

.app-chip::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.app-chip:hover::before {
    left: 100%;
}

.app-chip:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(217,32,39,0.5);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(217,32,39,0.2);
}

.app-chip .icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
    transition: transform var(--transition);
}

.app-chip:hover .icon {
    transform: scale(1.15);
}

.app-chip .name {
    font-weight: 700;
    color: white;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.app-chip .desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}

/* ══════════════════════════════════════════════
   CTA SECTION
   ══════════════════════════════════════════════ */
.cta-section {
    padding: 5rem 2rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    animation: fadeUp 0.6s ease-out;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-section p {
    color: var(--muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.btn-main-cta {
    background: linear-gradient(135deg, var(--accent), #d4a574);
    color: white;
    padding: 1.1rem 2.8rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    display: inline-block;
    transition: all var(--transition);
    box-shadow: 0 8px 25px rgba(195,156,67,0.3);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-main-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(195,156,67,0.5);
}

.btn-main-cta:active {
    transform: translateY(-1px);
}

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
footer {
    background: #0f172a;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    padding: 2rem;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color var(--transition);
}

footer a:hover {
    color: var(--accent);
}

/* ══════════════════════════════════════════════
   RESPONSIVE DESIGN
   ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .hero {
        padding: 4rem 1.5rem;
    }

    .pricing-section {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0 1rem;
        height: 70px;
    }

    .logo-text {
        font-size: 1.6rem;
    }

    .hero {
        padding: 3rem 1rem;
        background-attachment: scroll;
    }

    .hero h1 {
        font-size: clamp(1.5rem, 4vw, 2.2rem);
        margin-bottom: 0.75rem;
    }

    .hero p {
        font-size: 0.95rem;
        max-width: 100%;
    }

    .hero-stats {
        gap: 1.5rem;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

    .hero-stat strong {
        font-size: 1.5rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .plan-card {
        padding: 1.5rem;
    }

    .plan-badge {
        padding: 0.3rem 1rem;
        font-size: 0.7rem;
    }

    .plan-name {
        font-size: 1.1rem;
    }

    .plan-price .amount {
        font-size: 2rem;
    }

    .apps-section {
        padding: 3rem 1rem;
    }

    .apps-section h2 {
        font-size: 1.5rem;
    }

    .apps-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .app-chip {
        padding: 1rem;
    }

    .app-chip .icon {
        font-size: 1.5rem;
    }

    .app-chip .name {
        font-size: 0.85rem;
    }

    .app-chip .desc {
        font-size: 0.75rem;
    }

    .cta-section {
        padding: 3rem 1rem;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .btn-main-cta {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .header-inner {
        padding: 0 0.75rem;
    }

    .logo-text {
        font-size: 1.4rem;
    }

    .header-links {
        gap: 0.75rem;
    }

    .header-links a:not(.btn-login) {
        display: none;
    }

    .hero {
        padding: 2.5rem 0.75rem;
    }

    .hero h1 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.3rem 1rem;
    }

    .hero-stats {
        gap: 1rem;
        flex-direction: column;
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .plan-card {
        padding: 1.25rem;
    }

    .plans-grid {
        gap: 1rem;
    }

    .plan-name {
        font-size: 1rem;
    }

    .plan-price .amount {
        font-size: 1.8rem;
    }

    .plan-features li {
        font-size: 0.8rem;
        padding: 0.4rem 0;
    }

    .btn-plan {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

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

    .app-chip {
        padding: 0.8rem;
        border-radius: 10px;
    }

    .app-chip .icon {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .app-chip .name {
        font-size: 0.8rem;
    }

    .cta-section {
        padding: 2rem 0.75rem;
    }

    .cta-section h2 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .cta-section p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .btn-main-cta {
        padding: 0.8rem 1.8rem;
        font-size: 0.95rem;
    }

    footer {
        padding: 1.5rem 0.75rem;
        font-size: 0.75rem;
    }
}
