/* ============================================================
   PALETA DE COLORES
   Variables CSS para mantener consistencia visual en todo el sitio
   ------------------------------------------------------------
   Parte clave de la identidad visual de SCALES:
   - Azul oscuro y medio → profundidad
   - Azul brillo → acento visual
   - Azul glow → efectos destacados
   - Texto claro → contraste sobre fondo oscuro
=============================================================== */
:root {
    --azul-oscuro: #020b26;
    --azul-medio: #041a3c;
    --azul-brillo: #009dff;
    --azul-glow: #4fb9ff;
    --texto-claro: #e8f3ff;
}

/* ============================================================
   RESET DE ESTILOS
   Quita márgenes y paddings predeterminados del navegador
   Asegura consistencia entre distintos dispositivos y browsers.
=============================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================================
   ESTILOS BASE DEL BODY
   Fondo con gradientes + tipografía Montserrat
   Este gradiente aporta identidad visual moderna a la marca.
=============================================================== */
body {
    font-family: 'Montserrat', sans-serif;
    background: radial-gradient(circle at top right, #0a3d7c55, transparent 40%),
                linear-gradient(135deg, var(--azul-oscuro), var(--azul-medio));
    color: var(--texto-claro);
}

/* ============================================================
   NAVBAR FIJA
   - Siempre visible (position: fixed)
   - Contiene:
         · Logotipo (clase .logo)
         · Menú desktop (.nav-links)
         · Menú móvil (.menu-btn)
   - Uso de glassmorphism: blur + fondo semitransparente
=============================================================== */
header {
    position: fixed;
    width: 100%;
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.45);
    border-bottom: 1px solid #009dff33;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    padding: 8px 35px;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--azul-glow);
    text-shadow: 0 0 10px #009dff77;
}

.logo img {
    height: 60px;
    filter: drop-shadow(0 0 6px #009dff88);
    transition: 0.3s;
}

.logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px #4fb9ffcc);
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--texto-claro);
    text-decoration: none;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--azul-brillo);
}

/* ============================================================
   BOTÓN MENU MÓVIL
   Visible solo en pantallas pequeñas
=============================================================== */
.menu-btn {
    display: none;
    font-size: 32px;
    cursor: pointer;
    color: white;
}

/* ============================================================
   HERO (PRIMERA DEFINICIÓN)
   Esta versión fue la inicial, antes de añadir la imagen de fondo.
   La versión final aparece más abajo y sobrescribe esta.
=============================================================== */
.hero {
    text-align: center;
    padding: 180px 40px 120px;
}

.hero h1 {
    font-size: 3rem;
    color: var(--azul-glow);
    text-shadow: 0 0 12px #009dff66;
}

.hero p {
    margin-top: 12px;
    font-size: 1.2rem;
}

.btn {
    margin-top: 22px;
    display: inline-block;
    background: var(--azul-brillo);
    padding: 12px 25px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 0 12px #009dff88;
}

.btn:hover {
    box-shadow: 0 0 20px #4fb9ffcc;
}

/* ============================================================
   TITULOS GENERALES (Reutilizados en secciones)
=============================================================== */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--azul-glow);
    text-shadow: 0 0 10px #009dff55;
}

.section-subtitle {
    text-align: center;
    color: #cfe6ff;
    margin-bottom: 40px;
}

/* ============================================================
   SECCIÓN SOLUCIONES
   Tarjetas con hover + sombras para feedback visual.
=============================================================== */
.soluciones {
    padding: 60px 40px;
}

.soluciones-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.sol-card {
    width: 300px;
    background: linear-gradient(145deg, #041b3e80, #03143280);
    border: 1px solid #009dff33;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 0 16px #009dff22;
}

.sol-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 35px #009dff66;
}

.sol-card img {
    width: 90%;
    filter: drop-shadow(0 0 8px #009dff77);
}

/* ============================================================
   SECCIÓN PROYECTOS (TRABAJOS)
=============================================================== */
.trabajos {
    padding: 60px 40px;
}

.trabajos-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trabajo-card {
    width: 330px;
    background: rgba(4, 26, 60, 0.75);
    border: 1px solid #009dff33;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px #009dff22;
    transition: 0.3s ease;
}

.trabajo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 35px #009dff66;
}

.trabajo-card .thumb {
    width: 100%;
    height: 290px;
    object-fit: cover;
}

.trabajo-info {
    padding: 20px;
}

.trabajo-info h3 {
    color: var(--azul-glow);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.trabajo-info p {
    color: #cfe6ff;
    font-size: 0.95rem;
    margin-bottom: 18px;
    text-align: justify;
}

.btn-card {
    display: block;
    margin: 12px auto 0;
    background: #009dff;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
    box-shadow: 0 0 10px #009dff88;
}

.btn-card:hover {
    background: #00b7ff;
    box-shadow: 0 0 20px #00b7ffcc;
}

/* ============================================================
   SECCIÓN NOSOTRAS
=============================================================== */
.nosotras {
    padding: 80px 20px;
    text-align: center;
}

.nosotras-cards {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.card {
    background: #0c1f3c;
    border: 1px solid #1c3b6b;
    box-shadow: 0 0 12px #008cff44;
    border-radius: 14px;
    padding: 25px;
    width: 380px;
    color: #fff;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px #009dffaa;
}

.card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.card h3 {
    margin-bottom: 10px;
    color: #4fc9ff;
}

/* ============================================================
   SECCIÓN IDENTIDAD (MISIÓN, VISIÓN, VALORES)
=============================================================== */
.identidad {
    padding: 60px 40px;
}

.identidad-grid {
    display: flex;
    gap: 60px;
    justify-content: center;
    flex-wrap: wrap;
}

.identidad-grid div {
    width: 280px;
    text-align: center;
}

.identidad-grid h3 {
    color: var(--azul-glow);
    margin-bottom: 10px;
}

/* ============================================================
   SECCIÓN CONTACTO + FORMULARIO
=============================================================== */
.contacto {
    padding: 60px 40px;
}

.contacto-form {
    width: 320px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, textarea {
    padding: 12px;
    background: #041a3ca0;
    border: 1px solid #009dff44;
    color: var(--texto-claro);
    border-radius: 8px;
}

button {
    background: var(--azul-brillo);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
}

.mensaje-exito {
    margin-top: 20px;
    background: #0a8cff;
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 0 10px #0a8cff77;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SECCIÓN REDES SOCIALES
=============================================================== */
.redes {
    margin-top: 35px;
    text-align: center;
}

.redes-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 10px;
}

.redes-icons img {
    width: 40px;
    filter: drop-shadow(0 0 6px #009dff88);
    transition: 0.3s;
}

.redes-icons img:hover {
    transform: scale(1.15);
}

/* ============================================================
   FOOTER
=============================================================== */
footer {
    padding: 20px;
    text-align: center;
    background: #031433;
    border-top: 1px solid #009dff33;
}

.footer-logo {
    width: 80px;
    margin-bottom: 10px;
    opacity: 0.85;
}

/* ============================================================
   HERO VERSIÓN FINAL (SOBREESCRIBE LA ANTERIOR)
   - Imagen de fondo
   - Overlay oscuro para contraste
   - Layout con flexbox centrado
   - Reemplaza padding por height:100vh
=============================================================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    padding: 0 20px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    background-image: url("img/hero-bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: white;
    overflow: hidden;
}

/* Overlay oscuro */
.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;

    background: linear-gradient(
        rgba(0, 0, 40, 0.55),
        rgba(0, 0, 70, 0.65)
    );

    z-index: 0;
}

/* Contenido por encima del overlay */
.hero * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 0 0 12px #009dff66;
}

.hero p {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 25px;
}

.hero .btn {
    background: #009dff;
    padding: 14px 28px;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: 0.3s ease;
    box-shadow: 0 0 15px #009dffaa;
}

.hero .btn:hover {
    background: #00b7ff;
    box-shadow: 0 0 35px #00b7ffcc;
    transform: translateY(-2px);
}

/* ============================================================
   RESPONSIVE DESIGN
   - <900px → Navbar móvil
   - <768px → textos del hero se reducen
=============================================================== */
@media (max-width: 900px) {

    /* Menú móvil */
    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        background: #041a3c;
        width: 200px;
        flex-direction: column;
        display: none;
        padding: 20px;
        border-left: 1px solid #009dff55;
        box-shadow: -4px 0 12px #00000055;
        
    }

    .nav-links.open {
        display: flex;
    }

    .menu-btn {
        display: block;
    }

    .nav-links li {
        margin: 5px 0; /* Reducimos de 15px a 5px para que estén más juntos */
        padding: 5px 0; /* Opcional: un pequeño padding para el área de toque */
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.3rem;
    }
    .hero p {
        font-size: 1rem;
    }
}

/* ============================================================
   UTILIDADES
=============================================================== */
.justificar {
    text-align: justify;
    line-height: 1.6;
}

/* ============================================================
   BOTÓN WHATSAPP FLOTANTE
   - Siempre visible en la esquina inferior derecha
   - Acceso rápido a contacto vía WhatsApp

   /* Estilo para el botón flotante de WhatsApp */
/* Estilo para el botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366; /* Verde oficial de WhatsApp */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    z-index: 1000;
    transition: 0.3s ease;
    text-decoration: none;
}

/* Asegura que la imagen sea blanca y siempre visible */
.whatsapp-float img {
    width: 35px;
    height: 35px;
    display: block !important;
    opacity: 1 !important; /* Fuerza la visibilidad */
    /* Este filtro convierte cualquier color de icono en blanco */
    filter: brightness(0) invert(1); 
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
}