/* --- VARIABLES & BRAND COLORS --- */
:root {
    --bg-black: #050505;
    --bg-gray: #111215;
    
    --magenta: #EC297B; /* Rosa vibrante logo */
    --magenta-glow: rgba(236, 41, 123, 0.4);
    
    --turq: #10B981; /* Verde esmeralda/Turquesa logo */
    --turq-glow: rgba(16, 185, 129, 0.4);
    
    --text-main: #FFFFFF;
    --text-muted: #888A92;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-black);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection { background: var(--magenta); color: #fff; }

.accent-magenta { color: var(--magenta); }
.accent-turq { color: var(--turq); }

/* --- TYPOGRAPHY --- */
h1, h2, h3, .watermark {
    font-family: var(--font-heading);
    font-weight: 900;
}

/* --- NAVBAR MINIMALISTA --- */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    padding: 24px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(5, 5, 5, 0.7);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}
.logo-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
}
.brand-logo {
    max-height: 81px; /* 35% más grande */
    mix-blend-mode: normal;
}
.logo-fallback {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1;
    color: #111; /* Texto oscuro para contrastar con el fondo blanco */
}
.logo-fallback span { color: var(--magenta); }
.logo-fallback i { color: var(--turq); font-size: 20px;}
.logo-fallback small { font-size: 10px; font-weight: 400; letter-spacing: 2px; color: var(--text-muted); display: block;}

.menu-wrapper {
    position: relative;
    padding: 10px 0; /* Espacio para hover */
    flex-shrink: 0;
}
.menu-trigger {
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #fff;
    transition: var(--transition);
}
.menu-wrapper.active .menu-trigger {
    color: var(--turq);
}
@media (hover: hover) {
    .menu-wrapper:hover .menu-trigger {
        color: var(--turq);
    }
}

/* --- MAGENTA CIRCULAR POPUP --- */
.menu-popup {
    position: absolute;
    top: 100%;
    right: 0;
    width: 250px;
    background: var(--magenta);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    /* Despliegue circular Safari-Safe */
    -webkit-clip-path: circle(0% at 230px 20px);
    clip-path: circle(0% at 230px 20px);
    visibility: hidden;
    transition: -webkit-clip-path 0.5s cubic-bezier(0.7, 0, 0.2, 1), clip-path 0.5s cubic-bezier(0.7, 0, 0.2, 1), visibility 0.5s;
    z-index: 2000;
}
.menu-wrapper.active .menu-popup {
    visibility: visible;
    -webkit-clip-path: circle(150% at 230px 20px);
    clip-path: circle(150% at 230px 20px);
}
@media (hover: hover) {
    .menu-wrapper:hover .menu-popup {
        visibility: visible;
        -webkit-clip-path: circle(150% at 230px 20px);
        clip-path: circle(150% at 230px 20px);
    }
}

.menu-links {
    list-style: none;
    text-align: right;
}
.menu-links li {
    margin-bottom: 20px;
}
.menu-links li:last-child {
    margin-bottom: 0;
}
.menu-links a {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.3s ease, color 0.3s ease;
}
.menu-links a:hover {
    color: var(--bg-black);
    transform: translateX(-5px);
}

/* --- SECTIONS BASE --- */
.section-dark { background-color: var(--bg-black); position: relative; }
.section-gray { background-color: var(--bg-gray); position: relative; }
.content-wrapper { max-width: 1200px; margin: 0 auto; padding: 120px 5%; position: relative; z-index: 2; }

/* --- WATERMARKS --- */
.watermark {
    position: absolute;
    top: 10%;
    left: 0;
    font-size: 18vw;
    line-height: 1;
    color: rgba(255, 255, 255, 0.02);
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    text-transform: uppercase;
    transform: translateY(0);
}
.watermark.right { left: auto; right: 0; }
.watermark.center { left: 50%; transform: translateX(-50%); }

/* --- DIVISORES CURVOS --- */
.curve-divider {
    width: 100%;
    line-height: 0;
    position: relative;
    z-index: 1;
}
.curve-divider svg {
    display: block;
    width: 100%;
    height: 100px;
}
.divider-dark-to-gray svg path { fill: var(--bg-gray); }
.divider-gray-to-dark svg path { fill: var(--bg-black); }

/* --- BOTÓN FLOTANTE (FAB) --- */
.fab {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 100px;
    height: 100px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    text-decoration: none;
}
.fab-circle {
    width: 20px;
    height: 20px;
    background-color: var(--turq);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--turq-glow);
    transition: var(--transition);
}
.fab-text {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotate 15s linear infinite;
}
.fab-text text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 12px;
    fill: var(--text-main);
    letter-spacing: 2.5px;
    text-transform: uppercase;
}
.fab:hover .fab-circle { background-color: var(--magenta); box-shadow: 0 0 20px var(--magenta-glow); transform: scale(1.5); }
.fab:hover .fab-text text { fill: var(--magenta); }

@keyframes rotate { 100% { transform: rotate(360deg); } }

/* --- BUTTONS --- */
.btn-primary {
    display: inline-block;
    padding: 16px 32px;
    background-color: var(--magenta);
    color: #fff;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 30px;
    transition: var(--transition);
}
.btn-primary:hover {
    background-color: #fff;
    color: var(--magenta);
    box-shadow: 0 10px 30px var(--magenta-glow);
    transform: translateY(-3px);
}
.btn-primary.alt { background-color: var(--turq); }
.btn-primary.alt:hover { color: var(--turq); box-shadow: 0 10px 30px var(--turq-glow); }

/* --- HERO --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(236, 41, 123, 0.1) 0%, transparent 35%),
                radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 35%);
    z-index: 1;
    pointer-events: none;
}
.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
    padding-top: 80px;
}
.badge {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 24px;
}
.hero h1 { font-size: clamp(3rem, 6vw, 5rem); line-height: 1; margin-bottom: 24px; }
.hero p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 40px; max-width: 600px; }

/* --- TICKER BANNER --- */
.ticker-wrap {
    position: relative;
    width: 90vw; /* Ancho que cubre la pantalla completa menos los 5% de cada margen, coincidiendo con Logo y Menu */
    overflow: hidden;
    background-color: transparent;
    padding: 0;
    margin-bottom: 20px;
    z-index: 5;
}
.ticker {
    display: flex;
    width: fit-content;
    animation: tickerAnim 20s linear infinite;
}
.ticker:hover {
    animation-play-state: paused;
}
.ticker-track {
    display: flex;
    flex-shrink: 0;
    align-items: center;
}
.ticker__item {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 0 40px;
}
.ticker__item.separator {
    color: var(--turq);
    font-size: 1.5rem;
    padding: 0;
}
@keyframes tickerAnim {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- FILOSOFÍA --- */
.section-header { margin-bottom: 60px; max-width: 600px; }
.section-header h2 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 16px; }
.section-header p { font-size: 1.1rem; color: var(--text-muted); }

.philosophy-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.p-card {
    padding: 40px;
    background: rgba(255,255,255,0.02);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}
.p-card:hover { transform: translateY(-10px); border-color: var(--turq); background: rgba(16, 185, 129, 0.05); }
.icon-wrap i { font-size: 48px; color: var(--turq); margin-bottom: 24px; display: block; }
.p-card h3 { font-size: 1.5rem; margin-bottom: 16px; }
.p-card p { color: var(--text-muted); }

/* --- SOLUCIONES (LISTA ESTILO QU) --- */
.services-list {
    display: flex;
    flex-direction: column;
}

/* --- FRAMEWORK / TIMELINE --- */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 60px 0 0;
    padding-left: 40px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}
.timeline-item {
    position: relative;
    margin-bottom: 70px;
    padding-left: 20px;
}
.timeline-item:last-child { margin-bottom: 0; }
.t-dot {
    position: absolute;
    left: -49px; /* Centrado sobre el borde */
    top: 6px;
    width: 16px;
    height: 16px;
    background: var(--bg-black);
    border: 3px solid var(--magenta);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--magenta-glow);
    transition: var(--transition);
}
.timeline-item:hover .t-dot {
    background: var(--magenta);
    transform: scale(1.4);
}
/* Colores alternos en la línea de tiempo */
.timeline-item:nth-child(even) .t-dot {
    border-color: var(--turq);
    box-shadow: 0 0 15px var(--turq-glow);
}
.timeline-item:nth-child(even):hover .t-dot { background: var(--turq); }

.t-content h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--text-main);
}
.t-content p {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 700px;
}
.service-row {
    display: flex;
    align-items: flex-start;
    padding: 40px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}
.service-row:hover {
    padding-left: 20px;
    border-color: var(--magenta);
}
.service-row:hover .s-number { color: var(--magenta); }

.s-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-muted);
    width: 80px;
    transition: var(--transition);
}
.s-info h3 { font-size: 2rem; margin-bottom: 10px; }
.s-info p { color: var(--text-muted); font-size: 1.1rem; max-width: 500px; }

/* --- FOOTER --- */
.footer { text-align: center; }
.footer .content-wrapper { padding: 100px 5% 40px; }
.footer h2 { font-size: clamp(3rem, 5vw, 4.5rem); margin-bottom: 20px; }
.footer p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 40px; }
.mt-4 { margin-top: 2rem; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 100px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.brand { font-family: var(--font-heading); font-weight: 700; color: var(--text-muted); }
.socials a { color: var(--text-main); text-decoration: none; margin-left: 20px; font-weight: 600; transition: var(--transition); }
.socials a:hover { color: var(--turq); }

/* --- ANIMACIONES REVEAL --- */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    /* Navbar y General */
    .brand-logo { max-height: 48px; }
    .navbar { padding: 15px 5%; }
    .content-wrapper { padding: 70px 5%; }
    .watermark { font-size: 22vw; top: 3%; opacity: 0.5; }
    
    /* Hero y Tipografía */
    .hero h1 { font-size: clamp(2.3rem, 10vw, 3.5rem); line-height: 1.1; hyphens: none; -webkit-hyphens: none; word-break: normal; }
    .hero-content { padding-top: 40px; text-align: left; }
    .hero p { font-size: 1.05rem; margin-bottom: 30px; }
    .section-header { margin-bottom: 40px; }
    .section-header h2 { font-size: clamp(2rem, 8vw, 2.8rem); line-height: 1.1; }
    
    /* Componentes */
    .ticker-wrap { width: 100vw; margin-left: -5%; margin-right: -5%; padding: 15px 0; }
    .ticker__item { font-size: 0.85rem; padding: 0 15px; letter-spacing: 2px; }
    .ticker__item.separator { font-size: 1.2rem; }
    
    /* Menú Movil */
    .menu-popup { width: 90vw; right: 5vw; top: 120%; border-radius: 16px; padding: 30px 20px; -webkit-clip-path: circle(0% at 90% 10px); clip-path: circle(0% at 90% 10px); }
    .menu-wrapper.active .menu-popup { -webkit-clip-path: circle(150% at 90% 10px); clip-path: circle(150% at 90% 10px); }
    .menu-links a { font-size: 1.3rem; }
    
    /* Secciones (Servicios, Timeline) */
    .services-list .service-row { flex-direction: column; gap: 8px; padding: 25px 0; }
    .services-list .s-number { width: auto; font-size: 1.8rem; margin-bottom: 5px; }
    .services-list .s-info h3 { font-size: 1.6rem; }
    
    .timeline { padding-left: 20px; margin-top: 30px; border-left-width: 1px; }
    .timeline-item { margin-bottom: 40px; }
    .t-dot { left: -27.5px; width: 12px; height: 12px; border-width: 2px; }
    .t-content h3 { font-size: 1.5rem; }
    .t-content p { font-size: 1.05rem; }
    
    /* Otros (FAB, Footer, etc) */
    .fab { bottom: 20px; right: 20px; width: 60px; height: 60px; }
    .fab-text { display: none; } /* Ocultar texto giratorio en móvil para evitar saturación visual */
    .fab-circle { width: 40px; height: 40px; background-color: var(--turq); display: flex; align-items: center; justify-content: center; position: relative; }
    .fab-circle::after { content: "💬"; font-size: 20px; position: absolute; }
    .fab:hover .fab-circle { transform: scale(1.1); background-color: var(--magenta); }
    
    /* Contact Form Layout Mobile Fix */
    .form-control { padding: 12px; }
    
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; margin-top: 60px; padding-top: 30px; }
    .socials { display: flex; justify-content: center; width: 100%; gap: 25px; margin-top: 10px; }
    .socials a { margin-left: 0; font-size: 1.1rem; }
    
    .blog-grid { grid-template-columns: 1fr; gap: 20px; }
    .contact-form { padding: 30px 20px; }
}

/* --- MULTIPAGE COMPONENTS --- */
/* Contact Form */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    padding: 50px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.form-group { margin-bottom: 24px; text-align: left; }
.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}
.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--magenta);
    box-shadow: 0 0 15px var(--magenta-glow);
}
textarea.form-control { resize: vertical; min-height: 150px; }
.mb-0 { margin-bottom: 0 !important; }

/* Blog Cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.blog-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-10px);
    border-color: var(--turq);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
}
.blog-img { height: 220px; position: relative; }
.blog-content { padding: 30px; flex: 1; display: flex; flex-direction: column; }
.blog-category {
    color: var(--magenta);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.blog-content h3 { font-size: 1.5rem; margin-bottom: 16px; line-height: 1.2; }
.blog-content p { color: var(--text-muted); font-size: 1rem; margin-bottom: 30px; flex: 1; }
.btn-read {
    color: var(--turq);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}
.btn-read:hover { color: #fff; gap: 12px; }
