/* === Base & Variables === */
:root {
    --primary-blue: #0f3563;
    --electric-blue: #0073e6;
    --accent-red: #e31837;
    --bg-light: #f4f7fb;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(15, 53, 99, 0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* === Typography === */
h1, h2, h3, h4 { color: var(--primary-blue); font-weight: 800; line-height: 1.2; }
h2 { font-size: 2.5rem; margin-bottom: 0.5rem; }

/* === Navbar === */
.navbar {
    position: fixed; top: 0; width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 1rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { height: 50px; transition: var(--transition); }
.logo:hover { transform: scale(1.05); }
.nav-links { list-style: none; display: flex; gap: 2rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--primary-blue); font-weight: 600; transition: var(--transition); }
.nav-links a:hover { color: var(--electric-blue); }
.btn-contacto {
    background-color: var(--primary-blue); color: var(--white) !important;
    padding: 0.6rem 1.5rem; border-radius: 50px;
    box-shadow: 0 4px 15px rgba(15, 53, 99, 0.3);
}
.btn-contacto:hover {
    background-color: var(--electric-blue); transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 115, 230, 0.4);
}

/* === Hero === */
.hero {
    position: relative; height: 100vh; min-height: 700px;
    display: flex; align-items: center; overflow: hidden;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e1e9f4 100%);
    padding-top: 80px;
}
.hero::before {
    content: ''; position: absolute; top: -50%; right: -20%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(0,115,230,0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%; z-index: 1;
}
.hero-content {
    max-width: 1200px; margin: 0 auto; padding: 0 2rem;
    position: relative; z-index: 2; text-align: center;
}
.hero-content h1 { font-size: 4.5rem; margin-bottom: 1.5rem; color: var(--primary-blue); animation: fadeInUp 1s ease-out; }
.hero-content h1 span { color: var(--accent-red); }
.hero-content p { font-size: 1.2rem; color: var(--text-light); max-width: 600px; margin: 0 auto 2.5rem; animation: fadeInUp 1s ease-out 0.2s both; }
.btn-primary {
    display: inline-block; background-color: var(--accent-red); color: var(--white);
    padding: 1rem 2.5rem; border-radius: 50px; text-decoration: none;
    font-weight: 600; font-size: 1.1rem; box-shadow: 0 10px 30px rgba(227, 24, 55, 0.3);
    transition: var(--transition); animation: fadeInUp 1s ease-out 0.4s both;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(227, 24, 55, 0.4); background-color: #c91430; }
.hero-bg-accent {
    position: absolute; bottom: -150px; left: -100px; width: 400px; height: 400px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13 2L3 14H12L11 22L21 10H12L13 2Z" fill="rgba(15,53,99,0.05)"/></svg>');
    background-size: cover; z-index: 0; transform: rotate(15deg);
}

/* === General Sections === */
.section { padding: 6rem 0; }
.section-header { margin-bottom: 4rem; }
.section-header.center { text-align: center; }
.divider { height: 4px; width: 60px; background: var(--electric-blue); margin: 1rem 0; border-radius: 2px; }
.divider.center { margin: 1rem auto; }
.subtitle { color: var(--text-light); font-size: 1.1rem; }

/* === Identidad Alt === */
.identidad-alt { background-color: var(--white); }
.identidad-layout {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
@media (max-width: 900px) { .identidad-layout { grid-template-columns: 1fr; } }

.identidad-text .lead-text { font-size: 1.2rem; color: var(--primary-blue); margin-bottom: 2.5rem; font-weight: 600; }
.diferenciales { display: flex; flex-direction: column; gap: 1.5rem; }
.dif-item h4 { display: flex; align-items: center; gap: 0.5rem; font-size: 1.1rem; margin-bottom: 0.5rem; }
.dif-item p { color: var(--text-light); padding-left: 1.8rem; }

.valores-box {
    background: var(--primary-blue); color: var(--white); padding: 3.5rem;
    border-radius: 24px; box-shadow: 0 20px 50px rgba(15, 53, 99, 0.2);
    position: relative; overflow: hidden;
}
.valores-box::before {
    content: ''; position: absolute; top: -50px; right: -50px; width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(0,115,230,0.3) 0%, rgba(255,255,255,0) 70%); border-radius: 50%;
}
.valores-box h3 { color: var(--white); margin-bottom: 0.5rem; font-size: 2rem; position: relative; z-index: 2; }
.valores-sub { color: rgba(255, 255, 255, 0.7); margin-bottom: 2.5rem; font-size: 1.1rem; position: relative; z-index: 2; }

/* === SPREAD Valores Acronym List === */
.spread-valores { padding: 3rem; }
.acronym-list { list-style: none; display: flex; flex-direction: column; gap: 1.2rem; position: relative; z-index: 2; }
.acronym-list li { display: flex; align-items: flex-start; gap: 1.2rem; color: rgba(255, 255, 255, 0.9); font-size: 0.95rem; }
.acronym-list li .letter { 
    font-size: 1.5rem; font-weight: 900; color: var(--electric-blue); 
    background: var(--white); width: 40px; height: 40px; 
    display: flex; align-items: center; justify-content: center; 
    border-radius: 8px; flex-shrink: 0; box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.acronym-list li strong { color: var(--white); font-weight: 700; margin-right: 0.3rem; font-size: 1.05rem; }

/* === Servicios === */
.servicios { background-color: var(--bg-light); }
.services-list { display: flex; flex-direction: column; gap: 3rem; }
.service-row {
    display: flex; align-items: center; gap: 3rem; background: var(--white);
    padding: 3rem; border-radius: 24px; box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    transition: var(--transition); border-left: 5px solid transparent; cursor: pointer;
}
.service-row:hover {
    transform: translateX(10px) translateY(-5px); border-left-color: var(--electric-blue);
    box-shadow: 0 20px 50px rgba(15, 53, 99, 0.1);
}
.service-row.reverse { flex-direction: row-reverse; }
.service-row.reverse:hover {
    transform: translateX(-10px) translateY(-5px); border-left-color: transparent; border-right: 5px solid var(--accent-red);
}
.service-num { font-size: 6rem; font-weight: 800; color: rgba(15, 53, 99, 0.05); line-height: 1; min-width: 120px; text-align: center; }
.service-content { flex: 1; }
.service-content h3 { font-size: 1.8rem; margin-bottom: 1rem; color: var(--primary-blue); }
.service-desc { color: var(--text-light); font-size: 1.1rem; margin-bottom: 1.5rem; }

.btn-details {
    display: inline-block; padding: 0.8rem 2rem; background: var(--bg-light);
    color: var(--primary-blue); border: 2px solid transparent; border-radius: 50px;
    font-weight: 600; cursor: pointer; transition: var(--transition); font-size: 0.95rem;
}
.service-row:hover .btn-details { background: var(--electric-blue); color: var(--white); box-shadow: 0 5px 15px rgba(0,115,230,0.3); }
.service-row.reverse:hover .btn-details { background: var(--accent-red); color: var(--white); box-shadow: 0 5px 15px rgba(227,24,55,0.3); }

/* === Modals === */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 53, 99, 0.85); backdrop-filter: blur(8px);
    z-index: 2000; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.3s ease; padding: 2rem;
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal-content {
    background: var(--white); padding: 3rem; border-radius: 20px;
    max-width: 800px; width: 100%; max-height: 85vh; overflow-y: auto;
    position: relative; transform: translateY(30px); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
}
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-close {
    position: absolute; top: 1.5rem; right: 1.5rem; font-size: 2.5rem;
    color: var(--text-light); cursor: pointer; line-height: 0.8; transition: var(--transition);
}
.modal-close:hover { color: var(--accent-red); transform: rotate(90deg); }
.feature-list { list-style: none; margin-top: 1.5rem; }
.feature-list li {
    position: relative; padding-left: 2rem; margin-bottom: 1.2rem;
    color: var(--text-dark); font-size: 1.05rem; line-height: 1.5;
}
.feature-list li::before {
    content: '⚡'; position: absolute; left: 0; top: 2px;
    font-size: 1rem; color: var(--electric-blue);
}
.feature-list li strong { color: var(--primary-blue); font-weight: 700; }

/* === Clientes === */
.clientes { background-color: var(--white); }
.client-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem; align-items: center;
}
.client-box {
    padding: 2rem 1rem; background: var(--bg-light); border-radius: 12px;
    text-align: center; font-weight: 800; color: var(--text-light);
    transition: var(--transition); cursor: default; letter-spacing: 1px;
}
.client-box:hover {
    background: var(--primary-blue); color: var(--white);
    transform: translateY(-5px) scale(1.02); box-shadow: 0 10px 20px rgba(15, 53, 99, 0.2);
}

/* === Adaptabilidad CTA === */
.adaptabilidad { background-color: var(--white); padding: 2rem 0 6rem; }
.cta-box {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #174b8a 100%);
    border-radius: 24px; padding: 4rem; text-align: center; color: var(--white);
    position: relative; overflow: hidden; box-shadow: 0 20px 50px rgba(15, 53, 99, 0.2);
}
.cta-box::before {
    content: '⚡'; position: absolute; font-size: 15rem; opacity: 0.05;
    top: -20%; left: -5%; transform: rotate(-15deg); pointer-events: none;
}
.cta-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.cta-content h2 { color: var(--white); margin-bottom: 1.5rem; font-size: 2.2rem; }
.cta-content p { color: rgba(255, 255, 255, 0.9); font-size: 1.1rem; margin-bottom: 1.5rem; line-height: 1.7; }
.cta-content .btn-primary { margin-top: 1.5rem; background: var(--accent-red); box-shadow: 0 10px 20px rgba(227, 24, 55, 0.3); }

/* === Footer === */
footer { background-color: var(--primary-blue); color: rgba(255, 255, 255, 0.7); padding: 4rem 0 2rem; }
.footer-content {
    display: flex; justify-content: space-between; align-items: flex-start;
    flex-wrap: wrap; gap: 2rem; margin-bottom: 3rem;
}
.footer-logo { height: 60px; background: var(--white); padding: 10px; border-radius: 8px; margin-bottom: 1rem; }
.footer-contact h4 { color: var(--white); margin-bottom: 1rem; }
.footer-contact p { margin-bottom: 0.5rem; }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.9rem; }

/* === Animations === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === Responsive === */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-content h1 { font-size: 3rem; }
    .service-row, .service-row.reverse { flex-direction: column; gap: 1.5rem; text-align: center; padding: 2rem; }
    .service-num { font-size: 4rem; }
    .feature-list li { text-align: left; }
    .modal-content { padding: 2rem; }
}