/* style.css */

:root {
    --netsys-primary: #005A9C;
    --netsys-secondary: #003F6E;
    --netsys-accent: #00BFFF;
    --netsys-light: #F8F9FA;
    --netsys-dark: #212529;
    --netsys-muted: #6c757d;
    --netsys-white: #ffffff;
    --netsys-success: #198754;
    --netsys-danger: #dc3545;

    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Lato', sans-serif;

    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;
    --shadow-sm: 0 .125rem .25rem rgba(0,0,0,.075);
    --shadow-md: 0 .5rem 1rem rgba(0,0,0,.15);
    --shadow-lg: 0 1rem 3rem rgba(0,0,0,.175);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--netsys-dark);
    line-height: 1.7;
    background-color: var(--netsys-white);
    padding-top: 85px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--netsys-secondary);
    line-height: 1.3;
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 800;
    color: var(--netsys-primary);
    margin-bottom: 1rem;
}
.section-title.text-center::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--netsys-accent);
    margin: 1rem auto 0;
    border-radius: var(--border-radius-sm);
}

.highlight {
    color: var(--netsys-accent);
    font-weight: 700;
}
.highlight-secondary {
    color: var(--netsys-primary);
    font-weight: 700;
}

/* Navbar */
#mainNav {
    background-color: rgba(0, 63, 110, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background-color 0.3s ease-in-out, padding 0.3s ease;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.logo-img {
    height: 55px;
    transition: transform 0.3s ease;
}
.logo-img:hover {
    transform: scale(1.05);
}

#mainNav .nav-link {
    color: rgba(255,255,255,0.85);
    font-family: var(--font-primary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.2s ease, background-color 0.2s ease;
    border-radius: var(--border-radius-sm);
    margin: 0 0.25rem;
}
#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: var(--netsys-white);
    background-color: rgba(0, 191, 255, 0.2);
}
#mainNav.navbar-scrolled {
    background-color: var(--netsys-secondary);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-shadow: var(--shadow-md);
}
#mainNav .nav-item.dropdown .dropdown-menu {
    background-color: var(--netsys-secondary);
    border: 1px solid rgba(255,255,255,0.15);
}
#mainNav .nav-item.dropdown .dropdown-item {
    color: rgba(255,255,255,0.8);
    font-family: var(--font-secondary);
    transition: background-color 0.2s ease, color 0.2s ease;
}
#mainNav .nav-item.dropdown .dropdown-item:hover,
#mainNav .nav-item.dropdown .dropdown-item:focus,
#mainNav .nav-item.dropdown .dropdown-item.active {
    background-color: var(--netsys-accent);
    color: var(--netsys-white);
}
#mainNav #currentLangDisplay {
    font-size: 0.9em;
}

/* Hero Section */
.hero-section {
    min-height: calc(100vh - 85px);
    background: url('https://via.placeholder.com/1920x1080/1a2332/00BFFF?text=Modern+Tech+Background') no-repeat center center;
    background-size: cover;
    position: relative;
    color: var(--netsys-white);
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 63, 110, 0.85), rgba(0, 90, 156, 0.7));
}
.hero-section h1 {
    color: var(--netsys-white);
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero-section .lead {
    color: rgba(255,255,255,0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.hero-btn {
    background: linear-gradient(45deg, var(--netsys-accent), #009acd);
    border: none;
    padding: 0.9rem 2.2rem;
    font-weight: 600;
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.4);
    transition: all 0.3s ease;
}
.hero-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 191, 255, 0.6);
}
.pulsate-btn {
  animation: pulsate 2s infinite;
}
@keyframes pulsate {
  0% { box-shadow: 0 0 0 0 rgba(0, 191, 255, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(0, 191, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 191, 255, 0); }
}
.animated-headline .highlight {
  display: inline-block;
}

/* Sección "Sobre Nosotros" */
#nosotros img {
    border: none;
    box-shadow: var(--shadow-lg);
}
.btn-outline-secondary {
    color: var(--netsys-secondary);
    border-color: var(--netsys-secondary);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
}
.btn-outline-secondary:hover {
    background-color: var(--netsys-secondary);
    color: var(--netsys-white);
    transform: translateY(-2px);
}

/* Sección de Servicios */
#servicios {
    background-color: var(--netsys-light);
}
.service-card {
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-color: var(--netsys-white);
    overflow: hidden;
}
.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}
.icon-circle-modern {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--netsys-primary), var(--netsys-accent));
    color: var(--netsys-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,90,156,0.3);
}
.service-card:hover .icon-circle-modern {
    transform: scale(1.1) rotate(10deg);
    background: linear-gradient(135deg, var(--netsys-accent), var(--netsys-primary));
}
.service-card .card-title {
    color: var(--netsys-primary);
    margin-top: 0.5rem;
    font-weight: 600;
    font-size: 1.15rem;
}

/* Sección de Contacto */
.contact-form-wrapper {
    background-color: var(--netsys-white);
    border: 1px solid #e9ecef;
}
#contacto .form-control, #contacto .form-select {
    border-radius: var(--border-radius-sm);
    border: 1px solid #ced4da;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-label-modern {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    color: var(--netsys-muted);
}
#contacto .form-control:focus, #contacto .form-select:focus {
    border-color: var(--netsys-primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 90, 156, 0.2);
}
.submit-btn {
    background: linear-gradient(45deg, var(--netsys-primary), var(--netsys-secondary));
    border: none;
    padding: 0.8rem 2rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 63, 110, 0.3);
}
.submit-btn:hover {
    background: linear-gradient(45deg, var(--netsys-secondary), var(--netsys-primary));
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px rgba(0, 63, 110, 0.4);
}
.contact-info a:hover {
    color: var(--netsys-accent) !important;
}
.social-icons-footer .social-icon {
    font-size: 1.6rem;
    color: var(--netsys-primary);
    transition: color 0.3s ease, transform 0.3s ease;
}
.social-icons-footer .social-icon:hover {
    color: var(--netsys-accent);
    transform: scale(1.2);
}

/* Pie de Página */
.footer-modern {
    background-color: var(--netsys-dark);
    color: var(--netsys-white);
}
.footer-logo {
    height: 50px;
    opacity: 0.8;
    margin-bottom: 1rem;
}
.footer-modern p {
    color: rgba(255,255,255,0.7);
}
.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: var(--netsys-accent);
}

/* Botón Flotante WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    left: 25px;
    background-color: #25D366;
    color: var(--netsys-white);
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #1DAE54;
    color: var(--netsys-white);
}
.whatsapp-float i {
    position: relative;
    top: 1px;
}

/* Botón Volver Arriba */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--netsys-accent);
    color: var(--netsys-white);
    border: none;
    font-size: 1.5rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease, visibility 0.3s ease;
}
.back-to-top.show {
    opacity: 0.8;
    transform: translateY(0);
    visibility: visible;
}
.back-to-top:hover {
    opacity: 1;
    background-color: var(--netsys-primary);
    transform: scale(1.1) translateY(0);
}
.back-to-top i {
    position: relative;
    top: -1px;
}

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(33, 37, 41, 0.97); /* var(--netsys-dark) con opacidad */
    color: var(--netsys-light);
    padding: 1rem;
    z-index: 1050; /* Encima de otros elementos fijos */
    display: none; /* Se muestra con JS */
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    flex-wrap: nowrap; /* Evitar que se rompa en dos líneas si hay espacio */
}
.cookie-consent-banner p {
    margin: 0;
    margin-right: 1rem; /* Espacio entre texto y botones */
    flex-grow: 1;
}
.cookie-consent-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Evitar que los botones se encojan */
}
.cookie-consent-banner .cookie-privacy-link {
    color: var(--netsys-accent);
    text-decoration: underline;
    margin-right: 1rem;
    font-size: 0.85rem;
}
.cookie-consent-banner .cookie-privacy-link:hover {
    color: var(--netsys-light);
}
.cookie-consent-banner .btn-light {
    background-color: var(--netsys-light);
    color: var(--netsys-dark);
    border: none;
    padding: 0.375rem 0.75rem;
}
.cookie-consent-banner .btn-light:hover {
    background-color: var(--netsys-white);
}

/* Media Queries */
@media (max-width: 991.98px) {
    body {
        padding-top: 80px;
    }
    .hero-section {
        min-height: calc(100vh - 80px);
    }
    .hero-section h1 {
        font-size: calc(1.8rem + 2vw);
    }
    #mainNav {
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
    }
    .logo-img {
        height: 50px;
    }
    .cookie-consent-banner {
        flex-wrap: wrap; /* Permitir que el texto y botones se apilen */
        justify-content: center;
        text-align: center;
    }
    .cookie-consent-banner p {
        margin-right: 0;
        margin-bottom: 0.75rem; /* Espacio cuando se apilan */
        width: 100%; /* Que el texto ocupe todo el ancho */
    }
}
@media (max-width: 767.98px) {
    body {
        padding-top: 75px;
    }
    .hero-section {
         min-height: calc(100vh - 75px);
    }
    .hero-section .lead {
        font-size: 1.1rem;
    }
     .hero-btn, .submit-btn {
        padding: 0.7rem 1.8rem;
        font-size: 0.9rem;
    }
    .section-title {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
    }
    .logo-img {
        height: 45px;
    }
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        left: 20px;
    }
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        bottom: 20px;
        right: 20px;
    }
}