/* 
    SYUMA — Consultoría de Procesos y Marketing
    Custom Stylesheet
*/

/* ════════ RESET ════════ */
*, *::before, *::after { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

:root {
    /* Colors */
    --black:       #0b090a;
    --dark:        #161a1d;
    --red-deep:    #660708;
    --red:         #a4161a;
    --red-mid:     #ba181b;
    --red-accent:  #e5383b;
    --gray-warm:   #b1a7a6;
    --gray-light:  #d3d3d3;
    --off-white:   #f5f3f4;
    --white:       #ffffff;
    
    /* Fonts */
    --font-display: 'Satoshi', sans-serif;
    --font-body:    'Satoshi', sans-serif;
    
    /* Animations */
    --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: 0.3s var(--ease);
    --transition-slow: 0.5s var(--ease);
}

html { 
    scroll-behavior: smooth; 
}

body {
    background: var(--black);
    color: var(--off-white);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* Hide default cursor for custom cursor effect */
}

/* ════════ CURSOR ════════ */
#cur {
    position: fixed; width: 8px; height: 8px;
    background: var(--red-accent); border-radius: 50%;
    pointer-events: none; z-index: 9999;
    transform: translate(-50%,-50%);
    transition: transform 0.15s var(--ease), opacity 0.2s;
}
#cur-ring {
    position: fixed; width: 34px; height: 34px;
    border: 1px solid rgba(229,56,59,0.45); border-radius: 50%;
    pointer-events: none; z-index: 9998;
    transform: translate(-50%,-50%);
    transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s;
}

@media (hover: none) {
    body { cursor: auto; }
    #cur, #cur-ring { display: none; }
}

/* ════════ NAV ════════ */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.8rem 5rem;
    transition: all var(--transition-slow);
}

nav.scrolled {
    background: rgba(11,9,10,0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1.1rem 5rem;
    border-bottom: 1px solid rgba(229,56,59,0.12);
}

.nav-logo {
    display: flex; align-items: center;
    text-decoration: none; gap: 0.75rem;
}

.logo-img {
    height: 32px; /* Ajustado para acompañar al texto */
    width: auto;
    object-fit: contain;
    display: block; /* Siempre visible */
}

.logo-text {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.2rem; /* Ligeramente reducido para balancear con la imagen */
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--white);
    line-height: 1;
    display: block;
}
.logo-text span { color: var(--red-accent); }

.logo-divider {
    width: 1px; 
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    display: block; /* Divisor elegante entre imagen y texto */
}

.nav-links {
    display: flex; gap: 2.8rem;
    list-style: none; align-items: center;
}

.nav-links a {
    color: var(--gray-warm); text-decoration: none;
    font-size: 0.72rem; letter-spacing: 0.2em;
    text-transform: uppercase; font-weight: 400;
    transition: color 0.3s; position: relative;
}

.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 1px; background: var(--red-accent);
    transition: width 0.35s var(--ease);
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    border: 1px solid var(--red-accent) !important;
    color: var(--white) !important;
    padding: 0.6rem 1.5rem;
    transition: background 0.3s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--red-accent) !important; }

/* Hamburger */
.hamburger {
    display: none; flex-direction: column;
    gap: 5px; cursor: none; padding: 4px;
    background: none; border: none;
}
.hamburger span {
    display: block; width: 24px; height: 1px;
    background: var(--off-white);
    transition: all 0.35s var(--ease);
    transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
    position: fixed; inset: 0; z-index: 150;
    background: rgba(11,9,10,0.97);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 2.5rem;
    transform: translateY(-100%);
    transition: transform 0.5s var(--ease);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
    color: var(--off-white); text-decoration: none;
    font-family: var(--font-display); font-size: 2.5rem;
    font-weight: 300; letter-spacing: 0.05em;
    transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--red-accent); }
.mobile-menu a.m-cta {
    font-family: var(--font-body); font-size: 0.82rem;
    letter-spacing: 0.2em; text-transform: uppercase;
    border: 1px solid var(--red-accent);
    padding: 0.9rem 2.5rem; margin-top: 1rem;
    color: var(--white);
}
.mobile-menu a.m-cta:hover { background: var(--red-accent); }

/* ════════ HERO ════════ */
#hero {
    min-height: 100vh;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 0 5rem 7rem; position: relative; overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 85% 15%, rgba(102,7,8,0.3) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 5% 90%, rgba(22,26,29,0.75) 0%, transparent 60%),
        var(--black);
}
.hero-grain {
    position: absolute; inset: 0; opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px;
}
.hero-vline {
    position: absolute; top: 0; right: 28%;
    width: 1px; height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(229,56,59,0.18), transparent);
}
.hero-content { position: relative; z-index: 2; max-width: 870px; }

/* Badge removed */

.hero-h1 {
    font-family: var(--font-display);
    font-size: clamp(4rem, 9.5vw, 9.5rem);
    font-weight: 300; line-height: 0.93;
    letter-spacing: -0.025em; margin-bottom: 2.2rem;
    opacity: 0; transform: translateY(35px);
    animation: fadeUp 1.1s var(--ease) forwards 0.45s;
}
.hero-h1 em { font-style: italic; color: var(--red-accent); }
.hero-h1 strong { font-weight: 600; }

.hero-sub {
    max-width: 400px; font-size: 0.92rem;
    color: var(--gray-warm); line-height: 1.85; margin-bottom: 3.2rem;
    opacity: 0; transform: translateY(20px);
    animation: fadeUp 0.9s var(--ease) forwards 0.75s;
}

.hero-actions {
    display: flex; align-items: center; gap: 2.8rem; flex-wrap: wrap;
    opacity: 0; transform: translateY(20px);
    animation: fadeUp 0.9s var(--ease) forwards 0.95s;
}

.hero-scroll {
    position: absolute; right: 5rem; bottom: 7rem; z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: 1.2rem;
    opacity: 0; animation: fadeIn 1s forwards 1.7s;
}
.scroll-bar {
    width: 1px; height: 65px;
    background: linear-gradient(to bottom, var(--red-accent), transparent);
    animation: pulse 2.2s ease-in-out infinite;
}
.scroll-lbl {
    font-size: 0.58rem; letter-spacing: 0.28em;
    text-transform: uppercase; color: var(--gray-warm);
    writing-mode: vertical-rl;
}

/* ════════ BUTTONS ════════ */
.btn-primary {
    display: inline-flex; align-items: center; gap: 0.9rem;
    background: var(--red-accent); color: var(--white);
    text-decoration: none; font-size: 0.72rem;
    letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500;
    padding: 1.15rem 2.5rem; position: relative; overflow: hidden;
}
.btn-primary::before {
    content: ''; position: absolute; inset: 0; background: var(--red-mid);
    transform: translateX(-101%); transition: transform 0.38s var(--ease);
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary span, .btn-primary svg { position: relative; z-index: 1; }
.btn-primary svg { transition: transform 0.3s; }
.btn-primary:hover svg { transform: translateX(5px); }

.btn-text {
    color: var(--gray-warm); text-decoration: none;
    font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
    display: inline-flex; align-items: center; gap: 0.7rem; transition: color 0.3s;
}
.btn-text svg { transition: transform 0.3s; }
.btn-text:hover { color: var(--white); }
.btn-text:hover svg { transform: translateY(3px); }

/* ════════ SECTION COMMONS ════════ */
section { padding: 8rem 5rem; }

.s-label {
    font-size: 0.62rem; letter-spacing: 0.38em;
    text-transform: uppercase; color: var(--red-accent);
    margin-bottom: 1.6rem;
    display: flex; align-items: center; gap: 1rem;
}
.s-label::before {
    content: ''; display: block; width: 32px; height: 1px;
    background: var(--red-accent);
}

/* Fallback: si JS falla o no se carga, el contenido será visible */
.reveal {
    opacity: 1; /* Por defecto visible */
    transform: translateY(0);
    transition: all 0.8s var(--ease);
}

/* Solo se oculta si el navegador soporta JS (se aplicará una clase vía JS al inicio) */
.js-enabled .reveal {
    opacity: 0; 
    transform: translateY(30px);
}
.reveal.on { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.2s; }
.reveal.d2 { transition-delay: 0.4s; }
.reveal.d3 { transition-delay: 0.6s; }

/* ════════ MANIFIESTO ════════ */
#manifesto { background: var(--black); padding: 10rem 5rem; }
.manifesto-inner { max-width: 900px; margin: 0 auto; }
.manifesto-q {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1; font-weight: 300;
    color: var(--white); margin-bottom: 4rem;
}
.manifesto-q em { font-style: italic; color: var(--red-accent); }
.manifesto-p {
    max-width: 520px; font-size: 1.15rem; color: var(--gray-warm);
    line-height: 1.8; margin-left: auto;
}

/* ════════ SERVICIOS ════════ */
#servicios { background: var(--dark); }
.services-header {
    display: grid; grid-template-columns: 1.2fr 1fr;
    align-items: flex-end; margin-bottom: 6rem;
}
.services-title {
    font-family: var(--font-display); font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 0.95; font-weight: 300;
}
.services-title em { font-style: italic; color: var(--red-accent); }
.services-intro {
    max-width: 380px; font-size: 1rem; color: var(--gray-warm);
    line-height: 1.8; margin-bottom: 0.5rem;
}

.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.s-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(177,167,166,0.1);
    padding: 3.5rem 2.5rem; transition: all 0.4s var(--ease);
}
.s-card:hover {
    background: rgba(229,56,59,0.04);
    border-color: rgba(229,56,59,0.3);
    transform: translateY(-10px);
}
.s-num {
    font-family: var(--font-body); font-size: 0.75rem;
    color: var(--red-accent); letter-spacing: 0.2em;
    margin-bottom: 2rem; display: block;
}
.s-name {
    font-family: var(--font-display); font-size: 2.2rem;
    font-weight: 400; line-height: 1.1; margin-bottom: 1.8rem;
}
.s-desc {
    font-size: 0.9rem; color: var(--gray-warm);
    line-height: 1.8; margin-bottom: 2.5rem;
}
.s-items {
    list-style: none; display: flex; flex-direction: column; gap: 0.8rem;
}
.s-items li {
    font-size: 0.72rem; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--off-white);
    display: flex; align-items: center; gap: 0.8rem;
}
.s-items li::before {
    content: ''; width: 4px; height: 4px; border-radius: 50%;
    background: var(--red-accent);
}

/* ════════ PROCESO ════════ */
#proceso { background: var(--black); }
.process-head { margin-bottom: 6rem; }
.process-title {
    font-family: var(--font-display); font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 0.95; font-weight: 300;
}
.process-title em { font-style: italic; color: var(--red-accent); }

.steps {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 3rem;
    position: relative;
}
.steps::before {
    content: ''; position: absolute; top: 22px; left: 0;
    width: 100%; height: 1px; background: rgba(177,167,166,0.1);
    z-index: 0;
}
.step { position: relative; z-index: 1; }
.step-dot {
    width: 44px; height: 44px; background: var(--black);
    border: 1px solid var(--red-accent); color: var(--red-accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 500; margin-bottom: 2.5rem;
    transition: all 0.4s var(--ease);
}
.step:hover .step-dot { background: var(--red-accent); color: var(--white); }
.step-name {
    font-family: var(--font-display); font-size: 1.8rem;
    font-weight: 400; margin-bottom: 1.2rem;
}
.step-desc { font-size: 0.88rem; color: var(--gray-warm); line-height: 1.8; }

/* ════════ PARA QUIÉN ════════ */
#para-quien { background: var(--dark); }
.pq-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 8rem; align-items: center; }
.pq-title {
    font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 1; font-weight: 300; margin-bottom: 2.5rem;
}
.pq-title em { font-style: italic; color: var(--red-accent); }
.pq-text { font-size: 1.05rem; color: var(--gray-warm); line-height: 1.8; margin-bottom: 3.5rem; }

.tags { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.tag {
    padding: 0.6rem 1.2rem; border: 1px solid rgba(177,167,166,0.2);
    font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.15em;
    color: var(--gray-warm); transition: all 0.3s;
}
.tag:hover { border-color: var(--red-accent); color: var(--off-white); }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.stat-n {
    font-family: var(--font-display); font-size: 4rem;
    font-weight: 400; color: var(--white); line-height: 1; margin-bottom: 0.5rem;
}
.stat-n em { color: var(--red-accent); font-style: normal; }
.stat-l { font-size: 0.78rem; color: var(--gray-warm); letter-spacing: 0.05em; line-height: 1.5; }

/* ════════ CONTACTO ════════ */
#contacto { background: var(--black); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 7rem; }
.contact-title {
    font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 1; font-weight: 300; margin-bottom: 2.5rem;
}
.contact-title em { font-style: italic; color: var(--red-accent); }
.contact-text {
    font-size: 0.9rem; color: var(--gray-warm);
    line-height: 1.9; margin-bottom: 3rem;
}
.c-info { display: flex; flex-direction: column; gap: 1.6rem; }
.c-item { display: flex; align-items: center; gap: 1.2rem; }
.c-icon {
    width: 42px; height: 42px; flex-shrink: 0;
    border: 1px solid rgba(229,56,59,0.28);
    display: flex; align-items: center; justify-content: center;
}
.c-text { display: flex; flex-direction: column; }
.c-lbl {
    font-size: 0.62rem; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--red-accent); margin-bottom: 0.2rem;
}
.c-val {
    font-size: 0.9rem; color: var(--off-white);
    text-decoration: none; transition: color 0.3s;
}
a.c-val:hover { color: var(--red-accent); }

/* Form */
.form { display: flex; flex-direction: column; gap: 1.5rem; }
.f-group { display: flex; flex-direction: column; gap: 0.5rem; }
.f-group label {
    font-size: 0.62rem; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--gray-warm);
}
.f-group input, .f-group select, .f-group textarea {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(177,167,166,0.2);
    color: var(--off-white); padding: 0.95rem 1.2rem;
    font-family: var(--font-body); font-size: 0.9rem; font-weight: 300;
    transition: border-color 0.3s; outline: none; width: 100%;
    -webkit-appearance: none; appearance: none;
}
.f-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b1a7a6' stroke-width='1.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 1.2rem center;
    padding-right: 2.8rem; cursor: none;
}
.f-group select option { background: var(--dark); }
.f-group input:focus, .f-group select:focus, .f-group textarea:focus {
    border-color: var(--red-accent);
    background: rgba(229,56,59,0.03);
}
.f-group input::placeholder, .f-group textarea::placeholder {
    color: rgba(177,167,166,0.5);
}
.f-group textarea { resize: vertical; min-height: 110px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Submit success */
.form-success {
    display: none; flex-direction: column; align-items: center;
    justify-content: center; gap: 1.2rem; text-align: center;
    padding: 3rem 2rem;
}
.form-success.show { display: flex; }
.success-icon {
    width: 56px; height: 56px; border: 1px solid var(--red-accent);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.success-title {
    font-family: var(--font-display); font-size: 1.8rem; font-weight: 400;
}
.success-txt { font-size: 0.88rem; color: var(--gray-warm); line-height: 1.8; }

.btn-submit {
    background: transparent; border: 1px solid var(--red-accent);
    color: var(--off-white); padding: 1.15rem 2.5rem;
    font-family: var(--font-body); font-size: 0.72rem;
    letter-spacing: 0.2em; text-transform: uppercase;
    cursor: none; display: inline-flex; align-items: center; gap: 0.9rem;
    align-self: flex-start; position: relative; overflow: hidden;
    transition: color 0.3s;
}
.btn-submit::before {
    content: ''; position: absolute; inset: 0; background: var(--red-accent);
    transform: translateX(-101%); transition: transform 0.38s var(--ease);
}
.btn-submit:hover::before { transform: translateX(0); }
.btn-submit span, .btn-submit svg { position: relative; z-index: 1; }
.btn-submit:disabled { opacity: 0.6; pointer-events: none; }

/* ════════ FOOTER ════════ */
footer {
    background: var(--black); padding: 3rem 5rem;
    border-top: 1px solid rgba(177,167,166,0.1);
}
.footer-top {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 2.5rem; padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(177,167,166,0.07);
}

.footer-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.footer-logo-img {
    height: 40px; width: auto; object-fit: contain;
    display: none;
}
.footer-logo-text {
    font-family: var(--font-body); font-weight: 600;
    font-size: 1.25rem; letter-spacing: 0.38em;
    text-transform: uppercase; color: var(--off-white);
}
.footer-logo-text span { color: var(--red-accent); }

.footer-tagline {
    font-size: 0.78rem; color: var(--gray-warm);
    letter-spacing: 0.05em; max-width: 340px; line-height: 1.6;
}
.footer-socials { display: flex; gap: 1.6rem; }
.footer-socials a {
    font-size: 0.62rem; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--gray-warm);
    text-decoration: none; transition: color 0.3s;
    display: flex; align-items: center; gap: 0.5rem;
}
.footer-socials a:hover { color: var(--red-accent); }

.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
}
.footer-copy { font-size: 0.7rem; color: rgba(177,167,166,0.55); letter-spacing: 0.04em; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a {
    font-size: 0.68rem; letter-spacing: 0.1em;
    color: rgba(177,167,166,0.55); text-decoration: none; transition: color 0.3s;
}
.footer-links a:hover { color: var(--gray-warm); }

/* ════════ KEYFRAMES ════════ */
@keyframes fadeUp  { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn  { to { opacity: 1; } }
@keyframes pulse   { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ════════ RESPONSIVE ════════ */
@media (max-width: 1024px) {
    nav, nav.scrolled { padding: 1.4rem 2.5rem; }
    section, #manifesto { padding: 6rem 2.5rem; }
    #hero { padding: 0 2.5rem 5rem; }
    .services-header { grid-template-columns: 1fr; gap: 2rem; }
    .pq-inner { gap: 5rem; }
    footer { padding: 2.5rem 2.5rem; }
}
@media (max-width: 860px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    section, #manifesto { padding: 5rem 1.8rem; }
    #hero { padding: 0 1.8rem 5rem; }
    .services-grid { grid-template-columns: 1fr; }
    .pq-inner { grid-template-columns: 1fr; gap: 3rem; }
    .contact-inner { grid-template-columns: 1fr; gap: 3.5rem; }
    .steps { grid-template-columns: 1fr 1fr; }
    .steps::before { display: none; }
    .hero-scroll { display: none; }
    .footer-top { flex-direction: column; gap: 2rem; text-align: center; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .footer-links { justify-content: center; }
    footer { padding: 2.5rem 1.8rem; }
}
@media (max-width: 560px) {
    .steps { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr; }
    .f-row { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}