:root{
  --bg:#071026; --card:#071524; --accent:#0f6cff; --muted:#9fb0c9; --glass: rgba(255,255,255,0.03);
}
*{box-sizing:border-box}
body{font-family:Inter,system-ui,Arial,Helvetica,sans-serif;margin:0;color:#e6eef8;background:linear-gradient(180deg,var(--bg),#04101b);}
.container{max-width:1100px;margin:0 auto;padding:36px 20px}
header{display:flex;align-items:center;justify-content:space-between;gap:16px}
/* Encabezado con logo y texto alineados */
.brand {
  display: flex;
  align-items: center;   
  gap: 22px;             
  padding: 6px 0;
}

.logo-img {
  height: 100px;          
  width: auto;           
  border-radius: 24px;
  object-fit: contain;   
  margin-right: 15px;
}


.brand-name {
  font-weight: 800;
  font-size: 18px;
  color: #fff;
}

.brand-tagline {
  font-size: 13px;
  color: var(--muted);
}

/* Navegación */
nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 18px;
  font-weight: 600;
}
nav a:hover {
  color: #fff;
}
.brand{display:flex;gap:12px;align-items:center}
.logo{width:56px;height:56px;border-radius:10px;background:linear-gradient(135deg,var(--accent),#6dd3ff);display:flex;align-items:center;justify-content:center;font-weight:800;color:#04263b}
nav a{color:var(--muted);text-decoration:none;margin-left:18px;font-weight:600}
nav a:hover{color:#fff}
.hero{display:grid;grid-template-columns:1fr 420px;gap:28px;align-items:center;margin-top:36px}
.hero h1{font-size:34px;margin:0 0 12px 0;line-height:1.02}
.hero p{color:var(--muted);margin:0 0 18px}
.cta{display:inline-block;background:var(--accent);color:#04263b;padding:12px 18px;border-radius:10px;font-weight:700;text-decoration:none}
.card{background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.12));padding:18px;border-radius:14px;box-shadow:0 6px 20px rgba(4,8,16,0.6)}
.stats{display:flex;gap:12px;margin-top:14px}
.stat{flex:1;text-align:center}
.stat h3{margin:0;color:#fff}
.stat p{margin:6px 0 0 0;color:var(--muted);font-size:13px}
.services{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:28px}
.service{background:var(--glass);padding:16px;border-radius:12px}
.service h4{margin:0 0 8px}
.service p{margin:0;color:var(--muted);font-size:14px}
.projects{margin-top:28px;display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.project{min-height:220px;border-radius:10px;overflow:hidden;position:relative;background-size:cover;background-position:center}
.project .meta{position:absolute;left:12px;bottom:12px;background:rgba(0,0,0,0.45);padding:8px 10px;border-radius:8px}
footer{margin-top:40px;padding:24px 0;color:var(--muted)}
.contact-grid{display:grid;grid-template-columns:1fr 320px;gap:18px}
label{display:block;font-size:13px;color:var(--muted);margin-bottom:6px}
input,textarea{width:100%;padding:10px;border-radius:8px;border:1px solid rgba(255,255,255,0.04);background:transparent;color:#eef}
textarea{min-height:120px}
.btn-submit{margin-top:10px;background:var(--accent);color:#04263b;padding:10px 14px;border-radius:8px;border:none;font-weight:700}
@media (max-width:880px){
  .hero{grid-template-columns:1fr;}
  .services{grid-template-columns:1fr}
  .projects{grid-template-columns:1fr}
  .contact-grid{grid-template-columns:1fr}
  nav a{display:none}
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 5%;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;   /* centra verticalmente logo y texto */
  gap: 16px;             /* espacio entre logo y texto */
  padding: 6px 0;
}

.logo-img {
  height: 100px;          
  width: auto;           
  border-radius: 18px;
  object-fit: contain;   
  margin-right: 12px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
}

.brand-sub {
  font-size: 13px;
  color: var(--muted, #ccc);
}

/* Navegación */
nav a {
  color: #fff;
  margin-left: 20px;
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  color: #00aaff;
}

/* Responsivo */
@media (max-width: 880px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  nav {
    margin-top: 10px;
  }
  .logo-img {
    width: 60px;
  }
}
/* --- Contenedor con video de fondo --- */
.hero-video {
    position: relative;
    width: 100%;
    padding: 120px 20px;    /* Ajusta la altura del bloque */
    overflow: hidden;
    border-radius: 12px;
}

/* --- Video de fondo --- */
.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;     /* Para que el video no se deforme */
    z-index: -1;
    filter: brightness(40%); /* Oscurece el fondo para que el texto destaque */
}

/* --- Contenido encima del video --- */
.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: left;
    max-width: 900px;
}

/* Opcional: añade sombra al texto para mayor legibilidad */
.hero-content h1, 
.hero-content p {
    text-shadow: 0px 4px 10px rgba(0,0,0,0.7);
}



/* =====================================================
   MENÚ SUPERIOR FIJO (PC + TABLET + MÓVIL)
   ===================================================== */

/* =====================================================
   MENÚ SUPERIOR FIJO (PC + TABLET + MÓVIL)
   ===================================================== */

.menu-container {
    width: 100%;
    background: #081b2d;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 90000;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Botón hamburguesa */
.menu-btn {
    font-size: 28px;
    cursor: pointer;
    color: white;
    display: none;
}

/* ==============================
   MENÚ PC
   ============================== */

.menu-spacex ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.menu-spacex ul li {
    position: relative;
}

.menu-spacex ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

/* Submenú en PC (hover) */
.submenu ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: #0d2c45;
    padding: 10px 0;
    border-radius: 6px;
    display: none;
    min-width: 220px;
    z-index: 20000;
}

.submenu:hover ul {
    display: block;
}

.submenu ul li {
    padding: 10px 15px;
    white-space: nowrap;
}

.submenu ul li a:hover {
    background: #1f2a4a;
}

/* =====================================================
   MENÚ MÓVIL
   ===================================================== */

@media (max-width: 900px) {

    .menu-btn {
        display: block;
    }

    .menu-spacex ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #081b2d;
        padding: 15px;
        z-index: 99999;
        gap: 12px;
    }

    .menu-spacex ul.show {
        display: flex;
    }

    .submenu ul {
        display: none;
        background: #0d2c45;
        border-radius: 6px;
        margin-top: 8px;
        padding: 10px 0;
        position: relative;
        z-index: 999999;
    }

    .submenu.open ul {
        display: block !important;
    }

    .submenu > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
}

/*  SOLO MÓVIL Y TABLET  */
@media (max-width: 900px) {

    /* menú móvil transparente */
    .menu-spacex {
        position: fixed;
        top: 60px;
        right: 10px;
        width: 85%;
        max-width: 300px;

        background: rgba(0, 0, 0, 0.45);
        backdrop-filter: blur(10px);

        border-radius: 12px;
        padding: 12px;
        z-index: 999999;
        display: none;
    }

    /* menú cuando se despliega */
    .menu-spacex.open {
        display: block;
    }

    /* botón del menú móvil */
    .menu-btn {
        position: fixed;
        top: 10px;
        right: 12px;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(10px);
        padding: 10px 14px;
        font-size: 26px;
        border-radius: 10px;
        color: white;
        z-index: 9999999;
    }
}

/* =====================================================
   video youtbe
   ===================================================== */

.video-gallery {
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    gap: 25px;               /* Separación entre tarjetas */
    padding: 20px;
    flex-wrap: nowrap;       /* NO se bajan a otra línea */
    overflow-x: auto;        /* Si son muchos, aparece scroll horizontal */
}

.video-card {
    background: #ffffff;
    border-radius: 14px;
    width: 330px;            /* Tamaño fijo para alineación horizontal */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
    flex-shrink: 0;          /* Mantiene el tamaño en horizontal */
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}

.video-container {
    position: relative;
    padding-top: 56.25%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-card h3 {
    text-align: center;
    padding: 14px;
    font-size: 18px;
    background: #13243d;
    color: white;
}
/* Centrar el bloque completo */
.video-section {
    width: 100%;
    display: flex;
    justify-content: center;   /* centra horizontal */
    margin-top: 30px;
}

/* Contenedor de videos en horizontal */
.video-gallery {
    display: flex;
    justify-content: center;   /* centra las tarjetas */
    gap: 25px;
    flex-wrap: wrap;           /* permite que bajen si no entra */
    max-width: 1200px;         /* límite centrado elegante */
}
.flag-pe {
  width: 30px;
  height: auto;
  margin-left: 15px;
  animation: flameo 1.5s infinite ease-in-out;
}

@keyframes flameo {
  0% { transform: rotate(0deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-1px); }
  100% { transform: rotate(0deg) translateY(0); }
}

/* ------------------------ */
/* ------------------------*/
/* -------------catalogo-----------*/

/* =========================
   CATÁLOGO (AISLADO)
   ========================= */
/* Contenedor de servicios */
.services {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Animación flotante + desplazamiento */
.service.card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  animation: floatMove 6s ease-in-out infinite;
  border: 1px solid rgba(255,255,255,0.1);
}

/* Animación */
@keyframes floatMove {
  0% {
    transform: translateX(20px);
  }
  50% {
    transform: translateX(-20px);
  }
  100% {
    transform: translateX(20px);
  }
}

/* Variación para que no se muevan igual */
.service.card:nth-child(odd) {
  animation-duration: 7s;
}
.service.card:nth-child(even) {
  animation-duration: 5.5s;
}

/* Contenedor con perspectiva 3D */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  padding: 20px;
  perspective: 1200px;
}

/* Tarjetas estilo 3D */
.project.card {
  height: 190px;
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  position: relative;
  transition: transform 0.45s cubic-bezier(.03,.98,.52,.99),
              box-shadow 0.45s ease;
  transform-style: preserve-3d;
}

/* Movimiento al pasar el mouse */
.project.card:hover {
  transform: rotateY(12deg) rotateX(8deg) scale(1.06);
  box-shadow: 0 25px 45px rgba(0,0,0,0.35);
}

/* Levantar el texto un poco en 3D */
.project.card .meta {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 5px 10px;
  backdrop-filter: blur(4px);
  background: rgba(0,0,0,0.45);
  border-radius: 8px;
  transform: translateZ(40px);
  transition: transform 0.45s ease;
}

/* El texto también se acerca en hover */
.project.card:hover .meta {
  transform: translateZ(60px);
}

/* ------------------------------
   CONTENEDOR GENERAL DEL BANNER
--------------------------------*/
/* Contenedor sin fondo ni bordes */
.banner-navidad {
  text-align: center;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 20px 0;
}

/* Texto con brillo + flameo + pulsos */
.flameo {
  font-size: 45px;
  font-weight: bold;
  color: #ffffff;

  /* Efecto de brillo navideño */
  text-shadow:
    0 0 10px #ffd37b,
    0 0 20px #ff9f4d,
    0 0 35px #ff5500,
    0 0 55px #ff3300;

  /* Animaciones combinadas */
  animation:
    flameText 2.2s infinite alternate ease-in-out,
    pulseText 1.4s infinite ease-in-out,
    glowText 2.5s infinite alternate;
}

/* Flameo suave del texto */
@keyframes flameText {
  0%   { text-shadow: 0 0 12px #ffa94d, 0 0 25px #ff7a29; }
  100% { text-shadow: 0 0 28px #ffe38a, 0 0 55px #ff5500; }
}

/* Pulso del texto */
@keyframes pulseText {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.07); }
  100% { transform: scale(1); }
}

/* Brillo cálido */
@keyframes glowText {
  0%   { opacity: 0.85; }
  100% { opacity: 1; }
}
html, body {
  width: 100%;
  overflow-x: hidden;
}

.service.card {
  will-change: transform;
  transform: translateZ(0);
}

.video-gallery {
  overflow-x: hidden;
}
