/* --- MODALES DE SERVICIOS ESPECIALIZADOS --- */
.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  max-width: 600px;
  margin: auto;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  text-align: left;
}

.modal-content h3 {
  color: var(--accent);
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.modal-content p {
  color: #0a2342;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.lineal-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  flex-wrap: nowrap;
}

.lineal-item {
  flex: 1;
  min-width: 250px;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: left;
}

.lineal-item h3 {
  text-align: center;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}

.lineal-item p {
  color: black;
  font-size: 1rem;
  line-height: 1.6;
}

/* --- NAVBAR --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--primary);
  padding: 15px 20px;
  min-height: 110px;
  color: white;
  position: relative;
  z-index: 1000;
}

.navbar .logo {
  display: inline-flex;
  align-items: center;
}

.navbar .logo img {
  height: 95px;
  width: auto;
  display: block;
}

.hamburger {
  font-size: 1.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  display: none; /* oculto en escritorio */
  z-index: 1100;
  touch-action: manipulation;
}

.nav-links {
  list-style: none;
  display: flex; /* SIEMPRE visible en escritorio */
  gap: 20px;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 10px 0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hamburger {
    display: block; /* visible en móvil */
  }

  .nav-links {
    display: none; /* oculto en móvil */
    flex-direction: column;
    background: var(--primary);
    position: absolute;
    top: 100%;
    right: 20px;
    padding: 15px;
    border-radius: 8px;
    z-index: 1000;
  }

  .nav-links.show {
    display: flex; /* mostrar cuando se activa */
    z-index: 1000;
  }
}

form {
  display: flex;
  flex-direction: row;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

form input,
form textarea {
  flex: 1;
  min-width: 200px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

form button {
  background: var(--accent);
  color: #000;
  font-weight: bold;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

form button:hover {
  background: #e6b800;
}

.lineal-item i {
  width: 60px;
  height: 60px;
  font-size: 2.5rem;
  color: var(--accent);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 15px;
  background: var(--primary);
  border-radius: 50%;
}

/* --- CONTACTANOS --- */
#Contactanos h2 {
  text-align: center;
}

#Contactanos > p {
  text-align: center;
  margin: 0 auto;
  max-width: 800px;
}

#formMessage {
  text-align: center;
  display: none;
  color: yellow;
  font-weight: bold;
  margin-top: 15px;
}



        :root {
            --primary: #0a2342;
            --secondary: #1d3e6e;
            --accent: #f0c419;
            --bg: #f5f7fa;
            --text-light: #ffffff;
            --text-dark: #2c3e50;
        }

        body {
            margin: 0;
            font-family: 'Open Sans', sans-serif;
            background: var(--bg);
            color: var(--text-dark);
            line-height: 1.6;
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
        }

        h1, h2, h3 { font-family: 'Montserrat', sans-serif; text-transform: uppercase; }

        /* --- HERO SECTION --- */
        .hero-slider {
            position: relative;
            width: 100%;
            min-height: 100vh;
            height: auto;
            overflow: hidden;
            background-color: var(--primary);
        }

        .slide {
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background-size: cover;
            background-position: center;
            opacity: 0;
            transition: opacity 1s ease-in-out;
            z-index: 1;
        }

        .slide.active { opacity: 1; z-index: 2; }

        .hero-slider::after {
            content: "";
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(10, 35, 66, 0.7);
            z-index: 3;
        }

        .hero-content {
            position: absolute;
            top: 50%; left: 50%;
            transform: translate(-50%, -50%);
            z-index: 10;
            text-align: center;
            color:var(--accent);
            max-width: 850px;
            padding: 0 20px;
            width: 100%;
            animation: fadeInSlide 1.2s ease-out;
        }

        .hero-content h1 {
            font-size: clamp(3.5rem, 10vw, 5.5rem);
            font-weight: 900;
            letter-spacing: -2px;
            line-height: 0.9;
            margin-bottom: 15px;
            background: linear-gradient(135deg, #f0c419 40%, var(--accent) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            display: inline-block;
        }

        .hero-logo {
            max-width: 600px;
            width: 100%;
            height: auto;
            margin-bottom: 15px;
            display: inline-block;
        }

        @media (max-width: 768px) {
            .hero-logo {
                max-width: 360px;
            }
        }

        .company-tagline {
            font-family: 'Montserrat', sans-serif;
            font-size: 1.1rem;
            font-weight: 600;
            letter-spacing: 5px;
            color: var(--accent);
            text-transform: uppercase;
            margin-top: -5px;
            margin-bottom: 20px;
            display: block;
        }

        .hero-stats {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 25px;
            margin-bottom: 5px;
        }

        .stat-item {
            font-family: 'Montserrat', sans-serif;
            font-size: 0.8rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 8px;
            color: white;
        }
        

        .stat-item i { color: var(--accent); font-size: 1.1rem; }

        /* --- BOTONES --- */
        .btn { 
            font-family: 'Montserrat', sans-serif;
            padding: 14px 28px; 
            border-radius: 4px; 
            text-decoration: none; 
            font-weight: 700; 
            transition: all 0.3s ease; 
            display: inline-flex; 
            justify-content: center;
            align-items: center;
            min-width: 160px;
            max-width: 240px;
            width: auto;
            border: none; 
            cursor: pointer; 
        }
        
        .btn-primary { background: var(--accent); color: #1a1a1a; }
        .btn-secondary { border: 2px solid white; color: white; background: rgba(255,255,255,0.1); backdrop-filter: blur(5px); margin-left: 10px; }
        .btn-group {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 20px;
        }

        /* --- SECCIONES GENERALES --- */
      section { padding: 100px 20px; max-width: 1200px; margin: auto; }
        h2 { 
            text-align: center; 
            font-size: 2.5rem; 
            margin-bottom: 50px; 
            }

/* Regla específica para Quiénes Somos */
        #descripcion-empresa h2 {
        color: var(--text-muted);
            }


        /* --- SERVICIOS GRID --- */
        .grid { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 30px; }
        .card {
            background: white;
            padding: 40px;
            border-radius: 12px;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            transition: 0.3s;
        }
        .card:hover { transform: translateY(-10px); }
        .card i { font-size: 3rem; color: var(--secondary); margin-bottom: 20px; }

        .btn-more {
            background: none; border: 2px solid var(--secondary); color: var(--secondary);
            padding: 10px 20px; border-radius: 5px; cursor: pointer; font-weight: bold; margin-top: 20px;
        }

        /* --- SECCIÓN POR QUÉ ELEGIRNOS --- */
        .why-us { background-color: var(--primary); color: white; max-width: 100%; border-radius: 0; }
        .why-us h2 { color: var(--accent); }
        .why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-top: 40px; }
        .why-item { text-align: center; padding: 20px; }
        .why-item i { font-size: 2.8rem; color: var(--accent); margin-bottom: 20px; }

        @media (max-width: 1200px) {
            .grid { grid-template-columns: repeat(2, minmax(250px, 1fr)); }
        }

        @media (max-width: 768px) {
            .grid { grid-template-columns: 1fr; }
            .btn { padding: 12px 24px; max-width: 220px; }
        }
        .why-item h3 { font-size: 1.2rem; margin-bottom: 15px; color: white; }
        .why-item p { font-size: 0.95rem; color: rgba(255,255,255,0.8); }

        /* --- MODALES --- */
        .modal {
            display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%;
            background-color: rgba(10, 35, 66, 0.5); backdrop-filter: blur(8px);
        }
        .modal-content {
            background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
            margin: 5% auto; padding: 40px; border-radius: 12px;
            max-width: 550px; width: 90%; position: relative;
            box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.8);
        }
        .modal-content h3 {
            color: #0a2342;
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 30px;
            text-align: center;
            letter-spacing: 0.5px;
        }
        .modal-content form {
            display: flex;
            flex-direction: column;
            gap: 0;
        }
        .modal-content label {
            display: block;
            color: #0a2342;
            font-weight: 600;
            font-size: 0.95rem;
            margin-top: 18px;
            margin-bottom: 8px;
            letter-spacing: 0.3px;
        }
        .modal-content label:first-of-type {
            margin-top: 0;
        }
        .modal-content input,
        .modal-content select,
        .modal-content textarea {
            width: 100%;
            padding: 12px 15px;
            border: 1.5px solid #ddd;
            border-radius: 8px;
            font-family: 'Open Sans', sans-serif;
            font-size: 0.95rem;
            color: #0a2342;
            background: #fff;
            transition: all 0.3s ease;
            box-sizing: border-box;
        }
        .modal-content input:focus,
        .modal-content select:focus,
        .modal-content textarea:focus {
            outline: none;
            border-color: #25D366;
            box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
            background: #fafbfc;
        }
        .modal-content input::placeholder,
        .modal-content textarea::placeholder {
            color: #999;
        }
        .modal-content textarea {
            resize: vertical;
            min-height: 100px;
        }
        .modal-content button {
            width: 100%;
            padding: 14px 24px;
            margin-top: 20px;
            background: linear-gradient(135deg, #25D366 0%, #1fb851 100%);
            color: white;
            font-weight: 700;
            font-size: 1rem;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            letter-spacing: 0.5px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
        }
        .modal-content button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
            background: linear-gradient(135deg, #1fb851 0%, #18a347 100%);
        }
        .modal-content button:active {
            transform: translateY(0);
        }
        .close {
            position: absolute; top: 20px; right: 20px; font-size: 28px; cursor: pointer;
            color: #0a2342;
            width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
            transition: all 0.2s ease;
        }
        .close:hover {
            background: rgba(255, 0, 0, 0.1);
            border-radius: 50%;
            color: #ff4444;
        }

        footer { background: var(--primary); color: white; text-align: center; padding: 40px; border-top: 1px solid rgba(255,255,255,0.1); }

        /* --- MEDIA QUERIES PARA RESPONSIVIDAD --- */

        @media (max-width: 1024px) {
            /* Tablets */
            section { padding: 80px 20px; }
            h2 { font-size: 2.2rem; margin-bottom: 40px; }
            .btn { padding: 16px 32px; }
        }

        @media (max-width: 768px) {
            /* Móviles */
            section { padding: 50px 15px; }
            h2 { font-size: 1.8rem; margin-bottom: 30px; }
            .btn { padding: 12px 20px; font-size: 0.9rem; }
            .btn-secondary { margin-left: 0; margin-top: 10px; }
            form { flex-direction: column; }
            form input, form textarea { min-width: auto; }
            footer { padding: 20px 15px; }
            .hero-content { padding: 0 15px; }
            .hero-stats { gap: 15px; }
            .stat-item { font-size: 0.7rem; }
            .modal-content { padding: 20px; }
            .lineal-container { flex-direction: column; gap: 20px; }
            .lineal-item { min-width: auto; }
        }

        @media (max-width: 480px) {
            /* Móviles pequeños */
            .hero-slider { height: 90vh; }
            .btn-group { flex-direction: column; gap: 10px; }
            .btn { width: auto; max-width: 250px; }
            .btn-secondary { margin-left: 0; }
            /* Ajustar botones flotantes para no superponerse */
            a[href*="wa.me"] { bottom: 80px; right: 15px; padding: 10px; }
            a[href*="tel:"] { bottom: 20px; right: 15px; padding: 8px 15px; font-size: 14px; }
        }

        @keyframes fadeInSlide { from { opacity: 0; transform: translate(-50%, -45%); } to { opacity: 1; transform: translate(-50%, -50%); } }
