/* ============================================
   T-Estiliza - Landing Page Styles
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4A148C;          /* Morado profundo */
    --primary-light: #6A1B9A;    /* Morado medio */
    --secondary: #D4AF37;        /* Dorado elegante */
    --gold: #F9D67A;             /* Dorado claro */
    --dark: #1a1a1a;             /* Negro profundo */
    --dark-purple: #2D1B4E;      /* Morado oscuro */
    --light: #FAF8F3;            /* Blanco cálido */
    --white: #ffffff;
    --gray: #666;
    --gray-light: #E8DFD8;       /* Gris dorado suave */
    --gradient: linear-gradient(135deg, #2D1B4E 0%, #4A148C 50%, #D4AF37 100%);
    --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #F9D67A 100%);
    --gradient-purple: linear-gradient(135deg, #2D1B4E 0%, #6A1B9A 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
    background: var(--light);
}

/* Decorative elements */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-gold);
    z-index: 9999;
}

/* ============================================
   NAVEGACIÓN
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--gray-light);
}

.navbar.scrolled {
    padding: 0.5rem 2rem;
    box-shadow: 0 2px 30px rgba(0,0,0,0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 40px;
    transition: height 0.3s ease;
}

.navbar.scrolled .logo img {
    height: 35px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary);
}

.cta-button {
    background: var(--gradient-gold);
    color: var(--dark);
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    min-height: 100vh;
    background: var(--gradient);
    position: relative;
    display: flex;
    align-items: center;
    padding: 6rem 2rem 2rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h100v100H0z" fill="none"/><circle cx="25" cy="25" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
    text-shadow: 0 2px 30px rgba(212, 175, 55, 0.4);
}

.hero-content h1 span {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    flex-wrap: wrap;
}

.download-badges {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
    flex-wrap: wrap;
}

.badge-link {
    transition: all 0.3s;
    display: inline-block;
}

.badge-link:hover {
    transform: translateY(-5px);
    filter: brightness(1.1);
}

.store-badge {
    height: 50px;
    width: auto;
}

.footer-download-link {
    display: inline-block;
    transition: all 0.3s;
    opacity: 0.9;
}

.footer-download-link:hover {
    opacity: 1;
    transform: translateX(5px);
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--dark);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.6);
    background: var(--secondary);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 1rem 2.5rem;
    border: 2px solid white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary);
}

.hero-mockup {
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.mockup-phone {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    background: white;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
    transition: all 0.3s;
}

.mockup-phone:hover {
    transform: scale(1.02);
    box-shadow: 0 35px 90px rgba(212, 175, 55, 0.3);
}

.app-screenshot {
    width: 100%;
    height: auto;
    border-radius: 30px;
    display: block;
}

/* Estilos antiguos del mockup - pueden eliminarse si no se usan */
.mockup-screen {
    background: var(--gradient-purple);
    border-radius: 30px;
    padding: 20px;
    height: 600px;
    display: flex;
    flex-direction: column;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 40px rgba(212, 175, 55, 0.2);
}

.mockup-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/backgrounds/back_estilista.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 0;
}

.mockup-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    position: relative;
    z-index: 1;
}

.mockup-header img {
    height: 50px;
    margin-bottom: 5px;
}

.mockup-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.mockup-card {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.mockup-card:hover {
    background: rgba(212, 175, 55, 0.25);
    border-color: rgba(212, 175, 55, 0.5);
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.mockup-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.5s;
}

.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary:hover::before {
    left: 100%;
}

/* ============================================
   APP SCREENSHOTS SECTION
   ============================================ */

.screenshots {
    padding: 6rem 2rem;
    background: white;
}

.screenshots-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding-top: 2rem;
}

.screenshot-item {
    text-align: center;
}

.screenshot-phone {
    background: white;
    border-radius: 30px;
    padding: 10px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    transition: all 0.3s;
    margin-bottom: 1.5rem;
    border: 3px solid var(--gray-light);
}

.screenshot-phone:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 70px rgba(212, 175, 55, 0.3);
    border-color: var(--gold);
}

.screenshot-phone img {
    width: 100%;
    height: auto;
    border-radius: 25px;
    display: block;
}

.screenshot-item h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.screenshot-item p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features {
    padding: 6rem 2rem;
    background: var(--light);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-gold);
    opacity: 0.3;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: 10px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gray);
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    transition: all 0.3s;
    text-align: center;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(212, 175, 55, 0.25);
    border-color: var(--gold);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-purple);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
    line-height: 1.8;
}

/* ============================================
   PLANS SECTION
   ============================================ */

.plans {
    padding: 6rem 2rem;
    background: white;
}

.plans-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.plan-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.2);
}

.plan-card.featured {
    border: 3px solid var(--secondary);
    background: linear-gradient(135deg, rgba(212,175,55,0.08) 0%, rgba(74,20,140,0.08) 100%);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.2);
}

.plan-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-gold);
    color: var(--dark);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.5);
}

.plan-name {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.plan-price {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plan-duration {
    color: var(--gray);
    margin-bottom: 2rem;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.plan-features li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-features li::before {
    content: '✓';
    color: var(--secondary);
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.plan-features li.disabled {
    color: #ccc;
}

.plan-features li.disabled::before {
    content: '✗';
    color: #ccc;
}

/* ============================================
   BENEFITS SECTION
   ============================================ */

.benefits {
    padding: 6rem 2rem;
    background: var(--dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.benefits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/backgrounds/back_barber.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.benefits-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.benefits-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.benefit-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: start;
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.benefit-text h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.benefit-text p {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

.benefits-image {
    position: relative;
}

.benefits-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-box {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 5px rgba(212, 175, 55, 0.3));
}

.stat-label {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    margin-top: 0.5rem;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    padding: 6rem 2rem;
    background: var(--gradient);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/backgrounds/rosas.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--dark-purple);
    color: white;
    padding: 4rem 2rem 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s;
    text-decoration: none;
    color: white;
}

.social-icon:hover {
    background: var(--gradient-gold);
    transform: translateY(-3px);
    color: var(--dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 968px) {
    .hero-container,
    .benefits-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .benefits-stats {
        grid-template-columns: 1fr;
    }

    .benefit-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .download-badges {
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .screenshots-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 5rem 1rem 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons a {
        width: 100%;
        text-align: center;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .mockup-screen {
        height: 500px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .store-badge {
        height: 44px;
    }
    
    .screenshots-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .mockup-phone {
        max-width: 280px;
    }
}

/* ============================================
   DOWNLOAD MODAL
   ============================================ */

.download-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.download-modal.show {
    opacity: 1;
}

.download-modal-content {
    background: white;
    padding: 3rem 2rem;
    border-radius: 25px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
}

.download-modal.show .download-modal-content {
    transform: scale(1);
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.download-modal-content h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.download-modal-content p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.modal-close-btn {
    background: var(--gradient-gold);
    color: var(--dark);
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 2rem;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
}

.modal-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.6);
}
