/**
 * StarBlue Studio - Custom Styles
 * Estilos personalizados para complementar Tailwind CSS
 */

/* =============================================
   BASE STYLES
============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: #080810;
    color: #ffffff;
    overflow-x: hidden;
}

/* =============================================
   SCROLLBAR
============================================= */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f0f1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #a855f7, #0ea5e9);
    border-radius: 4px;
}

/* =============================================
   WATERMARK STAR BACKGROUND - INTERCALADO
============================================= */
section {
    position: relative;
}

/* Estrellas en el lado IZQUIERDO */
#inicio::before,
#requisitos::before,
#faq::before {
    content: '';
    position: absolute;
    top: 30%;
    left: -150px;
    width: 500px;
    height: 500px;
    background: url('../estrellalogoblanco.svg') no-repeat center;
    background-size: contain;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

/* Estrellas en el lado DERECHO */
#nosotros::before,
#beneficios::before,
#contacto::before {
    content: '';
    position: absolute;
    top: 30%;
    right: -150px;
    width: 500px;
    height: 500px;
    background: url('../estrellalogoblanco.svg') no-repeat center;
    background-size: contain;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

/* Estrellas para páginas de Términos y Privacidad - Patrón Repetido */
main {
    position: relative;
}

main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../estrellalogoblanco.svg') repeat-y;
    background-size: 400px;
    background-position: -100px 0, calc(100% + 100px) 300px;
    opacity: 0.04;
    z-index: 0;
    pointer-events: none;
}

main::after {
    content: '';
    position: absolute;
    top: 300px;
    right: -100px;
    width: 100%;
    height: calc(100% - 300px);
    background: url('../estrellalogoblanco.svg') repeat-y right;
    background-size: 400px;
    opacity: 0.04;
    z-index: 0;
    pointer-events: none;
}

/* =============================================
   ROOMS SLIDER
============================================= */
.rooms-slider {
    position: relative;
}

.rooms-slider-track {
    will-change: transform;
}

.slider-btn {
    opacity: 0.8;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dots .dot.active {
    background: linear-gradient(135deg, #0ea5e9, #a855f7);
    transform: scale(1.2);
}

.slider-dots .dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .slider-btn {
        width: 40px;
        height: 40px;
    }
    
    .slider-btn i {
        width: 20px;
        height: 20px;
    }
}

/* =============================================
   GRADIENT TEXT
============================================= */
.gradient-text {
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 50%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =============================================
   GLASS EFFECT
============================================= */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* =============================================
   HERO BACKGROUND
============================================= */
.hero-bg {
    position: relative;
    background: linear-gradient(135deg, #080810 0%, #0f0f1a 50%, #0c4a6e 100%);
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(14, 165, 233, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(168, 85, 247, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

/* =============================================
   GRID PATTERN
============================================= */
.grid-pattern {
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* =============================================
   FLOATING ORBS
============================================= */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    pointer-events: none;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #0ea5e9, #0369a1);
    bottom: 10%;
    left: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

.orb-3 {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    top: 40%;
    right: 20%;
    animation: float 7s ease-in-out infinite;
}

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

/* =============================================
   BENTO ITEMS
============================================= */
.bento-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.bento-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.bento-item:hover {
    transform: translateY(-5px);
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
                0 0 30px rgba(14, 165, 233, 0.1);
}

.bento-item:hover::before {
    opacity: 1;
}

/* =============================================
   BUTTONS
============================================= */
.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);
    color: white;
    font-weight: 600;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    text-decoration: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    color: white;
    font-weight: 600;
    border-radius: 9999px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: #0ea5e9;
    background: rgba(14, 165, 233, 0.1);
    transform: translateY(-2px);
}

/* =============================================
   WHATSAPP BUTTON
============================================= */
.btn-whatsapp {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
}

.btn-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

/* =============================================
   STATS
============================================= */
.stat-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

@media (max-width: 768px) {
    .stat-number {
        font-size: 2.5rem;
    }
}

/* =============================================
   NAVIGATION
============================================= */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #38bdf8, #0ea5e9);
    transition: width 0.3s ease;
}

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

/* =============================================
   IMAGE PLACEHOLDER
============================================= */
.img-placeholder {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.25) 0%, rgba(56, 189, 248, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
}

/* =============================================
   TYPING CURSOR
============================================= */
.typing-cursor::after {
    content: '|';
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* =============================================
   CARD SHINE EFFECT
============================================= */
.card-shine {
    position: relative;
    overflow: hidden;
}

.card-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255,255,255,0.05) 50%,
        transparent 60%
    );
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.card-shine:hover::after {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

/* =============================================
   ANIMATIONS - Initial States
============================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
}

.fade-in-scale {
    opacity: 0;
    transform: scale(0.95);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(30px);
}

.stagger-item {
    opacity: 0;
    transform: translateY(30px);
}

/* =============================================
   ANIMATIONS - Active States
============================================= */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-scale {
    animation: fadeInScale 0.6s ease-out forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes slideInLeft {
    0% { opacity: 0; transform: translateX(-30px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    0% { opacity: 0; transform: translateX(30px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* =============================================
   FAQ ACCORDION
============================================= */
.faq-icon {
    transition: transform 0.3s ease;
}

.faq-icon.rotate-180 {
    transform: rotate(180deg);
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 768px) {
    .orb {
        opacity: 0.3;
    }
    
    .orb-1 {
        width: 200px;
        height: 200px;
    }
    
    .orb-2 {
        width: 150px;
        height: 150px;
    }
    
    .orb-3 {
        width: 100px;
        height: 100px;
    }

    body {
        font-size: 16px;
        -webkit-text-size-adjust: 100%;
    }

    h1 {
        font-size: 2rem !important;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.5rem;
    }

    p, li, span, a {
        font-size: 1rem;
        line-height: 1.6;
    }

    .btn-primary,
    .btn-secondary {
        min-height: 48px;
        min-width: 48px;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    a, button {
        min-height: 44px;
        min-width: 44px;
    }

    .nav-link {
        padding: 0.75rem 0;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
    }

    .btn-whatsapp {
        width: 56px;
        height: 56px;
    }
}

/* =============================================
   GLOW EFFECTS
============================================= */
.glow-blue {
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.3),
                0 0 60px rgba(14, 165, 233, 0.1);
}

.glow-purple {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.3),
                0 0 60px rgba(168, 85, 247, 0.1);
}

.glow-pink {
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.3),
                0 0 60px rgba(236, 72, 153, 0.1);
}

/* =============================================
   FORM INPUTS
============================================= */
input, select, textarea {
    color: white;
    font-size: 16px;
    min-height: 48px;
}

a, button {
    touch-action: manipulation;
}

.content-visibility-auto {
    content-visibility: auto;
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

select option {
    background: #0f0f1a;
    color: white;
}
