/* Variables Avanzadas */
:root {
    --bg-dark: #050507; /* Negro más profundo con toque azul/púrpura sutil */
    --bg-card: rgba(20, 20, 25, 0.6);
    --primary: #FFD700; /* Oro intenso */
    --primary-hover: #F2C900;
    --text-main: #FFFFFF;
    --text-muted: #A0A0AB;
    --border: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(255, 215, 0, 0.2);
    --gradient-gold: linear-gradient(135deg, #FFD700, #B8860B);
    --glass-blur: blur(16px);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
}

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

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    line-height: 1.1;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tipografía Especial */
.text-gradient {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

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

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.section-title.left {
    text-align: left;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Utilidades */
.mt-xl { margin-top: 5rem; }
.icon-sm { width: 18px; height: 18px; display: inline-block; vertical-align: middle; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 5, 7, 0.7);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: padding 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.5px;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

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

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

/* Botones */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.9rem; }

.btn-primary {
    background: var(--primary);
    color: #000;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background: #FFF;
    color: #000;
}

.btn-outline {
    border-color: var(--border);
    color: var(--text-main);
    background: rgba(255,255,255,0.05);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(255, 215, 0, 0.05);
}

.full-width { width: 100%; }

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.glow-bg {
    position: absolute;
    top: 20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,215,0,0.15) 0%, transparent 70%);
    z-index: -1;
    filter: blur(60px);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.hero-content h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

.stat { display: flex; flex-direction: column; }
.stat-number { font-size: 2rem; font-weight: 800; font-family: 'Outfit'; color: var(--text-main); }
.stat-label { font-size: 0.85rem; color: var(--text-muted); }

/* Bento Grid Hero Visual */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 1.5rem;
}

.bento-item {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bento-item:hover img {
    transform: scale(1.05);
}

.img-1 { grid-column: 1 / 2; grid-row: 1 / 3; }
.img-2 { grid-column: 2 / 3; grid-row: 1 / 2; }
.img-3 { grid-column: 2 / 3; grid-row: 2 / 3; }

/* Portafolio Masonry */
.portfolio-section { padding: 8rem 0; background: #020202; }

.masonry-grid {
    column-count: 2;
    column-gap: 1.5rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
}

.masonry-item img {
    width: 100%;
    display: block;
    transition: transform 0.7s ease;
}

.masonry-item:hover img { transform: scale(1.08); }

/* Tilt Card Effect base (JS maneja transform) */
.tilt-card {
    transform-style: preserve-3d;
    will-change: transform;
}

/* Services */
.services-section { padding: 8rem 0; }

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

.service-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    transition: border-color 0.3s;
}

.service-card:hover { border-color: var(--border-glow); }

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

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

/* Pricing */
.pricing-section { padding: 8rem 0; background: #020202; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: center;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    backdrop-filter: var(--glass-blur);
}

.pricing-card.popular {
    background: rgba(25, 20, 5, 0.8);
    border: 1px solid var(--primary);
    transform: scale(1.05);
    z-index: 2;
}

.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-gold);
    color: #000;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-header { margin-bottom: 2rem; text-align: center; }
.card-icon { width: 40px; height: 40px; color: var(--primary); margin-bottom: 1rem; }
.card-header h3 { font-size: 1.3rem; margin-bottom: 0.5rem; color: var(--text-muted); }
.card-header .price { font-size: 3rem; font-weight: 800; font-family: 'Outfit'; color: var(--text-main); }

.features { list-style: none; margin-bottom: 2.5rem; flex-grow: 1; }
.features li { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.2rem; color: var(--text-muted); font-size: 0.95rem; }
.features li svg { color: var(--primary); width: 18px; flex-shrink: 0; }

.custom-banner {
    margin-top: 5rem;
    background: linear-gradient(90deg, rgba(20,20,25,0.8), rgba(40,35,10,0.8));
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* FAQ */
.faq-section { padding: 8rem 0; }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 2rem 0;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: inherit;
}
.faq-question .arrow { transition: transform 0.3s; color: var(--primary); }
.faq-question.active .arrow { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer p { padding-bottom: 2rem; color: var(--text-muted); }

/* Contacto */
.contact-section { padding: 8rem 0; background: #020202; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.contact-list { list-style: none; margin-top: 2rem; }
.contact-list li { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; color: var(--text-muted); }
.contact-list li svg { color: var(--primary); }

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    backdrop-filter: var(--glass-blur);
    padding: 3rem;
    border-radius: 24px;
}

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--text-muted); }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 1.2rem;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border);
    color: var(--text-main);
    border-radius: 12px;
    font-family: inherit;
    transition: all 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0,0,0,0.8);
}

.error-text { color: #ff4d4d; font-size: 0.8rem; margin-top: 0.5rem; display: block; }
.form-status { margin-top: 1rem; font-weight: 500; text-align: center; }
.form-status.success { color: #25d366; }
.form-status.error { color: #ff4d4d; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 3rem 0; }
.footer-container { display: flex; justify-content: space-between; align-items: center; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: var(--text-muted); transition: color 0.3s; }
.footer-social a:hover { color: var(--primary); }

/* WhatsApp */
.whatsapp-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.whatsapp-tooltip {
    background: #FFF;
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.whatsapp-wrapper:hover .whatsapp-tooltip { opacity: 1; transform: translateX(0); }
.whatsapp-btn {
    width: 65px;
    height: 65px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s;
}

/* Responsivo */
@media (max-width: 968px) {
    .hero-container, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .hero-content { text-align: center; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .custom-banner { flex-direction: column; text-align: center; gap: 2rem; }
    .pricing-card.popular { transform: scale(1); }
    .footer-container { flex-direction: column; gap: 1.5rem; text-align: center; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .masonry-grid { column-count: 1; }
}
