/* ====== ESTILOS GENERALES Y BASE ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Poppins', 'Open Sans', 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    text-align: justify; /* Justificar texto globalmente */
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}
[class*="col-"] {
    padding: 0 15px;
}
section {
    padding: 60px 0;
}
.btn-contratar, .cta-button, .promo-button {
    display: inline-block;
    background-color: #981018;
    color: #fff;
    font-weight: 600;
    padding: 12px 35px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
.btn-contratar:hover, .cta-button:hover, .promo-button:hover {
    background-color: #7e1002;
}

/* ====== HEADER Y NAVEGACIÓN (UNIFICADO) ====== */
header, .header-area {
    background-color: #a8141a;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
header .container, .main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.segundo-menu-nav, .main-nav .nav {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.segundo-menu-nav li a, .main-nav .nav li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}
.segundo-menu-nav li a:hover, .main-nav .nav li a:hover {
    color: #7e1002;
}
.mobile-menu-toggle, .menu-trigger {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* ====== SECCION HERO (INICIO) UNIFICADO ====== */
#inicio, .hero, .heros {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-image: url('assets/images/banner.jpg'); /* verifica ruta */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative; /* Unificado con .heros */
}
.hero {
    background-color: red; /* prueba si la sección se aplica */
}
.heros::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Overlay unificado */
    z-index: 1;
}
#inicio .container div, .hero .container div, .containers div {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1rem 2rem;
    border-radius: 8px;
    display: inline-block;
    position: relative;
    z-index: 2; /* Sobre el overlay */
}
#inicio h1, .hero h1, .heros h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}
#inicio p, .hero p, .heros p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
}
.containers {
    position: relative;
    z-index: 2;
}

/* ====== SECCION VENDER RECARGAS (nueva-seccion) ====== */
.nueva-seccion {
    background: #1c1b1b;
    padding: 60px 20px;
    color: #fff;
    font-family: Arial, sans-serif;
}
.nueva-fila-superior {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}
.nueva-columna.izquierda {
    flex: 1 1 500px;
}
.nueva-columna.derecha {
    flex: 1 1 300px;
    display: flex;
    justify-content: center;
}
.nueva-texto p {
    font-size: 1rem;
    color: #ffffff;
    line-height: 1.6;
}
.nueva-logo-container img {
    max-width: 100%;
    height: auto;
}
.nueva-fila-inferior h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #ffffff;
}
.nueva-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.nueva-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}
.nueva-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.nueva-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: #111;
}
.nueva-card p {
    font-size: 1rem;
    color: #000000;
    line-height: 1.5;
}

/* ====== SECCION SERVICES (servicios-seccion) ====== */
.servicios-seccion {
    background: #1a1a1a;
    color: #fff;
    padding: 60px 20px;
    font-family: Arial, sans-serif;
}
.servicios-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.servicios-columna {
    width: 48%;
}
.servicios-columna.izquierda {
    position: relative;
}
.servicios-texto h2 {
    color: #981018;
    font-size: 24px;
    margin-bottom: 10px;
}
.servicios-texto p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 15px;
}
.servicios-pasos {
    list-style: none;
    padding-left: 0;
}
.servicios-pasos li {
    font-size: 16px;
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
}
.servicios-pasos li:before {
    content: "•";
    color: #981018;
    font-size: 20px;
    position: absolute;
    left: 0;
    top: 0;
}
.promo-logo {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
.boton-centrado {
    text-align: center;
    margin-top: 30px;
}

/* ====== SECCION HERRAMIENTAS (herramientas-seccion) ====== */
.herramientas-seccion {
    background: #f5f5f5;
    padding: 40px 20px;
    font-family: Arial, sans-serif;
}
.herramientas-texto h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 20px;
}
.herramientas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.herramienta-item {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.herramienta-item .icon {
    font-size: 40px;
    color: #a8141a;
    margin-bottom: 10px;
}
.herramienta-item h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}
.herramienta-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* ====== SECCION TELEMETRIA (telemetria-seccion) ====== */
.telemetria-seccion {
    background: #fff;
    padding: 40px 20px;
    font-family: Arial, sans-serif;
    text-align: center;
}
.telemetria-seccion h1 {
    color: #333;
    font-size: 32px;
    margin-bottom: 20px;
}
.objetivo-texto {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.opciones-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Añadido para mejor stacking */
}
.opcion-item {
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    width: 300px;
}
.opcion-item img {
    max-width: 100px;
    margin-bottom: 10px;
}
.opcion-item h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}
.opcion-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* ====== SECCION CLIENTES (clientes-seccion) ====== */
.clientes-seccion {
    background: #f5f5f5;
    padding: 40px 20px;
    font-family: Arial, sans-serif;
}
.clientes-texto p {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
}
.clientes-texto h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 20px;
}
.mySwiper {
    width: 100%;
    padding: 20px 0;
}
.cliente-item {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.cliente-img {
    max-width: 80px;
    margin-bottom: 10px;
}
.cliente-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}
.cliente-item span {
    font-size: 16px;
    color: #333;
    font-weight: bold;
}
.swiper-pagination {
    bottom: -10px;
}
.swiper-button-next, .swiper-button-prev {
    color: #a8141a;
}

/* ====== SECCION FEATURES (Sobre Nosotros) ====== */
#features .features-item {
    text-align: center;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 10px;
    background: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}
#features .features-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}
#features h4 {
    margin-top: 15px;
    font-size: 1.2rem;
    color: #333;
}
#features p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #666;
}

/* ====== SECCION ABOUT (Ventajas) ====== */
#about {
    padding: 60px 20px;
}
#about .section-heading h6 {
    font-size: 1.1rem;
    font-weight: bold;
    color: #981018;
    margin-bottom: 20px;
}
#about .check-list {
    list-style: none;
    padding: 0;
}
#about .check-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    font-size: 1rem;
    line-height: 1.6;
}
#about .check-list li::before {
    content: "✔";
    color: #981018;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* ====== SECCION SERVICES (service-item) ====== */
#services {
    padding: 60px 20px;
    background: #f9f9f9;
}
#services .service-item {
    background: #ffffff;
    border-radius: 10px;
    padding: 25px 20px;
    margin-bottom: 30px;
    transition: all 0.3s ease-in-out;
    height: 100%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
#services .service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
#services .service-item .icon {
    color: #981018;
    font-size: 2.2rem;
    margin-bottom: 15px;
}
#services .service-item p strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #4c505d;
}
#services .service-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
}

/* ====== SECCION REFERENCIAS (CARRUSEL) ====== */
.referencias-seccion {
    background-color: #1c1b1b;
    padding: 80px 20px;
    text-align: center;
    color: #fff;
}
.referencias-titulo {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 50px;
}
.referencias-carrusel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}
.referencias-carrusel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    flex-wrap: nowrap;
    gap: 10px; /* Añadido para espaciado entre cards */
}.referencia-item {
    flex: 0 0 300px;
    margin: 0 15px;
    background-color: #fffdfd;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    color: #000;
    min-width: 0; /* Evitar desbordes */
}
.referencia-imagen img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}
.referencia-nombre {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #b30606;
}
.referencia-especialidad {
    font-size: 0.9rem;
    margin-bottom: 10px;



}.referencia-comentario {
    font-size: 0.95rem;
    line-height: 1.4;
    word-break: break-word; /* Romper palabras largas */
    white-space: normal; /* Permitir wrap del texto */
}



.referencias-prev, .referencias-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    color: #000;
    border: none;
    padding: 12px 15px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}
.referencias-prev { left: 10px; }
.referencias-next { right: 10px; }
.referencias-prev:hover, .referencias-next:hover { background-color: #ccc; }

/* ====== SECCION CONTACTO ====== */
#contact {
    padding: 60px 20px;
}
#contact h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}
#contact .map-container iframe {
    width: 100%;
    border: 0;
    border-radius: 8px;
}
#contact .contact-info {
    color: #ffffff;
    background-color: #a8141a;
    padding: 30px;
    border-radius: 8px;
}
#contact .contact-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#contact .contact-info li {
    margin-bottom: 15px;
}
#contact .contact-info a {
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
}
#contact .contact-info a:hover {
    text-decoration: underline;
}

/* ====== FOOTER ====== */
footer {
    background-color: #a8141a;
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
}
footer a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}
footer a:hover {
    text-decoration: underline;
}

/* ====== ESTILOS GLOBALES DE TEXTO ====== */
p, h1, h3, h5, h6, li {
    line-height: 1.6;
    text-align: justify;
}

/* ====== LOGO CONTAINER ====== */
.nueva-logo-container {
    position: relative;
    display: inline-block;
    padding: 10px;
    background-color: rgba(255, 235, 235, 0.72);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* ====== MEDIA QUERIES RESPONSIVAS (MEJORADAS Y UNIFICADAS) ====== */
@media (max-width: 992px) {
    /* Header */
    .segundo-menu-nav, .main-nav .nav { display: none; }
    .mobile-menu-toggle, .menu-trigger { display: block; }
    .segundo-menu-nav.active, .main-nav.active .nav {
        display: flex;
        flex-direction: column;
        width: 100%;
        position: absolute; /* Cambiado a absolute para no desbordar */
        top: 100%;
        left: 0;
        background-color: #333;
        padding: 10px 0;
        text-align: center;
    }
    .segundo-menu-container { justify-content: space-between; }

    /* Hero */
    #inicio, .hero, .heros {
        padding: 30px 20px;
        min-height: 80vh; /* Reducido para móviles */
    }
    #inicio h1, .hero h1, .heros h1 { font-size: 2.2rem; }
    #inicio p, .hero p, .heros p { font-size: 1rem; }

    /* Secciones generales */
    #features .col-lg-3, #services .col-lg-4, #about .col-lg-6, #contact .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .servicios-columna {
        width: 100%;
    }
    .servicios-columna.derecha {
        margin-top: 20px;
    }
    .nueva-fila-superior { flex-direction: column; }
    .nueva-columna.izquierda, .nueva-columna.derecha {
        flex: 1 1 100%;
    }
    .opciones-container { flex-direction: column; align-items: center; }
    .herramientas-grid { grid-template-columns: repeat(2, 1fr); } /* 2 columnas en tablet */
    section { padding: 40px 0; } /* Reducir padding */
}
@media (max-width: 768px) {
    .referencias-carrusel-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        width: 100%;
        display: block;
        padding: 0 10px; /* Márgenes reducidos */
    }
    .referencias-carrusel {
        flex-wrap: nowrap;
        gap: 10px;
    }
    .referencia-item {
        flex: 0 0 90%; /* Ocupa casi todo el ancho */
        max-width: 90%;
        margin: 0 5px; /* Márgenes más pequeños */
        padding: 15px; /* Padding reducido */
        box-sizing: border-box;
    }
    .referencia-nombre {
        font-size: 1rem; /* Fuente más pequeña */
    }
    .referencia-especialidad {
        font-size: 0.85rem;
    }
    .referencia-comentario {
        font-size: 0.9rem;
        line-height: 1.5;
        word-break: break-word;
        white-space: normal;
    }
    .referencias-prev, .referencias-next { display: none; } /* Ocultar botones */
}
@media (max-width: 600px) {
    .referencia-item {
        flex: 0 0 100%; /* Full ancho */
        max-width: 100%;
        margin: 0;
        padding: 12px; /* Más compacto */
    }
    .referencia-nombre {
        font-size: 0.95rem;
    }
    .referencia-especialidad {
        font-size: 0.8rem;
    }
    .referencia-comentario {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    /* Ultra-móviles */
    .herramientas-grid, .nueva-cards-container, .opciones-container { gap: 10px; }
    .referencias-titulo { font-size: 2rem; }
    .referencia-item { padding: 15px; }
    #contact .contact-info { padding: 20px 10px; }
}

@media (max-width: 768px) {
  .servicios-columna {
    width: 100%;
  }
}