/* ============================= */
/* Estilos generales del body */
/* ============================= */
body {
    background-color: #b1b8cd;
    font-family: 'Times New Roman', Times, serif;
    margin: 0;
    padding: 0;
}

/* ============================= */
/* Header */
/* ============================= */
header {
    text-align: center;
    padding: 30px 10px;
    background-color: #004080;
    color: #fff;
   /*  min-height: 90px;   NUEVO  */
}

header h1 {
    font-size: 36px;
    margin: 0;
}

header .subtitulo {
    font-size: 20px;
    margin-top: 5px;
}

/* ============================= */
/* Bloque redondeado informativo */
/* ============================= */
.info-block {
    max-width: 1000px;
    margin: 20px auto;
    background-color: #e6f0fa;
    padding: 20px 25px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
    line-height: 1.6;
    font-size: 20px;
    color: #003060;
}

/* ============================= */
/* Main y secciones */
/* ============================= */
main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 10px;
}

section {
    margin-bottom: 50px;
}

h2 {
    color: #004080;
    border-bottom: 2px solid #004080;
    padding-bottom: 5px;
}

/* ============================= */
/* Sección de marcas líderes */
/* ============================= */
.brands {
    margin-bottom: 50px;
}

.brands-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;               /* Original   gap: 20px;  */
    padding: 30px;           /* Original   padding: 30px;  */
    background-color: transparent;
    background-image: url("/img/fondo-marcas.webp");
    background-size: cover;
    background-position: center;
    border-radius: 10px;
}

.brands-logos img {
    
    
    max-height:80px;  /* Original max-height: 80px;============================= */
    max-width: 120px;  /* Original  max-width: 120px;============================= */
    flex: 0 1 100px;   /* Original  flex: 1 1 100px; ============================= */
    object-fit: contain;
}

/* ============================= */
/* Sección de productos destacados */
/* ============================= */
.products-grid {
    display: flex;
    flex-wrap: wrap;
    background-image: url("/img/fondo-marcasexperiencia.webp");
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    text-align: center;
    padding: 40px 10px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    opacity: 0.8;
}


/* Responsivo */
@media (max-width: 900px) {
    .product-card {
        flex: 1 1 calc(50% - 40px);
    }
}

@media (max-width: 600px) {
    .product-card {
        flex: 1 1 100%;
    }
}

.product-card button {
    background-color: #004080;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.product-card button:hover {
    background-color: #003060;
}

/* Fondos específicos */
.product-card.portatiles      { background-image: url("/productos/portatiles/img/portatiles.webp"); }
.product-card.perifericos     { background-image: url("/productos/perifericos/img/perifericos.webp"); }
.product-card.insumos         { background-image: url("/productos/insumos/img/insumos.webp"); }
.product-card.monitores       { background-image: url("/productos/monitores/img/monitores.webp"); }
.product-card.almacenamiento  { background-image: url("/productos/almacenamiento/img/almacenamiento.webp"); }
.product-card.reparaciones    { background-image: url("/productos/reparaciones/img/reparaciones.webp"); }

/* ============================= */
/* CTA */
/* ============================= */
.cta {
    text-align: center;
    margin: 40px 0;
}

.cta a {
    background-color: #004080;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    font-size: 18px;
}

/* ============================= */
/* Footer */
/* ============================= */
footer {
    text-align: center;
    background-color: #004080;
    color: #fff;
    padding: 25px 10px;
}

footer a {
    color: #ffcc00;
    text-decoration: none;
}

/* ============================= */
/* Botón flotante "Home" */
/* ============================= */
.btn-home {
    position: fixed;
    top: 200px;
    right: 20px;
    background-color: #004080;
    color: #fff;
    padding: 12px 18px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: background-color 0.3s;
}

.btn-home:hover {
    background-color: #003060;
}

/* ============================= */
/* Tooltips para logos de marcas */
/* ============================= */
.brand {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.brand::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -42px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 64, 128, 0.92);
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 1100;
}

.brand:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-6px);
}

@media (max-width: 480px) {
    .brand::after {
        display: none;
    }
}

/* ============================= */
/* Estilos para modales de marcas */
/* ============================= */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: #000000;
    background-color: rgba(0,0,0,0.6);
    /* <!-- animation: fadeIn 0.25s ease;  --> */
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 540px;
    box-shadow: none;
    text-align: left;
   /*  animation: slideIn 0.25s ease;  */
}

.modal-content h3 {
    color: #004080;
    margin-top: 0;
}

.modal-content p {
    color: #333;
    line-height: 1.45;
}

.close {
    color: #666;
    float: right;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-30px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* ========================================================= */
/* Tarjetas del INDEX - 3 por fila, adaptables y con fondo */
/* ========================================================= */
#productos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.bloque {
    flex: 1 1 calc(33.333% - 40px);
    max-width: 300px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: none;
    text-align: center;
    background-size: cover;
    background-position: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    min-height: 250px;
}

.bloque:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

/* Fondo semitransparente para legibilidad */
.bloque::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    opacity: 0.8;
    z-index: 0;
}

.bloque h3,
.bloque p,
.bloque button {
    position: relative;
    z-index: 1;
}

.bloque h3 {
    color: #003060;
    margin-bottom: 10px;
    font-size: 20px;
}

.bloque p {
    color: #333;
    font-size: 15px;
    margin-bottom: 10px;
}

.bloque button {
    background-color: #004080;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
}

.bloque button:hover {
    background-color: #0066cc;
}

/* Imágenes de fondo */
.bloque.portatiles      { background-image: url("/productos/portatiles/img/portatiles.webp"); }
.bloque.perifericos     { background-image: url("/productos/perifericos/img/perifericos.webp"); }
.bloque.insumos         { background-image: url("/productos/insumos/img/insumos.webp"); }
.bloque.monitores       { background-image: url("/productos/monitores/img/monitores.webp"); }
.bloque.almacenamiento  { background-image: url("/productos/almacenamiento/img/almacenamiento.webp"); }
.bloque.reparaciones    { background-image: url("/productos/reparaciones/img/reparaciones.webp");}
/* Adaptabilidad responsive */
@media (max-width: 900px) {
    .bloque {
        flex: 1 1 calc(50% - 40px);
    }
}

@media (max-width: 600px) {
    .bloque {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* ========================================================= */
/* Sección de Servicios animada (una línea visible a la vez) */
/* ========================================================= */
.services {
    background-image: url("/img/fondo-marcasexperiencia.webp");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    text-align: center;
    padding: 40px 10px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    opacity: 0.8;
}

.services::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 0;
}

.services h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    color: #fff;
}

/* Contenedor del texto rotativo */
.services-slider {
    position: relative;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

/* Texto de cada slide */
.services-slider .slide {
    position: absolute;
    opacity: 0;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.6;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
    transition: opacity 0.8s ease-in-out;
}

/* Animación para rotar las frases */
@keyframes slideFade {
    0%, 20% { opacity: 1; }
    25%, 100% { opacity: 0; }
}

/* Secuencia de aparición de los textos */
.services-slider .slide:nth-child(1) { animation: slideFade 16s infinite; }
.services-slider .slide:nth-child(2) { animation: slideFade 16s infinite 4s; }
.services-slider .slide:nth-child(3) { animation: slideFade 16s infinite 8s; }
.services-slider .slide:nth-child(4) { animation: slideFade 16s infinite 12s; }

/* ====================================== */
/* Bloque principal de introducción */
/* ====================================== */
.intro {
    background-image: url("/img/fondo-marcasexperiencia.webp");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    text-align: center;
    padding: 40px 20px;   /* menos alto */
    position: relative;
    overflow: hidden;
    line-height: 1.6;     /* reduce altura entre líneas */
    border-radius: 15px;
}

.intro::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 48, 96, 0.65);
    z-index: 0;
}

.intro h2, 
.intro h3, 
.slider-palabras, 
.slider-compromiso {
    position: relative;
    z-index: 1;
    margin: 2px 0; /* espaciado mínimo entre líneas */
    padding: 0;
}

/* Primer renglón */
.intro h2 {
    font-size: 1.9rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #fff;
}

/* ====================================== */
/* SEGUNDO RENGLÓN: animación horizontal */
/* ====================================== */
.slider-palabras {
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    height: 40px; /* un poco más compacto */
    margin: 0 auto 3px auto;
}

.slider-palabras .slide-track {
    display: inline-block;
    white-space: nowrap;
    animation: scrollPalabras 21s linear infinite;
}

.slider-palabras span {
    display: inline-block;
    font-size: 1.6rem;
    font-weight: 600;
    color: #ffdd55;
    margin: 0 30px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

@keyframes scrollPalabras {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ====================================== */
/* Tercer y cuarto renglón */
/* ====================================== */
.intro h3 {
    font-size: 1.6rem;
    font-weight: 500;
    color: #fff;
    margin-top: 2px;
}

/* Compromiso */
.slider-compromiso {
    margin-top: 4px;
    font-size: 1.6rem;     /* igual tamaño que el segundo renglón */
    font-weight: 600;
    color: #fff;
    line-height: 1.6;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-compromiso span {
    display: inline-block;
    white-space: nowrap;
    animation: scrollCompromiso 12s linear infinite;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

@keyframes scrollCompromiso {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ======================================= */
/* Segundo renglón: palabras que rotan */
/* ======================================= */

 
.slider-palabras {
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
    margin: 15px 0;
    min-height: 40px;
    overflow: hidden;
    white-space: normal;
    display: inline-block;
}

/* Correcciones responsive para la sección Servicios */
@media (max-width: 600px) {
    .services-slider {
        height: auto;          /* permite crecer según el texto */
        min-height: 70px;      /* altura mínima */
        padding: 10px 0;       /* espacio interno */
    }

    .services h2 {
        margin-top: -30px;     /* sube un poco el título original en -10 */
        margin-bottom: 15px;   /* deja un poco más de espacio abajo */
        font-size: 1.8rem;     /* ajusta el tamaño */
    }

    .services-slider .slide {
        font-size: 1.2rem;     /* texto más cómodo en móvil */
        line-height: 1.4;
    }
}



