/* ===== Orión TI · estilos compartidos ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --navy: #182B39;
    --navy-deep: #101d27;
    --ink: #182B39;
    --cyan: #16BCED;
    --blue: #1569AB;
    --blue-dark: #115089;
    --gray: #70777C;
    --light: #E3ECF2;
    --bg: #ffffff;
    --bg-alt: #F5F8FA;
    --border: #E3ECF2;
    --text: #182B39;
    --text-soft: #5a6570;
    --radius: 22px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text); background: var(--bg); line-height: 1.6;
    overflow-x: hidden; width: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3 { font-family: 'Montserrat', sans-serif; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink); }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.accent { color: var(--blue); }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.75rem;
    border-radius: 980px; font-weight: 600; font-size: 1rem; text-decoration: none;
    border: 1px solid transparent; transition: all 0.3s var(--ease); cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(21,105,171,0.6); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--light); }
.btn-outline:hover { border-color: var(--blue); transform: translateY(-2px); }
.btn-light { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.32); backdrop-filter: blur(6px); }
.btn-light:hover { background: rgba(255,255,255,0.24); transform: translateY(-2px); }
.link-more { color: var(--blue); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; transition: gap 0.25s var(--ease); }
.link-more:hover { gap: 9px; }

/* ===== Header ===== */
header { position: fixed; top: 0; width: 100%; z-index: 1000; transition: all 0.4s var(--ease); border-bottom: 1px solid transparent; transform: translateZ(0); -webkit-transform: translateZ(0); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
header.scrolled { background: rgba(255,255,255,0.82); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--border); }
nav { display: flex; justify-content: space-between; align-items: center; height: 66px; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 40px; width: auto; display: block; }
.nav-right { display: flex; align-items: center; gap: 1.5rem; }

/* Language switch */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--border); border-radius: 980px; padding: 4px 6px; background: rgba(255,255,255,0.6); }
header.scrolled .lang-switch { background: #fff; }
.lang-switch .globe { width: 15px; height: 15px; margin: 0 4px 0 4px; stroke: var(--text-soft); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.lang-switch .lang-opt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; color: var(--text-soft); text-decoration: none; padding: 4px 9px; border-radius: 980px; transition: 0.25s var(--ease); }
.lang-switch .lang-opt.active { background: var(--blue); color: #fff; }
.lang-switch .lang-opt:not(.active):hover { color: var(--blue); background: var(--bg-alt); }
.lang-li { display: flex; align-items: center; }
.nav-links { display: flex; list-style: none; gap: 2.1rem; align-items: center; }
.nav-links a { text-decoration: none; font-size: 0.92rem; font-weight: 500; color: var(--text); transition: color 0.3s; position: relative; }
.nav-links a:hover { color: var(--blue); }
.nav-links a.active { color: var(--blue); }
.nav-links a.active:not(.lang-opt)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--blue); }
.nav-links .nav-cta { padding: 0.55rem 1.2rem; border-radius: 980px; background: var(--blue); color: #fff !important; }
.nav-links .nav-cta:hover { background: var(--blue-dark); }
.nav-links .nav-cta.active::after { display: none; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--ink); transition: 0.3s; }

/* ===== Home hero (light) ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden;
    background: radial-gradient(1100px 560px at 50% -12%, rgba(22,188,237,0.16), transparent 62%), linear-gradient(180deg, #ffffff 0%, #F5F8FA 100%); }
.hero-constellation { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.5; pointer-events: none; }
.hero-constellation circle { fill: var(--cyan); }
.hero-constellation line { stroke: var(--blue); stroke-width: 1; opacity: 0.35; }
.twinkle { animation: twinkle 3.5s ease-in-out infinite; }
.twinkle:nth-child(2n) { animation-delay: 1.1s; } .twinkle:nth-child(3n) { animation-delay: 2.2s; }
@keyframes twinkle { 0%,100% { opacity: 0.25; } 50% { opacity: 0.9; } }
.hero-content { position: relative; z-index: 2; padding: 96px 24px 0; max-width: 900px; }
.hero-icon { width: 108px; height: 108px; margin: 0 auto 30px; filter: drop-shadow(0 18px 40px rgba(21,105,171,0.32)); animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero h1 { font-size: clamp(2.7rem, 7vw, 5.4rem); font-weight: 800; margin-bottom: 1.4rem; }
.hero h1 .grad { background: linear-gradient(100deg, var(--cyan), var(--blue)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { color: var(--text-soft); font-size: clamp(1.05rem, 2vw, 1.35rem); max-width: 620px; margin: 0 auto 2.4rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; color: var(--gray); font-size: 1.4rem; animation: bob 2s infinite; text-decoration: none; }
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* ===== Sub-page hero ===== */
.subhero { position: relative; padding: 150px 0 72px; text-align: center; overflow: hidden;
    background: radial-gradient(900px 420px at 50% -30%, rgba(22,188,237,0.14), transparent 60%), linear-gradient(180deg, #ffffff 0%, #F5F8FA 100%); }
.subhero h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); font-weight: 800; margin-top: 0.6rem; }
.subhero p { color: var(--text-soft); font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 640px; margin: 1rem auto 0; }

/* ===== Sections ===== */
section.block { padding: 108px 0; }
.section-head { max-width: 760px; margin: 0 auto 62px; text-align: center; }
.kicker { color: var(--blue); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; }
.section-title { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; margin: 0.7rem 0 1rem; }
.section-sub { color: var(--text-soft); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.alt { background: var(--bg-alt); }

/* ===== Icons (line, minimal) ===== */
.icon { width: 26px; height: 26px; display: block; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Services ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.service-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 30px; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(21,43,61,0.22); }
.svc-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; color: var(--blue); background: rgba(21,105,171,0.07); }
.service-card h3 { font-size: 1.24rem; font-weight: 700; margin-bottom: 0.5rem; }
.service-card p { color: var(--text-soft); font-size: 0.97rem; }
.service-card .badge { display: inline-block; margin-top: 14px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); background: rgba(21,105,171,0.09); padding: 4px 11px; border-radius: 980px; }

/* ===== Feature split ===== */
.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.feature.reverse .feature-media { order: 2; }
.feature-media { border-radius: 26px; overflow: hidden; box-shadow: 0 40px 80px -44px rgba(21,43,61,0.4); aspect-ratio: 4/3; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-text h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; margin: 0.6rem 0 1rem; }
.feature-text p { color: var(--text-soft); font-size: 1.08rem; margin-bottom: 1.3rem; }
.feature-list { list-style: none; margin-bottom: 1.6rem; }
.feature-list li { padding: 8px 0 8px 32px; position: relative; font-size: 1rem; }
.feature-list li svg { position: absolute; left: 0; top: 6px; width: 20px; height: 20px; color: var(--blue); }

/* ===== Cinematic band ===== */
.band { position: relative; min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; background: var(--navy-deep); }
.band video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.band-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,29,39,0.78), rgba(16,29,39,0.62)); }
.band-content { position: relative; z-index: 2; max-width: 820px; padding: 0 24px; }
.band-content h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; margin-bottom: 1rem; }
.band-content p { color: rgba(255,255,255,0.85); font-size: clamp(1.05rem, 2vw, 1.25rem); margin-bottom: 2rem; }

/* ===== Proceso ===== */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.step { padding: 34px 28px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.step .n { font-family: 'Montserrat'; font-weight: 800; font-size: 1rem; color: var(--blue); letter-spacing: 0.1em; margin-bottom: 16px; }
.step h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 0.5rem; }
.step p { color: var(--text-soft); font-size: 0.96rem; }

/* ===== Equipos ===== */
.equipos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.equipo-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 36px 32px; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.equipo-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(21,43,61,0.22); }
.equipo-card h3 { font-size: 1.3rem; font-weight: 700; margin: 16px 0 0.6rem; }
.equipo-card > p { color: var(--text-soft); margin-bottom: 1rem; }
.equipo-card ul { list-style: none; }
.equipo-card li { color: var(--text-soft); font-size: 0.95rem; padding: 6px 0 6px 22px; position: relative; }
.equipo-card li::before { content: '›'; position: absolute; left: 0; color: var(--blue); font-weight: 700; }

/* ===== Values ===== */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.value-box { padding: 36px 32px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.value-box h3 { color: var(--blue); font-size: 1.25rem; font-weight: 700; margin-bottom: 0.7rem; }
.value-box p { color: var(--text-soft); }

/* ===== Trust ===== */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust-item { text-align: center; padding: 20px; }
.trust-item .big { font-family: 'Montserrat'; font-weight: 800; font-size: clamp(1.9rem, 3.5vw, 2.6rem); color: var(--ink); }
.trust-item .lbl { color: var(--text-soft); font-size: 0.94rem; margin-top: 4px; }

/* ===== Marcas ===== */
.brands { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.swiper { padding: 12px 0; }
.swiper-slide { display: flex; align-items: center; justify-content: center; }
.brand-logo { max-width: 120px; max-height: 48px; filter: grayscale(1); opacity: 0.5; transition: 0.35s var(--ease); }
.brand-logo:hover { filter: none; opacity: 1; }

/* ===== Pledge / manifiesto ===== */
.pledge { position: relative; overflow: hidden; text-align: center;
    background: radial-gradient(800px 400px at 50% 0%, rgba(22,188,237,0.10), transparent 60%); }
.pledge .badge-icon { width: 66px; height: 66px; margin: 0 auto 26px; border-radius: 18px; display: grid; place-items: center; color: var(--blue); background: rgba(21,105,171,0.08); border: 1px solid var(--border); }
.pledge .badge-icon .icon { width: 30px; height: 30px; }
.pledge h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; max-width: 860px; margin: 0 auto 1.2rem; line-height: 1.15; }
.pledge h2 .grad { background: linear-gradient(100deg, var(--cyan), var(--blue)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pledge p { color: var(--text-soft); font-size: 1.18rem; max-width: 660px; margin: 0 auto; }
.pledge .sign { margin-top: 30px; display: inline-flex; align-items: center; gap: 12px; color: var(--text-soft); font-size: 0.95rem; }
.pledge .sign img { height: 30px; width: auto; }

/* ===== Why-us / diferenciadores ===== */
.reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.reason { padding: 32px 28px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.alt .reason { background: #fff; }
.reason:hover { transform: translateY(-5px); box-shadow: 0 24px 50px -26px rgba(21,43,61,0.22); }
.reason .svc-icon { margin-bottom: 18px; }
.reason h3 { font-size: 1.14rem; font-weight: 700; margin-bottom: 0.45rem; }
.reason p { color: var(--text-soft); font-size: 0.95rem; }

/* ===== CTA strip ===== */
.cta-strip .box { text-align: center; background: linear-gradient(160deg, #ffffff, #F5F8FA); border: 1px solid var(--border); border-radius: 28px; padding: 66px 32px; }
.cta-strip h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; margin-bottom: 0.9rem; }
.cta-strip p { color: var(--text-soft); font-size: 1.1rem; max-width: 560px; margin: 0 auto 2rem; }

/* ===== Contacto ===== */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.contact-info h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; margin: 0.6rem 0 1rem; }
.contact-info .lead { color: var(--text-soft); font-size: 1.1rem; margin-bottom: 2.2rem; }
.info-item { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; text-decoration: none; color: var(--text); }
.info-item .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--bg-alt); border: 1px solid var(--border); flex-shrink: 0; color: var(--blue); }
.info-item .ic .icon { width: 22px; height: 22px; }
.info-item .meta small { display: block; color: var(--text-soft); font-size: 0.82rem; }
a.info-item:hover .ic { border-color: var(--blue); }

.contact-form { background: #fff; border: 1px solid var(--border); border-radius: 26px; padding: 38px; box-shadow: 0 40px 80px -52px rgba(21,43,61,0.4); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 0.85rem 1rem; border: 1px solid var(--border); border-radius: 14px;
    font-size: 0.98rem; font-family: inherit; background: var(--bg-alt); color: var(--text); transition: 0.25s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(21,105,171,0.1); }
.form-group textarea { min-height: 128px; resize: vertical; }
.submit-button { width: 100%; padding: 1rem; background: var(--blue); color: #fff; border: none; border-radius: 14px; font-size: 1.05rem; font-weight: 600; cursor: pointer; transition: 0.3s var(--ease); display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.submit-button:hover { background: var(--blue-dark); transform: translateY(-2px); }
.submit-button .icon { width: 20px; height: 20px; stroke: #fff; }
.form-note { text-align: center; font-size: 0.82rem; color: var(--text-soft); margin-top: 14px; }

/* ===== WhatsApp float ===== */
.whatsapp-float { position: fixed; width: 56px; height: 56px; bottom: 24px; right: 24px; background: #25d366; color: #fff; border-radius: 50%; display: grid; place-items: center; text-decoration: none; z-index: 1001; box-shadow: 0 12px 30px -8px rgba(37,211,102,0.55); transition: 0.3s var(--ease); }
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }

/* ===== Footer (light) ===== */
footer { background: var(--bg-alt); color: var(--text-soft); padding: 72px 0 32px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo img { height: 46px; }
.footer-brand p { font-size: 0.94rem; max-width: 300px; color: var(--text-soft); }
.footer-section h4 { color: var(--ink); font-family: 'Montserrat'; font-size: 1rem; margin-bottom: 14px; }
.footer-section a { display: block; color: var(--text-soft); text-decoration: none; font-size: 0.93rem; margin-bottom: 9px; transition: color 0.25s; }
.footer-section a:hover { color: var(--blue); }
.social-links { display: flex; gap: 10px; margin-top: 14px; }
.social-links a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 1px solid var(--border); transition: 0.3s var(--ease); margin: 0; color: var(--gray); }
.social-links a:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-3px); }
.social-links a svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 26px; text-align: center; font-size: 0.86rem; color: var(--gray); }

@media (max-width: 900px) {
    section.block { padding: 78px 0; }
    .feature, .contact-wrap { grid-template-columns: 1fr; gap: 36px; }
    .feature.reverse .feature-media { order: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .trust-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-links { position: absolute; top: 66px; left: 0; width: 100%; flex-direction: column; align-items: flex-start; gap: 1.1rem; padding: 24px; background: rgba(255,255,255,0.97); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); display: none; }
    .nav-links.active { display: flex; }
    .nav-links a.active::after { display: none; }
    .form-row { grid-template-columns: 1fr; }

    /* Selector de idioma dentro del menú hamburguesa en móvil */
    .lang-li { width: 100%; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--border); }
    .menu-toggle { padding: 8px; }
    .menu-toggle span { width: 24px; height: 2.5px; }
}
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto; } }
