/* ============================================
   PHONATIK - ESTILOS PREMIUM
   Paleta oficial Brand Book v1.0
   ============================================ */

@import url('tokens.css');

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

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

/* ============================================
   HEADER
   ============================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.96);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 212, 255, 0.08);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
}

.logo-gradient {
    color: var(--white);
}

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

.nav-menu {
    display: flex;
    gap: 24px;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--silver);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--electric);
}

.header-icons a {
    color: var(--whatsapp-green);
    font-size: 18px;
    transition: var(--transition);
}

.header-icons a:hover {
    color: var(--whatsapp-dark);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    background: radial-gradient(ellipse at 20% 30%, #0D2540, var(--bg-primary));
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 260px;
}

.experience-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--amber), #E6A600);
    color: var(--navy);
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(28px, 7vw, 52px);
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--white);
}

.hero p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-hours {
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

.hero-hours i {
    color: var(--silver);
    margin-right: 6px;
}

.hero-visual {
    flex: 1;
    text-align: center;
}

.verify-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 300px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
}

.verify-card-header {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    padding-bottom: 14px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.verify-card-header i {
    color: var(--electric);
    margin-right: 6px;
}

.verify-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 13px;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.verify-row:first-of-type {
    border-top: none;
}

.verify-row i {
    color: var(--verified);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-15px); }
}

/* Stats del hero — sin contador en cero */
.hero-stats {
    display: flex;
    gap: 16px;
    margin-top: 30px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.hero-stats .stat {
    text-align: center;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.12);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    min-width: 110px;
}

.hero-stats .stat-number {
    font-size: 40px;
    font-weight: 800;
    color: var(--white);
}

.hero-stats .stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--coral), var(--coral-hover));
    color: var(--white);
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-coral);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--silver);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--electric);
    color: var(--electric);
}

.btn-white {
    background: var(--white);
    color: var(--navy);
    font-weight: 600;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
    background: var(--bg-secondary);
    padding: 30px 0;
    border-top: 1px solid rgba(0, 212, 255, 0.06);
    border-bottom: 1px solid rgba(0, 212, 255, 0.06);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    text-align: center;
}

.trust-item i {
    font-size: 24px;
    color: var(--silver);
    margin-bottom: 8px;
    display: block;
}

.trust-item span {
    font-size: 10px;
    color: var(--text-secondary);
}

/* ============================================
   SECCIONES
   ============================================ */
.section {
    padding: 60px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.section-dark {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: clamp(24px, 6vw, 38px);
    margin-bottom: 16px;
}

.section-header p {
    max-width: 550px;
    margin: 0 auto;
    color: var(--text-secondary);
}

/* ============================================
   GRIDS
   ============================================ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.services-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.category-card, .service-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 28px 20px;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.category-card:hover, .service-card:hover {
    transform: translateY(-4px);
    border-color: var(--electric);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.1);
}

.category-card i, .service-card i {
    font-size: 40px;
    color: var(--silver);
    margin-bottom: 14px;
    display: block;
}

.category-card h3, .service-card h4 {
    color: var(--text-primary);
    margin-bottom: 6px;
    font-size: 16px;
}

.category-card p, .service-card p {
    font-size: 12px;
    color: var(--text-secondary);
}

.service-card a {
    color: var(--text-primary);
    text-decoration: none;
}

.service-card a:hover {
    color: var(--electric);
}

/* Badges */
.badge {
    display: inline-block;
    background: var(--verified);
    color: var(--navy);
    font-size: 9px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
    margin-top: 10px;
}

.badge-soon {
    background: var(--silver);
    color: var(--navy);
}

/* ============================================
   STEPS
   ============================================ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.step-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 28px 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
}

.step-card:hover {
    border-color: var(--electric);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.1);
}

.step-number {
    width: 44px;
    height: 44px;
    background: var(--bg-secondary);
    border: 2px solid var(--electric);
    color: var(--electric);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    margin: 0 auto 16px;
}

.step-card h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ============================================
   CTA BOX
   ============================================ */
.cta-box {
    background: linear-gradient(135deg, var(--slate), #0D3050);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 40px 24px;
    text-align: center;
}

.cta-box h3 {
    color: var(--white);
    margin-bottom: 8px;
    font-size: 22px;
}

.cta-box h3 i {
    color: var(--electric);
    margin-right: 8px;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 24px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--bg-secondary);
    padding: 48px 0 28px;
    border-top: 1px solid rgba(0, 212, 255, 0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h4 {
    font-size: 14px;
    margin-bottom: 16px;
    color: var(--white);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--silver);
    font-size: 13px;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--electric);
}

.footer-column ul li i {
    width: 20px;
    color: var(--silver);
}

.footer-column ul li a:hover i {
    color: var(--electric);
}

.footer-hours {
    margin-top: 15px;
    font-size: 12px;
    color: var(--silver);
}

.footer-hours i {
    color: var(--silver);
}

.footer-info-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    margin-bottom: 10px;
}

.footer-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--silver);
}

.footer-info-row i {
    color: var(--silver);
    margin-right: 6px;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   ANIMACIONES
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   FLOTANTES
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--electric);
    color: var(--navy);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
    z-index: 99;
}

.back-to-top:hover {
    transform: translateY(-3px);
    background: var(--accent-hover);
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--whatsapp-green);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 26px;
    transition: var(--transition);
    z-index: 100;
}

.whatsapp-float:hover {
    background: var(--whatsapp-dark);
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .category-grid, .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .services-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .trust-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-stats .stat-number {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        order: 1;
    }
    .logo {
        order: 2;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
        font-size: 20px;
    }
    .header-icons {
        order: 3;
    }
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 80%;
        height: calc(100vh - var(--header-height));
        background: var(--navy);
        flex-direction: column;
        align-items: center;
        padding: 30px;
        transition: var(--transition);
        z-index: 999;
    }
    .nav-menu.active {
        left: 0;
    }
    .hero .container {
        flex-direction: column;
        text-align: center;
        padding: 80px 0 50px;
    }
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    .verify-card {
        max-width: 260px;
    }
    .hero-stats {
        justify-content: center;
    }
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .category-grid, .services-grid, .services-grid-3, .steps-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-column ul li {
        justify-content: center;
    }
    .hero-stats .stat {
        padding: 10px 12px;
        min-width: 80px;
    }
    .hero-stats .stat-number {
        font-size: 28px;
    }
    .hero-stats .stat-label {
        font-size: 10px;
    }
    .section {
        padding: 40px 0;
    }
    .cta-box {
        padding: 30px 20px;
    }
    .cta-box h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    .hero p {
        font-size: 13px;
    }
    .trust-item i {
        font-size: 20px;
    }
    .trust-item span {
        font-size: 9px;
    }
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    .hero-stats .stat-number {
        font-size: 22px;
    }
    .hero-stats .stat-label {
        font-size: 9px;
    }
    .hero-stats .stat {
        padding: 8px 10px;
        min-width: 80px;
    }
}

@media (max-width: 380px) {
    .hero h1 {
        font-size: 24px;
        letter-spacing: -0.5px;
    }
    .hero p {
        font-size: 13px;
    }
    .hero-stats {
        gap: 6px;
    }
    .hero-stats .stat {
        padding: 6px 8px;
        min-width: 0;
        flex: 1;
    }
    .hero-stats .stat-number {
        font-size: 18px;
    }
    .hero-stats .stat-label {
        font-size: 8px;
    }
    .hero-buttons .btn {
        font-size: 13px;
        padding: 10px 16px;
    }
    .section-title {
        font-size: 22px;
    }
    .container {
        padding: 0 16px;
    }
}

/* ============================================
   COMPARISON TABLE — Phonatik vs Marketplace
   ============================================ */
.comparison-table {
    max-width: 760px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.08);
}

.comparison-row {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.6fr;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-head {
    background: rgba(0, 212, 255, 0.06);
    font-weight: 700;
}

.comparison-cell {
    padding: 16px 14px;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--text-primary);
}

.comparison-head .comparison-them,
.comparison-head .comparison-us {
    justify-content: center;
    text-align: center;
    color: var(--text-primary);
}

.comparison-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.comparison-them {
    color: var(--text-muted);
    justify-content: center;
    text-align: center;
}

.comparison-us {
    color: var(--text-primary);
    font-weight: 600;
}

.comparison-us i {
    color: var(--verified);
    margin-right: 8px;
}

@media (max-width: 600px) {
    .comparison-cell {
        font-size: 12px;
        padding: 12px 8px;
    }
    .comparison-label {
        font-size: 11px;
    }
}
