/* ============================================
   ESTILOS GENERALES
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HERO SECTION (Imagen principal con texto)
============================================ */
.hero {
    position: relative;
    height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('../img/Fondos/cajashome-fondo.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 80px; /* Espacio para el navbar */
}

.hero-content {
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 400;
}

.btn-hero {
    display: inline-block;
    padding: 15px 40px;
    background-color: #1a237e;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-hero:hover {
    background-color: white;
    color: #1a237e;
    border: 2px solid #1a237e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ============================================
   SECCIÓN SOBRE NOSOTROS
============================================ */
.sobre-nosotros {
    padding: 20px 0;
    background-color: #f5f5f5;
}

.sobre-nosotros-header {
    text-align: left;
    margin-bottom: 40px;
}

.sobre-nosotros-header .subtitle {
    color: #1a237e;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.sobre-nosotros-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
}

.sobre-nosotros-header h2 br {
    display: inline; /* Siempre muestra el salto de línea */
}

.sobre-nosotros-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.sobre-nosotros-text {
    padding-right: 20px;
}

.sobre-nosotros-text p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

.caracteristicas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.caracteristica-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.caracteristica-item::before {
    content: "✓";
    color: #1a237e;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.caracteristica-item span {
    color: #333;
    font-size: 0.95rem;
}

.sobre-nosotros-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.sobre-nosotros-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ============================================
   SECCIÓN INDUSTRIAS
============================================ */
.industrias {
    padding: 80px 0;
    background: url('../img/Fondos/patronDiamante-fondo.png') center/cover no-repeat;
    text-align: center;
}

.industrias h2 {
    font-size: 3rem;
    color: white;
    font-weight: 700;
    margin-bottom: 60px;
}

.industrias-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.industria-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.industria-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.industria-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Hace los iconos blancos */
}

.industria-item p {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}


/* ============================================
   SECCIÓN BENEFICIOS
============================================ */
.beneficios {
    padding: 80px 0;
    background-color: white;
}

.beneficios-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.beneficios-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.beneficios-image::before {
    content: '';
    position: absolute;
    top: 38%;
    left: 37%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 500px;
    background-image: url('../img/Imagenespng/marco.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
}



.beneficios-image img {
    position: relative;
    width: 120%;
    height: auto;
    z-index: 1;
    top: 30px;
    left: 20px;
}

.beneficios-info {
    padding-left: 20px;
}

.beneficios-subtitle {
    color: #1a237e;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.beneficios-info h2 {
    font-size: 2.5rem;
    color: #000;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.beneficios-descripcion {
    color: #666;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.estadisticas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.estadistica-item {
    text-align: left;
}

.estadistica-item h3 {
    font-size: 3rem;
    color: #1a237e;
    font-weight: 700;
    margin-bottom: 5px;
}

.estadistica-item p {
    color: #666;
    font-size: 0.95rem;
}

/* Características inferiores */
.caracteristicas-beneficios {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.caracteristica-beneficio {
    background-color: #1a237e;
    padding: 30px 20px;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.caracteristica-beneficio:hover {
    transform: translateY(-5px);
}

.caracteristica-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
}

.caracteristica-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.caracteristica-beneficio h4 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

/* ============================================
   SECCIÓN MARCAS
============================================ */
.marcas {
    padding: 40px 0;
    background-color: #f8f8f8;
    overflow: hidden;

}

.marcas .container {
    max-width: 100%;
    padding: 0;
}


.marcas-grid {
    display: flex;
    align-items: center;
    gap: 80px;
    animation: scroll-marcas 20s linear infinite;
    width: max-content;
}

.marcas-grid::after {
    content: '';
    display: flex;
    gap: 60px;
}

.marca-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.marca-item img {
    height: 70px;
    width: auto;
    object-fit: contain;
    display: block;
}

@keyframes scroll-marcas {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pausar animación al hacer hover */
.marcas-grid:hover {
    animation-play-state: paused;
}

/* ============================================
   SECCIÓN TESTIMONIOS
============================================ */
.testimonios {
    padding: 80px 0;
    background-color: #ffffff;
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: start;
}

.testimonio-card {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonio-comillas {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    height: 50px;
}

.testimonio-comillas img {
    width: 40px;
    height: auto;
    object-fit: contain;
}

.testimonio-texto {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 30px;
    padding: 30px;
    background-color: white;
    border-left: 4px solid #1a237e;
    border-bottom: 4px solid #1a237e;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    min-height: 200px;
    flex-grow: 1;
}

.testimonio-estrellas {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
    font-size: 1.3rem;
    color: #1a237e;
    justify-content: center;
    height: 30px;
}

.testimonio-autor {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.testimonio-autor img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #1a237e;
}

.testimonio-autor h4 {
    color: #000;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

/* ============================================
   RESPONSIVE - TESTIMONIOS
============================================ */
@media (max-width: 968px) {
    .testimonios-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .testimonio-texto {
        min-height: auto;
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .testimonios {
        padding: 60px 0;
    }

    .testimonio-comillas {
        height: 40px;
        margin-bottom: 15px;
    }

    .testimonio-comillas img {
        width: 35px;
    }

    .testimonio-texto {
        font-size: 0.9rem;
        padding: 20px;
    }

    .testimonio-autor img {
        width: 70px;
        height: 70px;
    }

    .testimonio-estrellas {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .testimonios {
        padding: 40px 0;
    }

    .testimonio-comillas {
        height: 35px;
    }

    .testimonio-comillas img {
        width: 30px;
    }

    .testimonio-texto {
        font-size: 0.85rem;
        line-height: 1.6;
        padding: 20px 15px;
        min-height: auto;
    }

    .testimonio-estrellas {
        font-size: 1rem;
        gap: 5px;
        margin-bottom: 20px;
    }

    .testimonio-autor img {
        width: 60px;
        height: 60px;
        border: 3px solid #1a237e;
    }

    .testimonio-autor h4 {
        font-size: 1rem;
    }
}

/* ============================================
   SECCIONES ADICIONALES
============================================ */
.main-content {
    background-color: white;
}

.servicios,
.productos {
    padding: 80px 0;
}

.servicios h2,
.productos h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 50px;
    font-weight: 700;
}

/* ============================================
   RESPONSIVE
============================================ */

@media (max-width: 968px) {
    .beneficios-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

   .beneficios-image::before {
        width: 350px;
        height: 450px;
        top: 35%;
        left: 35%;
    }

    .beneficios-image img {
        width: 100%;
        max-width: 350px;
    }

    .caracteristicas-beneficios {
        grid-template-columns: repeat(2, 1fr);
    }

    .estadisticas-grid {
        gap: 20px;
    }

    .estadistica-item h3 {
        font-size: 2.5rem;
    }
    .marcas {
        padding: 35px 0;
    }

    .marcas-grid {
        justify-content: space-around;
        gap: 25px;
    }

    .marca-item img {
        height: 40px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 500px;
        margin-top: 60px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .sobre-nosotros-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .caracteristicas {
        grid-template-columns: 1fr;
    }
    
    .sobre-nosotros-header h2 {
        font-size: 2rem;
    }
    .sobre-nosotros-header h2 br {
        display: none; /* Oculta el salto en móviles */
    }
      .industrias-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .industrias h2 {
        font-size: 2.5rem;
    }

     .beneficios {
        padding: 60px 0;
    }

    .beneficios-content {
        gap: 30px;
    }

    .beneficios-image {
        padding: 30px 0;
        margin: 0 auto;
        max-width: 400px;
    }

    .beneficios-image::before {
        width: 280px;
        height: 350px;
        top: 50%;
        left: 50%;
    }

    .beneficios-image img {
        width: 85%;
        max-width: 260px;
        top: 25px;
        left: 20px;
    }

    .beneficios-info {
        text-align: center;
        padding: 0 20px;
    }

    .beneficios-subtitle {
        text-align: center;
    }

    .beneficios-info h2 {
        font-size: 1.8rem;
        text-align: center;
    }

    .beneficios-descripcion {
        text-align: center;
        font-size: 0.95rem;
    }

    .estadisticas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        margin-bottom: 30px;
    }

    .estadistica-item {
        text-align: center;
    }

    .estadistica-item h3 {
        font-size: 2.8rem;
    }

    .estadistica-item p {
        font-size: 0.9rem;
    }

    .caracteristicas-beneficios {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .caracteristica-beneficio {
        padding: 25px 15px;
    }

    .caracteristica-beneficio h4 {
        font-size: 0.85rem;
    }
    .caracteristica-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    .marcas {
        padding: 30px 0;
    }

    .marcas-grid {
        gap: 20px;
    }

    .marca-item img {
        height: 35px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .btn-hero {
        padding: 12px 30px;
        font-size: 1rem;
    }
    .industrias-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .industrias h2 {
        font-size: 2rem;
    }
    .beneficios-info h2 {
        font-size: 2rem;
    }

    .caracteristicas-beneficios {
        grid-template-columns: 1fr;
    }

    .estadistica-item h3 {
        font-size: 2rem;
    }

       .beneficios {
        padding: 40px 0;
    }

    .beneficios-content {
        gap: 25px;
    }

    .beneficios-image {
        padding: 20px 0;
        max-width: 100%;
    }

    .beneficios-image::before {
        width: 220px;
        height: 280px;
        top: 50%;
        left: 50%;
    }
   .beneficios-info {
        padding: 0 15px;
    }

    .beneficios-info h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    .beneficios-descripcion {
        font-size: 0.9rem;
        margin-bottom: 25px;
        line-height: 1.6;
    }

    .estadisticas-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .estadistica-item h3 {
        font-size: 2.2rem;
    }
.estadistica-item p {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .caracteristicas-beneficios {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .caracteristica-beneficio {
        padding: 20px 15px;
    }

    .caracteristica-beneficio h4 {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .caracteristica-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 12px;
    }

    .marcas {
        padding: 25px 0;
    }

    .marcas-grid {
        justify-content: center;
        gap: 15px;
    }

    .marca-item {
        flex: 0 1 45%;
    }

    .marca-item img {
        height: 30px;
    }

}

