/* 
==================================
  VARIABLES Y RESET
================================== 
*/
:root {
    /* Paleta de Colores (Premium Dark Theme) */
    --bg-dark: #09090b;
    --bg-card: rgba(24, 24, 27, 0.6);
    --bg-card-hover: rgba(39, 39, 42, 0.8);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #0ea5e9;
    /* Cyan / Blue vibrante */
    --primary-hover: #0284c7;
    --primary-glow: rgba(14, 165, 233, 0.4);
    --secondary: #f97316;
    /* Naranja vibrante para el CTA */
    --secondary-hover: #ea580c;
    --border: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.2);
    /* Fuentes */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    /* Transiciones */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}
body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}
/* 
==================================
  TIPOGRAFÍA Y UTILIDADES
================================== 
*/
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 1rem;
}
.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
    color: var(--text-main);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}
/* 
==================================
  NAVBAR (GLASSMORPHISM)
================================== 
*/
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 5%;
    z-index: 1000;
    transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 5%;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}
.logo span {
    color: var(--primary);
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}
.nav-item {
    font-weight: 500;
    color: var(--text-muted);
}
.nav-item:hover {
    color: var(--primary);
}
.btn-nav {
    background: linear-gradient(135deg, var(--primary), #0284c7);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    color: white !important;
    font-weight: 600;
}
.btn-nav:hover {
    box-shadow: 0 4px 15px var(--primary-glow);
}
.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}
/* 
==================================
  HERO SECTION
================================== 
*/
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
}
.hero-blur {
    position: absolute;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.5;
    border-radius: 50%;
}
.hero-blur.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -10%;
    left: -5%;
}
.hero-blur.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: 10%;
    right: 5%;
    opacity: 0.3;
}
.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 10;
}
.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}
.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
}
.hero-image-wrapper {
    flex: 1;
    height: 600px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    /* Usamos una imagen profesional de galería provisional */
    background: linear-gradient(rgba(9, 9, 11, 0.4), rgba(9, 9, 11, 0.4)), url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?q=80&w=2034&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    border-radius: 30px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
/* Glass Card Estilo Reutilizable */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
}
.hero-stats {
    position: absolute;
    bottom: -30px;
    left: -50px;
    display: flex;
    gap: 2rem;
    animation: float 6s ease-in-out infinite;
}
.stat {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.stat i {
    font-size: 2rem;
    color: var(--primary);
}
.stat h4 {
    font-size: 1.5rem;
}
.stat p {
    font-size: 0.9rem;
    color: var(--text-muted);
}
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}
/* 
==================================
  SERVICES SECTION
================================== 
*/
.services {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    border: 1px solid rgba(14, 165, 233, 0.2);
}
.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}
.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, var(--primary-glow), transparent 60%);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}
.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: var(--bg-card-hover);
}
.service-card:hover::before {
    opacity: 1;
}
.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(14, 165, 233, 0.2);
    transition: var(--transition);
}
.service-card:hover .service-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
}
.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}
.service-link i {
    transition: var(--transition);
}
.service-card:hover .service-link i {
    transform: translateX(5px);
}
/* 
==================================
  CTA BANNER
================================== 
*/
.cta-section {
    padding: 2rem 5% 6rem;
    max-width: 1200px;
    margin: 0 auto;
}
.cta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, rgba(24, 24, 27, 0.8), rgba(9, 9, 11, 0.9));
    border-left: 4px solid var(--primary);
    flex-wrap: wrap;
    gap: 2rem;
}
.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.cta-content p {
    color: var(--text-muted);
    max-width: 600px;
}
/* 
==================================
  CONTACT SECTION
================================== 
*/
.contact {
    padding: 6rem 5%;
    background: #000;
    position: relative;
}
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
}
.info-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}
.info-item p {
    color: var(--text-muted);
}
.social-links {
    display: flex;
    gap: 1rem;
}
.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
}
.social-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}
.contact-form {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border);
}
.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 select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-main);
    font-family: inherit;
    transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}
.submit-btn {
    width: 100%;
    justify-content: center;
}
/* 
==================================
  FOOTER
================================== 
*/
footer {
    background: #050505;
    padding: 4rem 5% 2rem;
    border-top: 1px solid var(--border);
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 3rem;
}
.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}
.footer-logo span {
    color: var(--primary);
}
.footer-logo p {
    color: var(--text-muted);
    max-width: 300px;
}
.footer-links h4,
.footer-services h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}
.footer-links ul,
.footer-services ul {
    list-style: none;
}
.footer-links li,
.footer-services li {
    margin-bottom: 0.8rem;
}
.footer-links a,
.footer-services a {
    color: var(--text-muted);
}
.footer-links a:hover,
.footer-services a:hover {
    color: var(--primary);
    text-decoration: underline;
}
.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
/* 
==================================
  ANIMACIONES (JS REVEAL)
================================== 
*/
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s ease;
}
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s ease;
}
.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}
.active.reveal-up,
.active.reveal-left,
.active.reveal-right,
.active.reveal-text {
    opacity: 1;
    transform: translate(0);
}
.delay-1 {
    transition-delay: 0.15s;
}
.delay-2 {
    transition-delay: 0.3s;
}
.delay-3 {
    transition-delay: 0.45s;
}
/* 
==================================
  RESPONSIVE
================================== 
*/
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        padding-top: 120px;
        text-align: center;
    }
    .hero-content {
        margin-bottom: 3rem;
    }
    .hero h1 {
        font-size: 3rem;
    }
    .hero p {
        margin: 0 auto 2rem;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-image-wrapper {
        width: 100%;
        height: 400px;
    }
    .hero-stats {
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        justify-content: center;
    }
    .contact-container {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(9, 9, 11, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-out;
    }
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
}