/* ================================================
   Wabipic — Lista de Precios 2024
   Design System: Premium / High-Contrast
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    /* Brand Palette — Wabipic Official */
    --color-brand: #f9ad4a;
    --color-brand-alt: #f5a623;
    --color-heading: #1a1a1a;
    --color-text: #4a4a4a;
    --color-principal: #d5d5d5;
    --color-secondary: #e8e8e8;
    --color-borde: #2d3e71;
    --color-subtle-bg: #3a3a3a;
    --color-extra: #c8d6ff;
    --color-bg-light: #ffffff;
    --color-bg-dark: #121212;
    --color-bg-dark-accent: #1e1e1e;
    --transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow: 0 10px 40px rgba(0,0,0,0.06);
    --radius: 20px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--color-text);
    background-color: transparent;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Global Backgrounds */
.global-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    z-index: -2;
}
.bg-day {
    background-image: url('../assets/hero-bg.png');
    z-index: -3;
}
.bg-sunset {
    background-image: url('../assets/hero-bg-sunset.png');
    opacity: 0;
    z-index: -2;
}
.bg-night {
    background-image: url('../assets/hero-bg-night.png');
    opacity: 0;
    z-index: -1;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000;
    padding: 1.5rem 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 90px;
}

nav ul {
    display: flex;
    gap: 3rem;
    list-style: none;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--color-heading);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

nav a:hover {
    color: var(--color-brand);
}

.btn-cta {
    background: var(--color-brand);
    color: white !important;
    padding: 0.8rem 2rem;
    border-radius: 50px;
}

/* Hero */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: transparent;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
}

.hero-inner {
    position: relative;
    z-index: 10;
    max-width: 900px;
}

.hero .badge {
    background: var(--color-brand);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    display: inline-block;
}

.hero h1 {
    font-size: 5rem;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: var(--color-brand);
}

.hero p {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 3rem;
}

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

.btn-primary {
    background: var(--color-brand);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(252, 139, 35, 0.3);
    transition: var(--transition);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Pricing Section */
.pricing-section {
    padding: 150px 0;
    background: var(--color-bg-light);
}

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

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

.section-header h2 span { color: var(--color-brand); }

.pricing-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 5rem;
}

.tab-btn {
    background: var(--color-secondary);
    border: 1px solid transparent;
    padding: 1.5rem 2rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: var(--radius);
    transition: all var(--transition-bounce);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    background: #ffffff;
    color: var(--color-brand);
    border-color: var(--color-brand-alt);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(249, 173, 74, 0.15);
}

.tab-btn span {
    display: block;
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 0.3rem;
}

.tab-btn.active {
    background: var(--color-brand);
    color: white;
    border-color: var(--color-brand);
    box-shadow: 0 15px 30px rgba(252, 139, 35, 0.2);
}

.tab-btn.active span { color: white; opacity: 0.8; }

.price-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.price-card {
    background: white;
    padding: 4rem 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.02);
    position: relative;
    transition: var(--transition);
}

.price-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--color-borde);
    background: #fff;
    z-index: 10;
}

.price-card .card-tag {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--color-brand);
}

.price-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.price-card .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-heading);
    margin-bottom: 2.5rem;
}

.price-card .features {
    list-style: none;
    margin-top: 2rem;
}

.price-card .features li {
    padding: 1rem 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: 0.95rem;
    color: var(--color-text);
}

/* Tab logic */
.tab-content { display: none; opacity: 0; transform: translateY(20px); transition: opacity 0.4s ease, transform 0.4s ease;}
.tab-content.active { display: block; opacity: 1; transform: translateY(0); }

/* Modular Section */
.modular-section {
    background: transparent;
    padding: 150px 0;
}

.section-header.white h2 { color: white; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.section-header.white p { color: rgba(255,255,255,0.8); text-shadow: 0 2px 10px rgba(0,0,0,0.5); }

.modular-table-wrapper {
    background: rgba(30, 30, 30, 0.4);
    backdrop-filter: blur(15px);
    padding: 3rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.1);
}

.modular-table {
    width: 100%;
    border-collapse: collapse;
    color: white;
}

.modular-table th {
    text-align: left;
    padding: 1.5rem;
    color: var(--color-brand);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--color-borde);
}

.modular-table td {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 1.1rem;
}

.modular-table tr:hover td {
    background: rgba(255,255,255,0.02);
}

/* Definitions Section */
.definitions-section {
    padding: 100px 0;
    background: var(--color-secondary);
}

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

.def-card {
    text-align: center;
    padding: 3rem;
}

.def-card .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.def-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Conditions Section */
.conditions-section {
    padding: 100px 0;
    background: var(--color-bg-light);
}

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

.condition-item h5 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--color-heading);
    position: relative;
}

.condition-item h5::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--color-brand);
    margin-top: 0.5rem;
}

.condition-item p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

/* CTA Final */
.cta-final {
    padding: 150px 0;
    text-align: center;
    background: transparent;
}

.cta-final h2 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 3rem;
}

.cta-final h2 span { color: var(--color-brand); }

.btn-primary.large {
    padding: 1.5rem 4rem;
    font-size: 1.2rem;
}

/* Footer */
footer {
    padding: 100px 0 50px;
    background: rgba(0,0,0,0.5); /* Subtle dark overlay to ensure readability over the night image */
    color: white;
    backdrop-filter: blur(10px);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-info img { height: 75px; margin-bottom: 1rem; }
.footer-contact p { opacity: 0.7; }

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.footer-bottom p { opacity: 0.4; font-size: 0.85rem; }

/* Responsive */
@media (max-width: 1024px) {
    .price-cards-grid { grid-template-columns: 1fr; }
    .price-card.featured { transform: scale(1); }
    .hero h1 { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    .pricing-tabs { flex-direction: column; }
    .hero h1 { font-size: 2.5rem; }
    .footer-grid { flex-direction: column; gap: 3rem; }
    .header-content nav { display: none; }
}
