:root {
    --bg-dark: #07070a;
    --bg-card: rgba(255, 255, 255, 0.02);
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    --brand-gradient: linear-gradient(90deg, #f49b6e 0%, #ee738f 20%, #db5b9d 40%, #a15ba0 60%, #7464a9 80%, #617fbf 100%);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(15, 15, 20, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Kumbh Sans', sans-serif;
}

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

/* -------------------------------------
   ORBES DE FONDO
-------------------------------------- */
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.35;
    animation: float 10s infinite ease-in-out;
}

.orb-1 { width: 450px; height: 450px; background: #a15ba0; top: -100px; left: -150px; }
.orb-2 { width: 550px; height: 550px; background: #ee738f; bottom: 10%; right: -200px; animation-delay: -5s; }

/* -------------------------------------
   UTILIDADES Y ANIMACIONES BASE
-------------------------------------- */
.uppercase { text-transform: uppercase; font-weight: 900; letter-spacing: -0.02em; }

.gradient-text {
    background: var(--brand-gradient);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 8s ease infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

@keyframes pulseLive {
    0% { box-shadow: 0 0 0 0 rgba(238, 115, 143, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(238, 115, 143, 0); }
    100% { box-shadow: 0 0 0 0 rgba(238, 115, 143, 0); }
}

/* -------------------------------------
   CONFIGURACIÓN ESPECÍFICA DEL LOGO 
-------------------------------------- */
.logo-mask {
    display: block;
    background: linear-gradient(90deg, 
        #f49b6e 0%, #ee738f 8%, #db5b9d 17%, #a15ba0 27%, #7464a9 36%, #617fbf 43%, 
        #f49b6e 52%, #ee738f 60%, #db5b9d 69%, #a15ba0 78%, #7464a9 89%, #617fbf 96%, #f49b6e 100%
    );
    background-size: 200% auto; 
    animation: logoFlow 12s linear infinite;
    -webkit-mask-image: url('logo-casacreala-white.svg');
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-image: url('logo-casacreala-white.svg');
    mask-size: contain;
    mask-repeat: no-repeat;
}

@keyframes logoFlow {
    0% { background-position: 200% center; }
    100% { background-position: 0% center; }
}

.logo-img { height: 40px; aspect-ratio: 7 / 2; -webkit-mask-position: center left; mask-position: center left; }
.logo-img-hero { width: 100%; max-width: 560px; aspect-ratio: 7 / 2; margin-bottom: 25px; -webkit-mask-position: center left; mask-position: center left; }

/* -------------------------------------
   NAVBAR, MENÚ MÓVIL & BOTONES
-------------------------------------- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.menu-toggle {
    display: none; 
    color: var(--text-main);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1002; 
    padding: 5px; 
}

.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { color: var(--text-main); text-decoration: none; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; transition: color 0.3s; }
.nav-links a:hover { color: #db5b9d; }

.btn {
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.85rem;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary { background: var(--brand-gradient); background-size: 200% auto; color: white; }
.btn-primary:hover { background-position: right center; transform: scale(1.05); }

.btn-secondary { background: transparent; color: white; border: 1px solid var(--glass-border); }
.btn-secondary:hover { border-color: #db5b9d; background: rgba(219, 91, 157, 0.1); }

.btn-live { background: #e63946; color: white !important; animation: pulseLive 2s infinite; }

@media (max-width: 900px) {
    .menu-toggle { display: block; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background: rgba(7, 7, 10, 0.98); flex-direction: column; justify-content: center;
        align-items: center; gap: 30px; transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1001;
    }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.2rem; }
}

/* -------------------------------------
   LAYOUT Y SECCIONES
-------------------------------------- */
section { padding: 120px 5%; position: relative; z-index: 2; }

/* Hero Asimétrico */
.hero { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; padding-top: 120px; }
.hero-text h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.1; margin-bottom: 20px; }
.hero-text h1 .highlight { display: block; font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; margin-top: 10px; }
.hero-text p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 35px; max-width: 550px; }
.hero-visual { position: relative; height: 600px; display: flex; justify-content: center; align-items: center; }

.image-wrapper { width: 80%; height: 80%; border-radius: 30px; overflow: hidden; border: 1px solid var(--glass-border); box-shadow: 0 30px 60px rgba(0,0,0,0.6); position: relative; animation: float 6s infinite ease-in-out; }
.image-wrapper img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: transform 0.5s; }
.image-wrapper:hover img { transform: scale(1.05); }
.image-wrapper::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(180deg, transparent, rgba(7, 7, 10, 0.8)); }

/* Manifiesto */
.manifesto { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.manifesto-text h2 { font-size: clamp(2.5rem, 4vw, 3.5rem); margin-bottom: 30px; }
.manifesto-text p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 20px; }

/* Servicios */
.services-header { text-align: center; margin-bottom: 70px; }
.services-header h2 { font-size: 3rem; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }

/* Tarjetas convertidas a enlaces block */
.service-card { 
    background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: 20px; 
    overflow: hidden; transition: all 0.4s ease; backdrop-filter: blur(10px);
    display: block; text-decoration: none; color: inherit; /* Permite que funcionen como links sin alterar formato */
}
.service-card:hover { transform: translateY(-10px); border-color: #db5b9d; }
.service-img { height: 200px; width: 100%; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(50%); transition: filter 0.4s; }
.service-card:hover .service-img img { filter: grayscale(0%); }
.service-content { padding: 30px; }
.service-content h3 { font-size: 1.3rem; margin-bottom: 10px; color: #fff; }
.service-content p { color: var(--text-muted); font-size: 0.95rem; }

/* Ecosistema */
.ecosystem { background: linear-gradient(180deg, transparent, rgba(161, 91, 160, 0.05), transparent); text-align: center; padding: 100px 5%; }
.ecosystem h2 { font-size: 3rem; margin-bottom: 30px; }
.ecosystem p { max-width: 800px; margin: 0 auto 50px auto; font-size: 1.2rem; color: var(--text-muted); }

/* CTA Final */
.cta-final { text-align: center; padding: 100px 5% 150px 5%; }
.cta-final h2 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 20px; }

/* Footer */
footer { background: var(--bg-dark); border-top: 1px solid var(--glass-border); padding: 60px 5% 30px 5%; text-align: center; position: relative; z-index: 2; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 25px; margin-bottom: 30px; }
.footer-links a { color: var(--text-main); text-decoration: none; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; transition: color 0.3s; }
.footer-links a:hover { color: #db5b9d; }
.social-icons { display: flex; justify-content: center; gap: 20px; margin-bottom: 30px; }
.social-icons a { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%; background: var(--bg-card); border: 1px solid var(--glass-border); color: var(--text-main); font-size: 1.2rem; transition: all 0.3s ease; }
.social-icons a:hover { background: var(--brand-gradient); border-color: transparent; transform: translateY(-5px); }
.copyright { color: var(--text-muted); font-size: 0.9rem; }

/* Layout Responsive */
@media (max-width: 900px) {
    .hero, .manifesto { grid-template-columns: 1fr; text-align: center; }
    .hero-text p { margin: 0 auto 35px auto; }
    .hero-visual, .image-wrapper { height: 400px; width: 100%; }
    .logo-img-hero { margin: 0 auto 20px auto; }
}