/* ===============================================================
   HOJA DE ESTILOS - Corporación Cyber Power
   Guía: modifica las variables de :root para cambiar la identidad visual.
   =============================================================== */

/* 1. VARIABLES CORPORATIVAS: cambia aquí la paleta, sombras y radios globales. */
:root {
    --navy: #081b35;
    --navy2: #102b4f;
    --blue: #1479d1;
    --cyan: #22c5d9;
    --ink: #17263b;
    --muted: #64748b;
    --paper: #f4f8fc;
    --white: #fff;
    --line: #dce6f0;
    --shadow: 0 18px 55px rgba(8,27,53,.12);
    --radius: 22px;
}

/* 2. REGLAS BASE: normalización, tipografía y estilos generales. */
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: Inter,Segoe UI,Arial,sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.6;
}
a {
    text-decoration: none;
    color: inherit;
}
.container {
    width: min(1160px,calc(100% - 40px));
    margin: auto;
}

/* 3. CABECERA Y MENÚ: barra superior, marca, navegación y botón móvil. */
header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(8,27,53,.96);
    backdrop-filter: blur(12px);
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.nav {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-weight: 800;
    letter-spacing: .2px;
    font-size: 1.05rem;
}
.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg,var(--cyan),var(--blue));
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    font-size: 1.1rem;
    box-shadow: 0 8px 22px #1479d155;
}
.brand small {
    display: block;
    font-size: .62rem;
    letter-spacing: 2px;
    color: #9fc5e8;
    font-weight: 600;
    margin-top: -4px;
}
nav {
    display: flex;
    align-items: center;
    gap: 30px;
}
nav a {
    font-size: .92rem;
    color: #d8e7f6;
    font-weight: 600;
    transition: .2s;
}
nav a:hover,nav a.active {
    color: var(--cyan);
}
.nav-cta {
    padding: 11px 18px;
    border-radius: 999px;
    background: var(--blue);
    color: #fff !important;
}
.menu-btn {
    display: none;
    background: none;
    border: 1px solid #ffffff55;
    color: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 1.2rem;
}

/* 4. PORTADA PRINCIPAL: fondo, titular, botones y elementos gráficos. */
.hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 80% 25%,#1a5d91 0,transparent 32%),linear-gradient(120deg,#081b35 0%,#102e52 65%,#0c4568 100%);
    color: #fff;
    padding: 105px 0 110px;
}

/* 4. PORTADA PRINCIPAL: fondo, titular, botones y elementos gráficos. */
.hero:after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border: 1px solid #ffffff18;
    border-radius: 50%;
    right: -130px;
    bottom: -330px;
    box-shadow: 0 0 0 55px #ffffff08,0 0 0 110px #ffffff06;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #7de5ef;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: .75rem;
    font-weight: 800;
}
.eyebrow:before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--cyan);
}
h1 {
    font-size: clamp(2.6rem,5vw,4.7rem);
    line-height: 1.06;
    letter-spacing: -2px;
    margin: 18px 0 22px;
}
h1 span {
    color: #5ddbe8;
}

/* 4. PORTADA PRINCIPAL: fondo, titular, botones y elementos gráficos. */
.hero p {
    color: #d0dfed;
    font-size: 1.1rem;
    max-width: 620px;
}
.actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 32px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border-radius: 999px;
    font-weight: 750;
    transition: .2s;
    border: 1px solid transparent;
}
.btn-primary {
    background: linear-gradient(90deg,var(--blue),#159bc9);
    color: #fff;
    box-shadow: 0 10px 24px #1479d144;
}
.btn-primary:hover {
    transform: translateY(-2px);
}
.btn-outline {
    border-color: #ffffff66;
    color: #fff;
}
.btn-outline:hover {
    background: #ffffff15;
}
.visual {
    min-height: 350px;
    position: relative;
    display: grid;
    place-items: center;
}
.orbit {
    width: 290px;
    height: 290px;
    border-radius: 50%;
    border: 1px solid #7edce955;
    display: grid;
    place-items: center;
    box-shadow: 0 0 0 35px #ffffff08,0 0 0 70px #ffffff05;
}
.core {
    width: 165px;
    height: 165px;
    border-radius: 34px;
    background: linear-gradient(145deg,#1a9bc8,#1262b0);
    display: grid;
    place-items: center;
    font-size: 4rem;
    box-shadow: 0 25px 70px #0006;
    transform: rotate(-8deg);
}
.float-card {
    position: absolute;
    background: #fff;
    color: var(--ink);
    padding: 14px 17px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    font-size: .86rem;
    font-weight: 750;
}
.float-card b {
    display: block;
    color: var(--blue);
    font-size: 1.15rem;
}
.fc1 {
    top: 35px;
    right: 0;
}
.fc2 {
    bottom: 38px;
    left: 0;
}

/* 5. SECCIONES Y COMPONENTES: títulos, tarjetas, columnas, estadísticas y bloques. */
.section {
    padding: 86px 0;
}
.section-soft {
    background: var(--paper);
}
.section-head {
    max-width: 700px;
    margin: 0 auto 42px;
    text-align: center;
}
.kicker {
    color: var(--blue);
    font-size: .76rem;
    font-weight: 850;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* 5. SECCIONES Y COMPONENTES: títulos, tarjetas, columnas, estadísticas y bloques. */
.section h2,.page-title {
    font-size: clamp(2rem,3.4vw,3rem);
    line-height: 1.15;
    letter-spacing: -1px;
    margin: 10px 0 15px;
    color: var(--navy);
}
.section-head p,.lead {
    color: var(--muted);
    font-size: 1.05rem;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 22px;
}
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 8px 28px #0b31500a;
    transition: .25s;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}
.icon-box {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #e7f5fb;
    color: var(--blue);
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    margin-bottom: 18px;
}
.card h3 {
    margin: 0 0 9px;
    color: var(--navy);
    font-size: 1.18rem;
}
.card p {
    margin: 0;
    color: var(--muted);
    font-size: .95rem;
}
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.feature-panel {
    background: linear-gradient(145deg,#0b2342,#13517b);
    padding: 38px;
    border-radius: 28px;
    color: #fff;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow);
}
.feature-panel h3 {
    font-size: 1.8rem;
    line-height: 1.2;
    margin: 0;
}
.feature-panel p {
    color: #c9dcec;
}
.check-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}
.check-list li {
    padding: 8px 0;
    color: #43546a;
}
.check-list li:before {
    content: "✓";
    color: #13a7c8;
    font-weight: 900;
    margin-right: 12px;
}
.stats {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 15px;
    margin-top: 30px;
}
.stat {
    padding: 20px;
    border-radius: 16px;
    background: #eff7fc;
}
.stat strong {
    display: block;
    color: var(--blue);
    font-size: 1.8rem;
}
.stat span {
    color: var(--muted);
    font-size: .85rem;
}

/* 6. CABECERAS INTERNAS: título y descripción de páginas secundarias. */
.page-hero {
    padding: 72px 0;
    background: linear-gradient(120deg,#081b35,#124a73);
    color: #fff;
}

/* 6. CABECERAS INTERNAS: título y descripción de páginas secundarias. */
.page-hero h1 {
    font-size: clamp(2.4rem,4vw,3.7rem);
    margin: 10px 0;
}

/* 6. CABECERAS INTERNAS: título y descripción de páginas secundarias. */
.page-hero p {
    max-width: 700px;
    color: #d2e3f1;
    font-size: 1.05rem;
}
.crumb {
    color: #78dce9;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* 7. LISTADOS DE SERVICIOS Y SOLUCIONES. */
.service-row {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid var(--line);
}

/* 7. LISTADOS DE SERVICIOS Y SOLUCIONES. */
.service-row:last-child {
    border: 0;
}

/* 7. LISTADOS DE SERVICIOS Y SOLUCIONES. */
.service-row .icon-box {
    margin: 0;
}

/* 7. LISTADOS DE SERVICIOS Y SOLUCIONES. */
.service-row h3 {
    margin: 0 0 6px;
    color: var(--navy);
}

/* 7. LISTADOS DE SERVICIOS Y SOLUCIONES. */
.service-row p {
    margin: 0;
    color: var(--muted);
}

/* 8. CONTACTO: datos, formulario, campos y validación visual. */
.contact-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 30px;
}
.contact-info {
    background: linear-gradient(145deg,#081b35,#13517b);
    color: #fff;
    padding: 34px;
    border-radius: 24px;
}
.contact-info h2 {
    color: #fff;
}
.contact-info p {
    color: #c7d9e9;
}
.contact-item {
    padding: 15px 0;
    border-bottom: 1px solid #ffffff22;
}
.contact-item strong {
    display: block;
    color: #7de5ef;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.form-card {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.field.full {
    grid-column: 1/-1;
}
.field label {
    font-size: .86rem;
    font-weight: 700;
    color: var(--navy);
}
.field input,.field textarea,.field select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #cfdae6;
    border-radius: 11px;
    font: inherit;
    color: var(--ink);
    background: #fbfdff;
}
.field textarea {
    min-height: 125px;
    resize: vertical;
}
.field input:focus,.field textarea:focus,.field select:focus {
    outline: 2px solid #8bd8ed;
    border-color: var(--blue);
}

/* 9. LLAMADAS A LA ACCIÓN Y PIE DE PÁGINA. */
.cta {
    background: linear-gradient(100deg,#0b2443,#10517a);
    color: #fff;
    padding: 54px;
    border-radius: 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

/* 9. LLAMADAS A LA ACCIÓN Y PIE DE PÁGINA. */
.cta h2 {
    color: #fff;
    margin: 0 0 8px;
}

/* 9. LLAMADAS A LA ACCIÓN Y PIE DE PÁGINA. */
.cta p {
    margin: 0;
    color: #c9dced;
}
footer {
    background: #06152a;
    color: #d1dfed;
    padding: 55px 0 22px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 45px;
}
.footer-grid h4 {
    color: #fff;
    margin: 0 0 15px;
}
.footer-grid p,.footer-grid a {
    color: #aebfd0;
    font-size: .9rem;
}
.footer-links {
    display: grid;
    gap: 9px;
}
.copyright {
    border-top: 1px solid #ffffff1b;
    margin-top: 38px;
    padding-top: 20px;
    color: #8298ad;
    font-size: .8rem;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
media (max-width:850px) {
    .hero-grid,.split,.contact-grid {
        grid-template-columns: 1fr;
    }
    .visual {
        min-height: 300px;
    }
    .grid-3 {
        grid-template-columns: repeat(2,1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

/* 9. LLAMADAS A LA ACCIÓN Y PIE DE PÁGINA. */
    .cta {
        align-items: flex-start;
        flex-direction: column;
    }
}
media (max-width:640px) {
    .container {
        width: min(100% - 30px,1160px);
    }
    .nav {
        height: 70px;
    }
    .menu-btn {
        display: block;
    }
    nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #081b35;
        padding: 18px 22px 24px;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        border-top: 1px solid #ffffff22;
    }
    nav.open {
        display: flex;
    }
    nav a {
        padding: 8px 0;
    }
    .nav-cta {
        text-align: center;
    }

/* 4. PORTADA PRINCIPAL: fondo, titular, botones y elementos gráficos. */
    .hero {
        padding: 75px 0 85px;
    }
    .hero-grid {
        gap: 15px;
    }
    h1 {
        letter-spacing: -1px;
    }
    .visual {
        min-height: 270px;
    }
    .orbit {
        width: 220px;
        height: 220px;
    }
    .core {
        width: 130px;
        height: 130px;
        font-size: 3rem;
    }
    .fc1 {
        right: -4px;
        top: 15px;
    }
    .fc2 {
        left: -4px;
        bottom: 18px;
    }

/* 5. SECCIONES Y COMPONENTES: títulos, tarjetas, columnas, estadísticas y bloques. */
    .section {
        padding: 65px 0;
    }
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .stats {
        grid-template-columns: 1fr 1fr;
    }

/* 6. CABECERAS INTERNAS: título y descripción de páginas secundarias. */
    .page-hero {
        padding: 55px 0;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .field.full {
        grid-column: auto;
    }
    .contact-info,.form-card {
        padding: 25px;
    }

/* 9. LLAMADAS A LA ACCIÓN Y PIE DE PÁGINA. */
    .cta {
        padding: 32px 25px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .copyright {
        flex-direction: column;
    }
}


/* =========================================================
   IDENTIDAD CORPORATIVA: LOGOTIPO OFICIAL
   El archivo de imagen se encuentra en /assets.
   Ajusta --brand-logo-width si necesitas cambiar su tamaño.
   ========================================================= */
:root { --brand-logo-width: 270px; }
.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 5px 10px;
  border-radius: 8px;
  flex-shrink: 0;
}
.brand-logo img {
  display: block;
  width: var(--brand-logo-width);
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* =========================================================
   CARRUSEL PRINCIPAL: DOS SLIDES DE LA PORTADA
   Las transiciones usan opacidad; cada slide ocupa el mismo
   espacio para evitar saltos en la altura del encabezado.
   ========================================================= */
.hero-slider {
  padding: 0;
  min-height: 570px;
  position: relative;
}
.slider-track {
  display: grid;
  min-height: 570px;
}
.hero-slide {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  min-height: 570px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .55s ease, visibility .55s ease;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.hero-slide:nth-child(2) {
  background:
    radial-gradient(circle at 78% 20%, #167ca0 0, transparent 33%),
    linear-gradient(120deg, #081b35 0%, #10365d 62%, #0b526d 100%);
}
.slider-controls {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 5;
}
.slider-arrow {
  width: 36px;
  height: 36px;
  border: 1px solid #ffffff66;
  border-radius: 50%;
  background: #ffffff12;
  color: #fff;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.slider-arrow:hover,
.slider-arrow:focus-visible {
  background: var(--blue);
  border-color: var(--blue);
}
.slider-dots { display: flex; align-items: center; gap: 9px; }
.slider-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ffffff70;
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}
.slider-dot.is-active {
  width: 25px;
  border-radius: 99px;
  background: var(--cyan);
}
@media (max-width: 640px) {
  :root { --brand-logo-width: 205px; }
  .hero-slider, .slider-track, .hero-slide { min-height: 680px; }
  .hero-slide { padding: 58px 0 80px; }
  .slider-controls { bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide, .slider-arrow, .slider-dot { transition: none; }
}
