/* 
   NUESTRAS HISTORIAS - DARK LUXURY DESIGN SYSTEM 
   Color Principal: #FFD700 (Dorado Premium)
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@700;800&family=Inter:wght@400;500;600&family=Great+Vibes&display=swap');

:root {
    /* FONDOS */
    --bg-primary: #000000;
    --bg-secondary: #09090B;
    --bg-tertiary: #18181B;

    /* ACENTO PRIMARIO (Dorado #FFD700) */
    --primary-50:  #FFFDF0;
    --primary-100: #FFF9C4;
    --primary-200: #FFF185;
    --primary-300: #FFE447;
    --primary-400: #FFD700; /* Color base */
    --primary-500: #FFC107;
    --primary-600: #E6A800;
    --primary-700: #B38600;
    --primary-800: #806000;
    --primary-900: #4D3900;
    
    --primary-rgb: 255, 215, 0;

    /* TEXTOS */
    --text-primary: #FFFFFF;
    --text-secondary: #E4E4E7;
    --text-tertiary: #A1A1AA;
    --text-quaternary: #71717A;

    /* ACENTOS SECUNDARIOS */
    --success: #22C55E;
    --info: #3B82F6;
    --warning: #F59E0B;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-primary);
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    padding: 16px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 44px;
    filter: drop-shadow(0 0 10px rgba(var(--primary-rgb), 0.5));
}

.logo-text {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8rem;
    color: var(--primary-400);
    text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.3);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-400);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-400);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* HERO SECTION */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top, rgba(var(--primary-rgb), 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-label {
    display: inline-block;
    color: var(--primary-400);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 24px;
    opacity: 0;
}

.hero-title {
    font-size: 76px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    opacity: 0;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-tertiary);
    max-width: 600px;
    margin-bottom: 40px;
    opacity: 0;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    opacity: 0;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.sphere {
    width: 500px;
    height: 500px;
    position: relative;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

.sphere-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 40px rgba(var(--primary-rgb), 0.3));
}

/* BUTTONS */
.btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(
        135deg,
        var(--primary-600) 0%,
        var(--primary-400) 30%,
        #FFE082 60%,
        var(--primary-400) 100%
    );
    background-size: 200% 200%;
    color: #000;
    border: none;
    animation: gradient-shift 4s ease infinite, pulse-glow 3s ease-in-out infinite;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.1);
}

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

.btn-outline:hover {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: var(--primary-400);
}

/* SECCIONES COMMON */
.section {
    padding: 120px 0;
    position: relative;
}

.section-label {
    text-align: center;
    color: var(--primary-400);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 12px;
}

.section-title {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 60px;
}

/* SOCIAL PROOF */
.social-proof {
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item h3 {
    font-size: 40px;
    color: var(--primary-400);
}

.stat-item p {
    color: var(--text-tertiary);
    font-size: 14px;
}

/* SERVICES FLIP CARDS */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card-flip {
    height: 400px;
    perspective: 1000px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
}

.service-card-flip:hover .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front, .service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 24px;
    overflow: hidden;
}

.service-card-front {
    background: var(--bg-tertiary);
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card-flip:hover .service-image {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 32px;
}

.service-title-front {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
}

.service-card-back {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.12) 0%, rgba(var(--primary-rgb), 0.04) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    transform: rotateY(180deg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.service-title-back {
    font-size: 24px;
    color: var(--primary-400);
    margin-bottom: 20px;
}

.service-description {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 24px;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.feature-tag {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-300);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}

/* ABOUT SECTION */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-img-wrap {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    box-shadow: 0 0 40px rgba(var(--primary-rgb), 0.1);
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content h2 {
    font-size: 48px;
    margin-bottom: 24px;
}

.about-content p {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 32px;
}

/* FINAL CTA */
.final-cta {
    background: radial-gradient(circle at center, rgba(var(--primary-rgb), 0.2) 0%, transparent 70%);
    text-align: center;
    padding: 160px 0;
}

.final-cta-title {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 24px;
}

.final-cta-subtitle {
    font-size: 20px;
    color: var(--text-tertiary);
    margin-bottom: 48px;
}

/* FOOTER */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 24px;
    color: #fff;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
    color: var(--text-quaternary);
    font-size: 14px;
}

/* ANIMATIONS */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(2deg); }
    50% { transform: translateY(-10px) rotate(-2deg); }
    75% { transform: translateY(-30px) rotate(1deg); }
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 
            0 0 0 1px rgba(var(--primary-rgb), 0.5),
            0 4px 24px rgba(var(--primary-rgb), 0.4),
            0 0 60px rgba(var(--primary-rgb), 0.3);
    }
    50% {
        box-shadow: 
            0 0 0 2px rgba(var(--primary-rgb), 0.8),
            0 8px 40px rgba(var(--primary-rgb), 0.6),
            0 0 80px rgba(var(--primary-rgb), 0.5);
    }
}

.fade-in-up {
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* PARTICLES */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-400);
    border-radius: 50%;
    opacity: 0.3;
}

@keyframes float-particle {
    0%, 100% { transform: translate(0, 0); opacity: 0.2; }
    50% { transform: translate(100px, -100px); opacity: 0.5; }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-title { font-size: 56px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .hero { flex-direction: column; text-align: center; height: auto; padding-bottom: 80px; }
    .hero-title { font-size: 40px; }
    .hero-subtitle { margin: 0 auto 40px; }
    .hero-ctas { justify-content: center; }
    .sphere { width: 300px; height: 300px; margin-top: 40px; }
    .services-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-links { display: none; }
    .final-cta-title { font-size: 40px; }
}
