/* ==============================
   VARIABLES GENERALES
============================== */
:root{
  --blue:#14366C;
  --blue-2:#1f6bff;
  --black:#05070c;
  --black-2:#0f131a;
  --white:#ffffff;
  --gray:#c8d1df;
  --soft:#f5f7fb;
  --border:rgba(255,255,255,.10);
  --shadow:0 18px 45px rgba(0,0,0,.35);
  --radius:18px;
  --transition:.35s ease;
}

/* ==============================
   RESET BÁSICO
============================== */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:"Inter", sans-serif;
  background:var(--black);
  color:var(--white);
  line-height:1.6;
}

img{
  width:100%;
  display:block;
  object-fit:cover;
}

a{
  text-decoration:none;
  color:inherit;
}

/* Contenedor general para centrar el contenido */
.container{
  width:min(1120px, 90%);
  margin:0 auto;
}

/* ==============================
   HEADER / NAVBAR
============================== */
.topbar{
  position:sticky;
  top:0;
  z-index:1000;
  background:linear-gradient(180deg, rgba(5,7,12,.96), rgba(9,15,30,.92));
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(31,107,255,.35);
  box-shadow:0 8px 30px rgba(0,0,0,.45);
}

.nav{
  min-height:90px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

/* Logo SITYS */
.logo{
  font-family:"Montserrat", sans-serif;
  font-size:2.5rem;
  font-weight:800;
  letter-spacing:3px;
  color:var(--blue-2);
  text-shadow:0 0 18px rgba(31,107,255,.35);
}

/* Menú de navegación */
#navMenu{
  display:flex;
  align-items:center;
  gap:32px;
}

#navMenu a{
  font-size:.98rem;
  font-weight:600;
  color:#e8edf7;
  transition:var(--transition);
  position:relative;
}

/* Línea animada debajo de cada enlace */
#navMenu a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-9px;
  width:0;
  height:2px;
  background:var(--blue-2);
  transition:var(--transition);
}

#navMenu a:hover,
#navMenu a.active-link{
  color:var(--white);
}

#navMenu a:hover::after,
#navMenu a.active-link::after{
  width:100%;
}

/* Botón de contacto dentro del menú */
.nav-cta{
  border:1px solid rgba(31,107,255,.75);
  padding:12px 22px;
  border-radius:999px;
  box-shadow:0 0 18px rgba(31,107,255,.22);
}

.nav-cta:hover{
  background:rgba(31,107,255,.18);
  box-shadow:0 0 26px rgba(31,107,255,.42);
}

/* Botón hamburguesa para celular */
.menu-btn{
  display:none;
  background:none;
  border:none;
  color:var(--white);
  font-size:1.8rem;
  cursor:pointer;
}

/* ==============================
   HERO
============================== */

.hero{
  position:relative;
  overflow:hidden;
  min-height:92vh;
  display:grid;
  align-items:center;

  /* Imagen de fondo + capa oscura para leer el texto */
  background:
    linear-gradient(
      90deg,
      rgba(5,7,12,.96) 0%,
      rgba(5,7,12,.88) 35%,
      rgba(5,7,12,.55) 70%,
      rgba(5,7,12,.30) 100%
    ),
    url("imagenfondo.png");

  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;

  padding:90px 0 80px;
  border-bottom:1px solid rgba(31,107,255,.32);
}


/* Grilla tecnológica sobre la imagen */
.hero::before{
  content:"";
  position:absolute;
  inset:0;

  background-image:
    linear-gradient(
      rgba(31,107,255,.06) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(31,107,255,.06) 1px,
      transparent 1px
    );

  background-size:60px 60px;
  opacity:.25;
  pointer-events:none;
  z-index:1;
}


/* Contenido por encima de la imagen */
.hero-content{
  position:relative;
  z-index:2;
}


/* Título principal */
.hero h1{
  max-width:750px;
  font-family:"Montserrat", sans-serif;
  font-size:clamp(3rem, 6vw, 5.5rem);
  line-height:1.05;
  font-weight:800;
  color:#ffffff;
}


/* Subtítulo */
.hero .eyebrow{
  margin-top:22px;
  color:#ffffff;
  font-size:.82rem;
  font-weight:700;
  letter-spacing:3px;
  text-transform:uppercase;
}


/* Descripción */
.hero-text{
  max-width:700px;
  margin-top:18px;
  font-size:1.08rem;
  color:#d6deeb;
  line-height:1.7;
}


/* Botones del hero */
.hero-actions{
  display:flex;
  gap:14px;
  margin-top:30px;
  flex-wrap:wrap;
}

/* ==============================
   BOTONES
============================== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 22px;
  border-radius:12px;
  font-weight:700;
  transition:var(--transition);
  border:none;
  cursor:pointer;
}

.btn-primary{
  background:var(--blue);
  color:var(--white);
  box-shadow:0 12px 26px rgba(20,54,108,.32);
}

.btn-primary:hover{
  transform:translateY(-3px);
  background:var(--blue-2);
  box-shadow:0 16px 34px rgba(31,107,255,.36);
}

.btn-secondary{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.18);
  color:var(--white);
}

.btn-secondary:hover{
  background:rgba(255,255,255,.08);
}

/* ==============================
   SECCIONES GENERALES
============================== */
.section{
  padding:100px 0;
}

.dark{
  background:linear-gradient(180deg, #08090d 0%, #0f131a 100%);
}

.blue{
  background:linear-gradient(180deg, #14366C 0%, #1a427f 100%);
}

.about{
  background:var(--soft);
  color:#0f1726;
}

.section-heading{
  margin-bottom:46px;
}

.section-heading.center{
  text-align:center;
}

.section-heading h2{
  font-size:2.5rem;
  margin-bottom:12px;
  color:var(--white);
}

.section-text{
  max-width:760px;
  margin:0 auto;
  color:var(--gray);
}

.light-title{
  color:var(--white);
}

/* ==============================
   ÁREAS PRINCIPALES
============================== */
.featured{
  background:linear-gradient(180deg, #102f61 0%, #14366C 100%);
  padding:95px 0;
}

.featured .section-heading h2{
  color:var(--white);
}

.featured-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:28px;
}

.featured-card{
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.14);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  transition:var(--transition);
}

.featured-card:hover{
  transform:translateY(-9px);
  border-color:rgba(255,255,255,.25);
}

/* Títulos de cards */
.featured-card h3,
.service-card h3,
.security-card h3,
.contact-info h3{
  font-family:"Montserrat", sans-serif;
  font-weight:700;
}

.featured-card h3{
  font-size:1.3rem;
  padding:22px 22px 10px;
}

.featured-card p{
  padding:0 22px 24px;
  color:#e3ebfa;
}

/* Imágenes de las cards */
.image-frame{
  height:240px;
  overflow:hidden;
  background:#0e203e;
}

.image-frame img{
  height:100%;
  filter:saturate(.9) contrast(1.05);
  transition:var(--transition);
}

.featured-card:hover img{
  transform:scale(1.06);
}

.image-frame.tall{
  height:100%;
  min-height:420px;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

/* ==============================
   SERVICIOS DE TI
============================== */
.cards-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:24px;
}

.service-card{
  background:linear-gradient(180deg, rgba(20,54,108,.22), rgba(255,255,255,.025));
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:30px;
  transition:var(--transition);
}

.service-card:hover{
  transform:translateY(-7px);
  border-color:rgba(31,107,255,.42);
  box-shadow:var(--shadow);
}

.service-card h3{
  font-size:1.18rem;
  margin-bottom:12px;
}

.service-card p{
  color:var(--gray);
}

/* ==============================
   SEGURIDAD ELECTRÓNICA
============================== */

#seguridad{
  position:relative;

  background:
    linear-gradient(
      rgba(20,54,108,.88),
      rgba(10,25,55,.92)
    ),

    /* ===== IMAGEN DE FONDO ===== */
   url("contacto.jpg");

  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  background-attachment:fixed;
}


/* ==============================
   TARJETAS DE SEGURIDAD
============================== */

.security-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:24px;
}

.security-card{
  background:rgba(8,20,45,.65);
  border:1px solid rgba(255,255,255,.12);
  border-radius:var(--radius);
  padding:30px 24px;
  text-align:center;
  transition:var(--transition);
  backdrop-filter:blur(6px);
}

.security-card:hover{
  transform:translateY(-6px);
  background:rgba(15,40,80,.75);
}

/* circulo  imagen */
/* Círculos con imágenes */
.security-icon{
  width:80px;
  height:80px;
  margin:0 auto 18px;

  border-radius:50%;
  overflow:hidden;

  background:rgba(255,255,255,.95);
  border:3px solid rgba(255,255,255,.35);

  box-shadow:
    0 0 15px rgba(31,107,255,.35),
    0 0 30px rgba(31,107,255,.15);
}


/* Imagen dentro del círculo */
.security-icon img{
  width:100%;
  height:100%;

  object-fit:cover;
  display:block;

  transition:transform .35s ease;
}

/* Efecto al pasar el mouse */
.security-card:hover .security-icon img{
  transform:scale(1.10);
}

/* imagen dentro del circulo */
.security-icon img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.security-card p{
  color:#ebf1fd;
}

.security-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:24px;
}

.security-card{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  border-radius:var(--radius);
  padding:30px 24px;
  text-align:center;
  transition:var(--transition);
}

.security-card:hover{
  transform:translateY(-6px);
  background:rgba(255,255,255,.11);
}

/* Círculo decorativo para íconos */
.security-icon{
  width:70px;
  height:70px;
  margin:0 auto 18px;
  border-radius:50%;
  background:rgba(255,255,255,.95);
  border:6px solid rgba(255,255,255,.15);
}

.security-card p{
  color:#ebf1fd;
}

/* ==============================
   SOLUCIONES TECNOLÓGICAS
============================== */
.solutions-layout{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:36px;
  align-items:center;
}

.solutions-copy h2{
  font-size:2.5rem;
  margin-bottom:14px;
}

.solutions-copy .section-text{
  margin:0;
}

.solution-list{
  margin-top:26px;
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:16px;
}

.solution-item{
  padding:18px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  color:#e8eefb;
  font-weight:600;
  transition:var(--transition);
}

.solution-item:hover{
  background:rgba(31,107,255,.12);
  transform:translateY(-4px);
}

/* ==============================
   SOBRE NOSOTROS
============================== */
.about-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:36px;
  align-items:center;
}

.about-copy h2{
  font-size:2.45rem;
  color:var(--blue);
  margin-bottom:18px;
}

.about-copy .eyebrow{
  color:var(--blue);
}

.about-copy p{
  color:#435066;
  margin-bottom:14px;
  font-size:1.03rem;
}

.about-stats{
  display:grid;
  gap:18px;
}

.stat-card{
  background:var(--white);
  border-radius:16px;
  padding:24px;
  box-shadow:0 14px 30px rgba(0,0,0,.08);
  border-left:4px solid var(--blue);
}

.stat-number{
  display:block;
  font-family:"Montserrat", sans-serif;
  font-size:2rem;
  font-weight:800;
  color:var(--blue);
}

.stat-label{
  color:#49566d;
  font-weight:500;
}

/* ==============================
   CONTACTO
============================== */
.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:28px;
}

.contact-info{
  padding:14px 0;
}

.contact-info p{
  color:var(--gray);
  margin:10px 0 22px;
}

.contact-item{
  padding:16px 0;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.contact-item span{
  display:block;
  color:#aeb8c9;
  margin-bottom:4px;
}

.contact-item strong{
  color:var(--white);
}

/* Formulario */
.contact-form{
  background:rgba(255,255,255,.04);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:28px;
  box-shadow:var(--shadow);
}

.contact-form input,
.contact-form textarea{
  width:100%;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  color:var(--white);
  padding:15px 16px;
  border-radius:12px;
  margin-bottom:14px;
  outline:none;
  font:inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder{
  color:#9aa8bf;
}

.contact-form input:focus,
.contact-form textarea:focus{
  border-color:rgba(31,107,255,.75);
  box-shadow:0 0 0 3px rgba(31,107,255,.18);
}

/* ==============================
   ANIMACIÓN AL HACER SCROLL
============================== */
.reveal{
  opacity:0;
  transform:translateY(30px);
  transition:.8s ease;
}

.reveal.active{
  opacity:1;
  transform:translateY(0);
}

/* ==============================
   RESPONSIVE TABLET
============================== */
@media (max-width: 980px){
  .featured-grid,
  .cards-grid,
  .security-grid,
  .contact-grid,
  .about-grid,
  .solutions-layout,
  .solution-list{
    grid-template-columns:1fr;
  }

  .hero h1{
    font-size:2.8rem;
  }

  .section-heading h2,
  .about-copy h2,
  .solutions-copy h2{
    font-size:2rem;
  }
}

/* ==============================
   RESPONSIVE CELULAR
============================== */
@media (max-width: 760px){
  .menu-btn{
    display:block;
  }

  #navMenu{
    position:absolute;
    top:90px;
    right:5%;
    width:250px;
    background:#0f131a;
    border:1px solid rgba(31,107,255,.25);
    border-radius:16px;
    padding:20px;
    display:none;
    flex-direction:column;
    align-items:flex-start;
    box-shadow:var(--shadow);
  }

  #navMenu.show{
    display:flex;
  }

  .hero{
    min-height:auto;
    padding:120px 0 80px;
  }

  .hero h1{
    font-size:2.25rem;
  }

  .section{
    padding:78px 0;
  }

  .image-frame{
    height:210px;
  }
}