/* ==========================================================================
   VARIABLES Y RESET GLOBALES
   ========================================================================= */
:root {
    --bg-color: #ffffff;
    --text-dark: #111111;
    --text-muted: #666666;
    --accent: #FF8A00; 
    --border-color: #E5E5E5;
    --font-main: 'Roboto', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    --sidebar-width: 80px;
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { background: none; border: none; cursor: none; font-family: inherit; }
.bg-light { background-color: #F8F9FA; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 25px; }
.section-pad { padding: 100px 0; }

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================= */
.custom-cursor {
    position: fixed; top: 0; left: 0; width: 6px; height: 6px;
    background: var(--accent); border-radius: 50%;
    pointer-events: none; z-index: 9999;
    transition: width 0.2s, height 0.2s, background 0.3s;
}
.custom-cursor-follower {
    position: fixed; top: 0; left: 0; width: 40px; height: 40px;
    border: 1px solid rgba(255, 138, 0, 0.5); border-radius: 50%;
    pointer-events: none; z-index: 9998;
    transition: width 0.3s, height 0.3s, border-color 0.3s, background 0.3s;
}
.custom-cursor.active { width: 0; height: 0; }
.custom-cursor-follower.active { width: 70px; height: 70px; background: rgba(255, 138, 0, 0.1); border-color: transparent; }

/* ==========================================================================
   ANIMACIONES SCROLL
   ========================================================================= */
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-left { opacity: 0; transform: translateX(50px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-right { opacity: 0; transform: translateX(-50px); transition: opacity 0.8s ease, transform 0.8s ease; }
.slide-down { animation: slideDown 0.8s ease forwards; }
.is-visible { opacity: 1; transform: translate(0); }
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* ==========================================================================
   LAYOUT PRINCIPAL & SIDEBAR
   ========================================================================= */
.main-wrapper { margin-left: var(--sidebar-width); position: relative; }

.left-sidebar {
    position: fixed; top: 0; bottom: 0; left: 0; width: var(--sidebar-width); height: 100%;
    background: #000000; 
    border-right: 1px solid #222222;
    display: flex; flex-direction: column; justify-content: space-between; align-items: center;
    padding: 30px 0; z-index: 1001; overflow: hidden;
}

.logo-container {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    line-height: 0.85; 
}
.logo-som { font-size: 1.5rem; font-family: var(--font-mono); font-weight: 700; color: #ffffff; }
.logo-web { font-size: 1.1rem; font-family: var(--font-mono); font-weight: 700; color: var(--accent); margin-top: 5px; }

.sidebar-social { display: flex; flex-direction: column; gap: 20px; font-family: var(--font-mono); font-size: 0.85rem; font-weight: 500; text-transform: uppercase; }
.sidebar-social a { transition: var(--transition); color: #ffffff; }
.sidebar-social a:hover { color: var(--accent); }
.sidebar-phone { font-family: var(--font-mono); writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 500; font-size: 0.85rem; letter-spacing: 2px; color: #ffffff; margin-bottom: 20px;}

/* ==========================================================================
   BOTONES GENERALES
   ========================================================================= */
.btn-primary { 
    display: inline-block; padding: 14px 35px; background:#ff8a00; color: #fff; 
    border-radius: 50px; font-family: var(--font-main); font-weight: 700; border: none; transition: 0.3s; 
}
.btn-primary:hover { background: #262626; }

/* ==========================================================================
   HEADER / NAVEGACIÓN
   ========================================================================= */
.header { 
    position: absolute; top: 0; left: 0; width: 100%; z-index: 1000; padding: 30px 50px; 
}
.header-inner { 
    display: flex; flex-direction: row; justify-content: flex-start; align-items: center; 
    width: 100%; flex-wrap: nowrap; 
}
.nav { display: flex; align-items: center; }
.nav-list { display: flex; gap: 40px; margin: 0; padding: 0; }
.nav-list > li > a { 
    font-family: var(--font-mono); font-size: 0.9rem; font-weight: 500; color: #ffffff; 
    display: flex; align-items: center; gap: 8px; transition: var(--transition); text-transform: uppercase;
}
.nav-list > li > a span { color: var(--accent); font-size: 1.2rem; line-height: 0; margin-top: -2px; }
.nav-list > li > a:hover, .nav-list > li > a.active { color: var(--accent); }
.nav-list > li > a:hover span, .nav-list > li > a.active span { color: var(--accent); }

.header-contact { 
    display: flex; flex-direction: row; gap: 15px; align-items: center; 
    font-family: var(--font-mono); font-size: 0.9rem; color: #ffffff; 
    margin-left: auto; white-space: nowrap; 
}
.header-contact a { transition: var(--transition); letter-spacing: 0.5px; }
.header-contact a:hover { color: var(--accent); }
.header-contact .separator { color: #444444; margin: 0 5px; }

.dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: 100%; left: 0; background: #111111; min-width: 220px;
    padding: 15px 0; border: 1px solid #333333; opacity: 0; visibility: hidden;
    transform: translateY(10px); transition: var(--transition); z-index: 10;
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 10px 20px; font-family: var(--font-mono); font-size: 0.85rem; color: #cccccc; transition: 0.3s; }
.dropdown-menu a:hover { color: #ffffff; background: #222222; padding-left: 25px; }

/* ==========================================================================
   HERO SECTION
   ========================================================================= */
.hero-modern { 
    position: relative; width: 100%; min-height: 90vh; display: flex; 
    align-items: center; justify-content: center; padding: 120px 20px 60px; 
    overflow: hidden; background-color: #000000; color: #ffffff; border-bottom: 1px solid #222222;
}
#particles-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
#particles-bg canvas { width: 100%; height: 120%; display: block; }
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 900px; }
.hero-content h1 {
    font-family: var(--font-main); font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 1; font-weight: 900; letter-spacing: -2px; color: #ffffff; margin-bottom: 30px;
}
.hero-content h1 span { color: var(--accent); }
.hero-content p { font-size: 1.2rem; color: #cccccc; max-width: 650px; margin: 0 auto 40px auto; }
.hero-actions { display: flex; gap: 20px; justify-content: center; }
.hero-btn-outline {
    display: inline-block; padding: 12px 35px; background: transparent; color: #ffffff; 
    border: 2px solid #ffffff; border-radius: 50px; font-family: var(--font-main); font-weight: 700; transition: 0.3s; 
}
.hero-btn-outline:hover { background: #ffffff; color: #000000; }
.circular-badge { 
    position: absolute; bottom: -60px; right: 5%; width: 120px; height: 120px; 
    display: flex; align-items: center; justify-content: center; 
}
.circular-badge svg { position: absolute; top: 0; left: 0; animation: rotateText 15s linear infinite; }
.circular-badge .arrow { font-size: 1.5rem; color: var(--accent); font-weight: bold; }
@keyframes rotateText { 100% { transform: rotate(360deg); } }

/* ==========================================================================
   MARQUEE
   ========================================================================= */
.marquee-strip { background: transparent; color: var(--text-dark); padding: 30px 0 20px 0; overflow: hidden; border-bottom: 1px solid var(--border-color); }
.marquee-track { display: inline-flex; white-space: nowrap; animation: scrollLeft 35s linear infinite; }
.marquee-track > span { font-family: var(--font-main); font-size: 3rem; font-weight: 600; text-transform: uppercase; padding-right: 10px; -webkit-text-stroke: 0px var(--text-dark); color: #666666; }
.marquee-track .dot { color: var(--accent); -webkit-text-stroke: 0; padding: 0; }
@keyframes scrollLeft { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* TÍTULOS COMUNES */
.section-header { margin-bottom: 60px; }
.section-header h2 { font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 900; line-height: 1.1; letter-spacing: -1px; color: var(--text-dark); }
.section-header h2 span { color: var(--accent); }

/* ==========================================================================
   SERVICIOS
   ========================================================================= */
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 40px; 
}
.service-card { 
    padding: 40px; background: #fff; border: 1px solid var(--border-color); 
    transition: var(--transition); display: flex; flex-direction: column; 
}
.srv-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.srv-num { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; color: var(--text-muted); }

.srv-icon { 
    width: 42px; height: 42px; fill: none; stroke: var(--text-dark); 
    stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: var(--transition); 
}
.service-card:hover .srv-icon { stroke: var(--accent); transform: scale(1.1); }

.service-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 15px; color: var(--text-dark); }
.service-card p { flex-grow: 1; color: var(--text-muted); font-size: 0.95rem; }

.service-card:hover { border-color: var(--text-dark); background: var(--text-dark); color: #fff; transform: translateY(-10px); }
.service-card:hover h3 { color: #fff; }
.service-card:hover .srv-num, .service-card:hover p { color: #ccc; }
.srv-link { display: inline-block; margin-top: 20px; font-family: var(--font-mono); font-weight: 600; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; transition: 0.3s; color: var(--text-dark); }
.service-card:hover .srv-link { color: var(--accent); }

/* ==========================================================================
   SECCIÓN PARTNER DIGITAL (MODIFICADA: Texto Extra y Sin Imagen)
   ========================================================================= */
.work-area-container { 
    display: grid; 
    /* Cambiado para que las dos columnas de texto queden equilibradas */
    grid-template-columns: 1fr 1fr; 
    gap: 60px; 
    align-items: center; 
}

/* Estilo especial para el nuevo título gigante de Partner */
.partner-title-large {
    font-size: clamp(3.2rem, 5vw, 4.5rem); 
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 15px;
}

/* Estilos para la nueva columna de texto de la derecha */
.work-text-extra {
    padding-left: 30px;
    border-left: 2px solid rgba(255, 138, 0, 0.3); /* Línea decorativa naranja tenue */
}
.work-text-extra .highlight-text {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
}
.work-text-extra p {
    font-size: 1.15rem;
    color: #cccccc;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Fondo animado de la sección */
.bg-fondo-inverted {
    position: relative;
    background-color: #000000; 
    overflow: hidden; 
}
.bg-fondo-inverted::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('https://somweb.eu/fondo.jpg'); 
    background-size: cover; background-position: center; background-repeat: no-repeat; 
    z-index: 0; filter: invert(1); opacity: 0.15; 
    animation: zoomBackground 20s ease-in-out infinite alternate; 
    transform-origin: center center;
}
@keyframes zoomBackground {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}
.bg-fondo-inverted .container { position: relative; z-index: 1; }
.bg-fondo-inverted h2 { color: #ffffff; }
.bg-fondo-inverted h2 span { color: var(--accent); }
.bg-fondo-inverted .work-text p { color: #dddddd; margin-bottom: 15px; font-size: 1.1rem; }

/* ==========================================================================
   BLOG Y TESTIMONIOS
   ========================================================================= */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.blog-card { border: 1px solid var(--border-color); background: #fff; transition: var(--transition); }
.blog-card:hover { border-color: var(--text-dark); transform: translateY(-5px); }
.blog-img { height: 220px; overflow: hidden; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: var(--transition); }
.blog-card:hover .blog-img img { filter: grayscale(0%); transform: scale(1.05); }
.blog-info { padding: 30px; }
.blog-info h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; }
.blog-info h3 a { color: var(--text-dark); }
.blog-info p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; }
.read-more { font-family: var(--font-mono); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; transition: var(--transition); color: var(--text-dark); }
.read-more:hover { color: var(--accent); }

.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.testimonial-card { padding: 40px; background: #fff; border: 1px solid var(--border-color); position: relative; transition: var(--transition); }
.testimonial-card:hover { border-color: var(--text-dark); box-shadow: 10px 10px 0px rgba(0,0,0,0.05); }
.quote-icon { font-family: var(--font-main); font-size: 4rem; color: var(--accent); line-height: 0; position: absolute; top: 40px; left: 20px; opacity: 0.3; }
.testimonial-card p { font-size: 1.1rem; font-style: italic; position: relative; z-index: 1; padding-left: 15px; color: var(--text-dark); }
.testimonial-card cite { display: block; margin-top: 20px; font-family: var(--font-mono); font-size: 0.85rem; font-style: normal; font-weight: 700; padding-left: 15px; color: var(--text-muted); }

/* FOOTER Y CONTACTO */
.footer { background: var(--text-dark); color: #fff; padding: 100px 0; z-index: 1; position: relative; }
.footer-container { display: grid; grid-template-columns: 1.5fr 1fr; gap: 80px; }
.footer h2, .footer h3 { font-weight: 900; margin-bottom: 30px; color: #fff; }

.contact-form input, .contact-form textarea { 
    width: 100%; padding: 15px 0; margin-bottom: 20px; background: transparent; 
    border: none; border-bottom: 1px solid rgba(255,255,255,0.2); color: #fff; 
    font-family: var(--font-mono); font-size: 0.9rem; transition: var(--transition);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form .btn-primary { background: #fff; color: var(--text-dark); margin-top: 10px; }
.contact-form .btn-primary:hover { background: var(--accent); color: #fff; }

.footer-info-section p { font-family: var(--font-mono); font-size: 1rem; margin-bottom: 15px; color: #ccc; }
.logo-footer { font-family: var(--font-main); font-size: 4rem; font-weight: 900; color: rgba(255,255,255,0.05); margin-top: 40px; letter-spacing: -2px; }

.cookie-popup { position: fixed; bottom: -150px; left: 20px; max-width: 400px; background: #fff; padding: 25px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); transition: 0.6s; z-index: 10000; border: 1px solid var(--border-color); color: var(--text-dark); }
.cookie-popup.show { bottom: 20px; }
.cookie-content p { font-size: 0.85rem; margin-bottom: 15px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 992px) {
    .left-sidebar { display: none; }
    .main-wrapper { margin-left: 0; }
    .nav { display: none; }
    
    /* Adaptar las dos columnas de Partner a una sola en tablets */
    .work-area-container, .footer-container { grid-template-columns: 1fr; gap: 50px; }
    .work-text-extra { border-left: none; padding-left: 0; border-top: 2px solid rgba(255, 138, 0, 0.3); padding-top: 30px; }
    
    .circular-badge { right: 20px; bottom: 20px; }
    .header-inner { flex-direction: column; gap: 15px; align-items: flex-end; }
}
@media (max-width: 768px) {
    body { cursor: auto; }
    .custom-cursor, .custom-cursor-follower { display: none; }
    .header { padding: 20px; }
    .hero-content h1 { font-size: 3.5rem; }
    .partner-title-large { font-size: 2.8rem; }
    .hero-actions { flex-direction: column; }
    .circular-badge { display: none; }
    .header-contact { font-size: 0.75rem; flex-direction: column; align-items: flex-end; gap: 5px; }
    .header-contact .separator { display: none; }
    .services-grid { grid-template-columns: 1fr; } 
}