/* ==========================================================================
   RESET Y ESTILOS GENERALES
   ========================================================================== */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body { 
    font-family: 'Inter', sans-serif; 
    color: #333333; 
    line-height: 1.6; 
    background-color: #f8f9fa; 
}

/* ==========================================================================
   NAVEGACIÓN / HEADER
   ========================================================================== */
header { 
    background-color: #ffffff; 
    padding: 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); 
    position: sticky; 
    top: 0; 
    z-index: 1000;
    padding: 18px 40px;
    background-color: #f6f6f8;
    color: #ffffff;
    position: sticky;
}

.logo { 
    font-weight: 700; 
    font-size: 3.5rem; 
    color: #0f2043; 
    letter-spacing: 1px; 
}
.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 70px;          /* Ajusta el tamaño del logo */
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25)); /* toque profesional */
}

.logo span { 
    color: #d4af37; 
}

nav a { 
    text-decoration: none; 
    color: #555; 
    margin-left: 20px; 
    font-weight: 600; 
    font-size: 0.9rem; 
    transition: color 0.3s; 
}

nav a:hover { 
    color: #0f2043; 
}

/* ==========================================================================
   SECCIÓN HERO (EFECTO PARALLAX)
   ========================================================================== */
.parallax-hero {
    /* REEMPLAZA ESTA URL POR TU PROPIA IMAGEN SI LO DESEAS*/ 
    background-image: url('images/paralax.png');
    height: 85vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

/* Capa oscura superpuesta para que el texto blanco sea legible */
.parallax-hero::before {
    content: ""; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
  /*  background: rgba(16, 36, 78); */
}

.hero-content { 
    position: relative; 
    color: #ffffff; 
    padding: 20px; 
    max-width: 900px; 
    z-index: 10; 
}

.hero-content h1 { 
    font-size: 2.8rem; 
    font-weight: 700; 
    margin-bottom: 20px; 
    line-height: 1.2; 
}

.hero-content p { 
    font-size: 1.25rem; 
    font-weight: 300; 
    margin-bottom: 35px; 
    color: #e0e6ed; 
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn { 
    display: inline-block; 
    padding: 14px 30px; 
    border-radius: 4px; 
    font-weight: 600; 
    text-decoration: none; 
    transition: all 0.3s ease; 
    border: none; 
    cursor: pointer; 
}

.btn-primary { 
    background-color: #d4af37; 
    color: #0f2043; 
}

.btn-primary:hover { 
    background-color: #ffffff; 
    color: #0f2043; 
    transform: translateY(-2px); 
}

/* ==========================================================================
   ESTRUCTURA DE SECCIONES COMUNES
   ========================================================================== */
.section-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 80px 20px; 
}

.section-title { 
    text-align: center; 
    font-size: 2.2rem; 
    color: #0f2043; 
    margin-bottom: 50px; 
    font-weight: 700; 
}

.section-title::after { 
    content: ''; 
    display: block; 
    width: 60px; 
    height: 3px; 
    background-color: #d4af37; 
    margin: 15px auto 0; 
}


/* ==========================================================================
   GALERÍA DE IMÁGENES
   ========================================================================== */
.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 20px; 
    margin-top: 20px; 
}

.gallery-item { 
    position: relative; 
    overflow: hidden; 
    border-radius: 6px; 
    height: 250px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.08); 
}

.gallery-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.5s; 
}

.gallery-item:hover img { 
    transform: scale(1.05); 
}

/* ==========================================================================
   BLOQUE DE CONFIANZA (FONDO OSCURO)
   ========================================================================== */
.bg-dark { 
    background-color: #0f2043; 
    color: #ffffff; 
}

.bg-dark .section-title { 
    color: #ffffff; 
}

.features-list { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 30px; 
    text-align: center; 
}

.feature-item h4 { 
    font-size: 1.2rem; 
    color: #d4af37; 
    margin-bottom: 10px; 
}

.feature-item p { 
    color: #cbd5e1; 
    font-size: 0.95rem; 
}

/* ==========================================================================
   FORMULARIO DE CONTACTO
   ========================================================================== */
.contact-box { 
    max-width: 600px; 
    margin: 0 auto; 
    background: #ffffff; 
    padding: 40px; 
    border-radius: 8px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.05); 
}

.form-group { 
    margin-bottom: 20px; 
}

.form-group label { 
    display: block; 
    font-size: 0.9rem; 
    font-weight: 600; 
    margin-bottom: 8px; 
    color: #444; 
}

.form-control { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid #cccccc; 
    border-radius: 4px; 
    font-family: inherit; 
    font-size: 1rem; 
}

.form-control:focus { 
    outline: none; 
    border-color: #0f2043; 
}

.btn-submit { 
    width: 100%; 
    background-color: #0f2043; 
    color: white; 
    padding: 14px; 
    font-size: 1rem; 
    font-weight: 600; 
    border-radius: 4px; 
    margin-top: 10px; 
}

.btn-submit:hover { 
    background-color: #1e3a6d; 
}

/* ============================
   PÁGINAS LEGALES
   ============================ */
.legal-container {
    max-width: 900px;
    margin: 60px auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.legal-container h1 {
    font-size: 2.2rem;
    color: #0b1528;
    margin-bottom: 20px;
}

.legal-container h2 {
    margin-top: 30px;
    color: #0b1528;
}

.legal-container p,
.legal-container li {
    font-size: 1rem;
    margin-bottom: 12px;
}

.legal-container .btn {
    margin-top: 25px;
    background-color: #d4af37;
    color: #0b1528;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
}

.legal-container .btn:hover {
    background-color: #e6c45c;
}
.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin-left: 12px;
    letter-spacing: 1px;
}


/* ==========================================================================
   FOOTER (PIE DE PÁGINA)
   ========================================================================== */
footer { 
    background-color: #0b1528; 
    color: #94a3b8; 
    text-align: center; 
    padding: 30px 20px; 
    font-size: 0.85rem; 
    border-top: 1px solid #1e293b; 
}

/* ==========================================================================
   RESPONSIVE DESIGN (ADAPTACIÓN A MÓVILES)
   ========================================================================== */
@media (max-width: 768px) {
    .hero-content h1 { 
        font-size: 2rem; 
    }
    
    .hero-content p { 
        font-size: 1rem; 
    }
    
    /* Desactiva el efecto fijo en móviles para evitar problemas de rendimiento */
    .parallax-hero { 
        background-attachment: scroll; 
    }
    
    header { 
        flex-direction: column; 
        gap: 15px; 
        text-align: center; 
    }
    
    nav a { 
        margin: 0 10px; 
    }
}
/* ============================================
   BLOQUE CINEMATOGRÁFICO CON LUZ AMBIENTAL
   ============================================ */

.cinematic-title {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
   /* background: radial-gradient(circle at center, #f8f8f8 0%, #e5e5e5 100%);
    background-image: radial-gradient(circle, rgb(248, 92, 92) 0%, rgb(52, 24, 24) 0%);
    background-position-x: initial;
    background-position-y: initial;
    background-size: initial;
    background-repeat: initial;
    background-attachment: initial;
    background-origin: initial;
    background-clip: initial;
    background-color: initial;*/
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px;
    filter: brightness(1.05) contrast(2.05);
}

/* Luz ambiental dinámica */
.cinematic-title::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.55), rgba(0, 0, 0, 0.15));
    animation: ambientLight 12s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ambientLight {
    0%   { transform: scale(1) translateY(0); opacity: 0.8; }
    50%  { transform: scale(1.2) translateY(-20px); opacity: 1; }
    100% { transform: scale(1) translateY(0); opacity: 0.8; }
}

/* Palabras flotantes */
.cinematic-title span {
    position: absolute;
    font-size: 2.6rem;
    font-weight: 700;
    color: #0b1528;
    opacity: 0.9;
    text-shadow: 0 4px 12px rgba(0,0,0,0.25);
    animation: floatCinematic 14s ease-in-out infinite;
    transform-style: preserve-3d;
}

/* Movimiento cinematográfico */
@keyframes floatCinematic {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.9;
    }
    25% {
        transform: translate3d(-30px, -40px, 20px) scale(1.15);
        opacity: 0;
    }
    50% {
        transform: translate3d(40px, -10px, -30px) scale(0.95);
        opacity: 0.85;
    }
    75% {
        transform: translate3d(-10px, 30px, 15px) scale(1.1);
        opacity: 0;
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.9;
    }
}

/* Delays para cada palabra */
.cinematic-title span:nth-child(1) { animation-delay: 0s; }
.cinematic-title span:nth-child(2) { animation-delay: 1s; }
.cinematic-title span:nth-child(3) { animation-delay: 2s; }
.cinematic-title span:nth-child(4) { animation-delay: 3s; }
.cinematic-title span:nth-child(5) { animation-delay: 4s; }
.cinematic-title span:nth-child(6) { animation-delay: 5s; }
.cinematic-title span:nth-child(7) { animation-delay: 6s; }

/* Posiciones iniciales para efecto cinematográfico */
.cinematic-title span:nth-child(1) { top: 10%; left: 15%; }
.cinematic-title span:nth-child(2) { top: 25%; left: 70%; }
.cinematic-title span:nth-child(3) { top: 55%; left: 10%; }
.cinematic-title span:nth-child(4) { top: 65%; left: 55%; }
.cinematic-title span:nth-child(5) { top: 35%; left: 30%; }
.cinematic-title span:nth-child(6) { top: 75%; left: 75%; }
.cinematic-title span:nth-child(7) { top: 15%; left: 50%; }

/* ==========================================================================
   BLOQUE SERVICIOS (GRID DE 3 COLUMNAS)
   ========================================================================== */
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}

/*.service-card { 
    background: #ffffff; 
    padding: 40px 30px; 
    border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    border-top: 4px solid #0f2043; 
    transition: transform 0.3s; 
}

.service-card:hover { 
    transform: translateY(-5px); 
    border-top-color: #d4af37; 
}

.service-card h3 { 
    font-size: 1.4rem; 
    color: #0f2043; 
    margin-bottom: 15px; 
}

.service-card p { 
    color: #666666; 
    font-size: 0.95rem;
    text-align: justify;
}
*/
/* ============================================
   IMAGEN DIFUMINADA EN SERVICE-CARD
   ============================================ */

.service-card {
    position: relative;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    transition: 0.3s;
    overflow: hidden; /* importante para que el blur no se salga */
}
.service-card h3 { 
    font-size: 1.4rem; 
    color: #0f2043; 
    margin-bottom: 15px; 
}
/* Imagen difuminada */
.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.40;          /* transparencia suave */
    filter: blur(1px);     /* difuminado cinematográfico */
    transform: scale(1.2);  /* evita bordes duros del blur */
    z-index: 0;
}
.service-card:hover { 
    transform: translateY(-5px); 
    border-top-color: #d4af37; 
}
/* Capa blanca para suavizar aún más */
.service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.55);
    z-index: 1;
}

/* Texto por encima */
.service-card h3,
.service-card p {
    position: relative;
    z-index: 2;
    text-align: justify;
}
/* Imagen para la primera tarjeta */
.service-card:nth-child(1)::before {
    background-image: url('images/network23.jpg');
}

/* Imagen para la segunda tarjeta */
.service-card:nth-child(2)::before {
    background-image: url('images/network25.jpg');
}

/* Imagen para la tercera tarjeta */
.service-card:nth-child(3)::before {
    background-image: url('images/network24.jpg');
}
/*.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 400px;
    max-width: 100%;
    font-size: 1.5rem;
    /*position: relative;
    top: 10px;
}*/
.modals {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.25s ease forwards;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
    max-width: 100%;
    font-size: 1.5rem;
  transform: scale(0.6);
  opacity: 0;
  animation: zoomIn 0.25s ease forwards;
}

/* Animación del fondo */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Animación del contenido */
@keyframes zoomIn {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ============================================================
   RESPONSIVE GLOBAL – MOBILE FIRST
   ============================================================ */

/* Ajustes generales */
html {
    font-size: 16px;
}

@media (max-width: 1200px) {
    .section-container {
        padding: 60px 20px;
    }
}

/* ============================================================
   HEADER
   ============================================================ */
@media (max-width: 900px) {
    header {
        flex-direction: column;
        text-align: center;
        padding: 15px 20px;
    }

    .logo {
        font-size: 2.5rem;
    }

    nav a {
        margin: 8px;
        font-size: 1rem;
    }
}

/* ============================================================
   HERO
   ============================================================ */
@media (max-width: 768px) {
    .parallax-hero {
        height: 65vh;
        background-attachment: scroll;
        padding: 20px;
    }

    .hero-content h1 {
        font-size: clamp(1.8rem, 5vw, 2.4rem);
    }

    .hero-content p {
        font-size: clamp(1rem, 3.5vw, 1.2rem);
    }
    .section-title {
    
    font-size: 1.5rem;
    }
}

/* ============================================================
   GALERÍA
   ============================================================ */
@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 200px;
    }
}

/* ============================================================
   CINEMATIC TITLE
   ============================================================ */
@media (max-width: 768px) {
    .cinematic-title {
        height: 220px;
        padding: 10px;
    }

    .cinematic-title span {
        font-size: 1.6rem;
        text-shadow: 0 2px 6px rgba(0,0,0,0.25);
    }

    /* Reposicionamiento para evitar solapamientos */
    .cinematic-title span:nth-child(1) { top: 10%; left: 10%; }
    .cinematic-title span:nth-child(2) { top: 20%; left: 60%; }
    .cinematic-title span:nth-child(3) { top: 50%; left: 15%; }
    .cinematic-title span:nth-child(4) { top: 60%; left: 50%; }
    .cinematic-title span:nth-child(5) { top: 35%; left: 25%; }
    .cinematic-title span:nth-child(6) { top: 70%; left: 70%; }
    .cinematic-title span:nth-child(7) { top: 15%; left: 45%; }
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 25px;
    }

    .service-card h3 {
        font-size: 1.0rem;
    }

    .service-card p {
        font-size: 0.85rem;
    }
}

/* ============================================================
   FORMULARIO
   ============================================================ */
@media (max-width: 600px) {
    .contact-box {
        padding: 25px;
    }

    .form-control {
        font-size: 0.95rem;
    }
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
@media (max-width: 768px) {
    .legal-container {
        padding: 25px;
        margin: 30px 10px;
    }

    .legal-container h1 {
        font-size: 1.8rem;
    }
}

/* ============================================================
   FOOTER
   ============================================================ */
@media (max-width: 600px) {
    footer {
        padding: 20px;
        font-size: 0.75rem;
    }
}

/* ============================================================
   MODAL RESPONSIVE
   ============================================================ */
/*@media (max-width: 600px) {
    .modal-content {
        width: 90%;
        font-size: 1.2rem;
        padding: 15px;
    }
}*/
/* Evitar que el modal se solape con el header en móviles */
@media (max-width: 600px) {
    .modals {
        align-items: flex-start;   /* en vez de centrar verticalmente */
        padding-top: 275px;         /* espacio suficiente bajo el header */
    }

    .modal-content {
        width: 90%;
        margin: 0 auto;
        font-size: 0.85rem;
    }
}

