﻿body {
    margin: 0;
    font-family: Arial, sans-serif;
    padding-top: 84px;
    background-color: #ffffff;
}

html {
    scroll-behavior: smooth;
}


section {
    position: relative;
    min-height: auto; /* no forzar altura fija */
    padding: 60px 0; /* espacio superior e inferior */
    margin-bottom: 80px; /* deja aire antes del footer */
}


/* Ajuste del contenedor interno */
.mini-bg {
    position: relative; 
    width: 90%;
    margin: 0 auto;
    min-height: auto;
    background: rgba(0,0,0,0);
    z-index: 10;
    justify-content: center;
}


.section-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: auto;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}


.novedades-grid {
    border: none !important;
    border-collapse: collapse;
    width: 90%;
    margin: 0 auto;

}


/* Ajuste SOLO para la sección de noticias/productos */
#productosN .container.noticia {
    max-width: 900px; /* controla el ancho total */
    margin: 0 auto; /* lo centra */
    padding: 20px; /* aire interno */
}

    /* Ajuste de los dos lados (texto e imagen) */
    #productosN .container.noticia .txt,
    #productosN .container.noticia .post-card {
        flex: 1;
        max-width: 48%; /* cada lado ocupa máximo la mitad */
    }


/* Centrar la tabla de novedades */
#productosN .novedades-grid {
    margin: 0 auto;
    max-width: 1000px;
    width: 90%;
    display: block;
    padding-left: 32px; /* mueve hacia la derecha */
}


.point {
    position: absolute;
    border-radius: 50%;
    background-color: #2fa9f5;
    opacity: 0.8;
    z-index: 1;
}


@keyframes float {
    0% {
        transform: translate(0px, 0px);
    }

    25% {
        transform: translate(40px, -50px);
    }

    50% {
        transform: translate(-30px, 60px);
    }

    75% {
        transform: translate(50px, 20px);
    }

    100% {
        transform: translate(0px, 0px);
    }
}


.fixed-button {
    position: fixed; 
    bottom: 20px;
    right: 20px; 
    background-color: #85b044; /* mismo verde que el menú */
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 1000; /* para que quede por encima de todo */
}

    .fixed-button:hover {
        background-color: #6b9130; /* un verde un poco más oscuro al pasar el cursor */
    }

.footer-column .firma {
    text-decoration: none;
    color: #2453A3 !important; /* fuerza tu color inicial */
    transition: color 0.3s;
    font-size: 10px;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

    .footer-column .firma:hover {
        color: #6b9130 !important;
    }

.punto1 {
    width: 20px;
    height: 20px;
    animation-duration: 8s;
}


.punto2 {
    width: 30px;
    height: 30px;
    animation-duration: 8s;
}


.punto3 {
    width: 60px;
    height: 60px;
    animation-duration: 9s;
}

/* ----- Separador full-width entre filas del GridView ----- */
.novedades-grid tbody tr td {
    position: relative;
    padding-bottom: 22px; /* espacio sobre la línea */
}

    /* dibuja la línea en la base del <td> */
    .novedades-grid tbody tr td::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 2px;
        background: #2fa9f5; /* azul claro */
    }

/* quita la línea en la última fila */
.novedades-grid tbody tr:last-child td::after {
    display: none;
}

/* evita que .container.noticia añada demasiado margen que empuje la línea */
.novedades-grid .container.noticia {
    margin-bottom: 0 !important;
    padding-bottom: 8px; /* pequeño espacio interno para que no pegue el contenido a la línea */
}


.content {
    display: flex;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: space-between;
}


/* Texto */
.text-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    margin-top: 0;
    font-weight: 500;
    color: #2d7ed2;
    line-height: 1.2;
    margin-bottom: 15px;
}


.text-content p {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #004777;
    line-height: 1.3;
    margin-bottom: 10px;
}


.text-content b {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    color: #59AC1A;
    line-height: 1.6;
    margin-bottom: 0px;
}


.text-content d {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #004777;
    line-height: 1.6;
    margin-bottom: 30px;
}


.text-content button {
    font-family: 'Montserrat', sans-serif;
    background: #98c455;
    color: white;
    font-size: 18px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

    .text-content button:hover {
        opacity: 0.85;
    }

/* -------------------------------- */

.container {
    display: flex;
    height: 100%;
}


.left {
    flex: 1; /* ambos ocupan el mismo espacio */
    padding: 30px;
    box-sizing: border-box; /* asegura que el padding no rompa el ancho */
    height: 100%;
}


.txt {
    background: rgba(255, 255, 255, 0.2); /* blanco con 60% de opacidad */ /* Efecto difuminado del fondo */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* compatibilidad Safari */
    box-sizing: border-box; /* asegura que el padding no rompa el ancho */
    height: 100%;
    flex: 1;
    border-radius: 20px;
}


.post-card {
    flex: 1; /* ambos ocupan el mismo espacio */
    padding: 4px;
    height: auto;
    margin-top: 8px;
}

    .post-card img {
        display: block;
    }


.left p {
    font-size: 20px;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #555;
}


.left .hashtags {
    font-size: 12px;
    color: #2d84ba; /* Gris hashtags */
}


.post-image {
    width: 90%;
    height: auto;
}


.post-info {
    margin-top: 4px;
    text-align: initial;
}


.post-date {
    font-size: 0.9em;
    margin: 0;
    color: #2d84ba;
}


.post-author {
    font-size: 0.9em;
    color: #333;
    margin: 2px 0 0 0;
    font-weight: bold;
}
/* Contenedor mini noticias horizontal */


.noticias-horizontal {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    flex-wrap: nowrap; /* mantener en una fila */
}

/* Cada noticia pequeña */

.tarjeta-noticia {
    flex: 1 1 22%; /* 4 tarjetas proporcionales */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Imagen de la noticia */

.imagen-noticia {
    width: 100%;
    height: auto;
    display: block;
}

/* Fecha de la noticia */

.info-noticia {
    margin-top: 4px;
    margin-bottom: 4px;
    color: #555;
}


.fecha-noticia {
    font-size: 0.8em;
    color: #555;
    margin: 0;
}

/* Texto debajo de la fecha */

.texto-noticia p {
    font-size: 14px;
    line-height: 1.3;
    margin-top: 5px;
    color: #2fa9f5;
}

/* Hover en el slide central */

.slideN.centerN:hover {
    transform: translate(-50%, -50%) scale(1.15);
    z-index: 12;
    box-shadow: 0 12px 32px rgba(0,0,0,0.22);
    border-radius: 50%;
}


.footer-bottom {
    display: flex; /* Activamos Flexbox */
    align-items: center; /* Alineamos verticalmente texto e ícono */
    justify-content: center; /* Centra todo horizontalmente */
    gap: 8px; /* Espacio entre texto e ícono */
    font-size: 12px;
    color: #fff;
    padding: 4px 0;
}


.footer-column.logo-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

    .footer-column.logo-contact img {
        max-width: 120px;
        margin-bottom: 4px;
    }

    .footer-column.logo-contact ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .footer-column.logo-contact ul li {
            display: flex;
            align-items: center;
            gap: 10px; /* espacio entre ícono y texto */
            font-size: 14px;
            margin-bottom: 12px;
            color: #fff;
            white-space: nowrap; /* evita que el número baje de línea */
        }

            .footer-column.logo-contact ul li i {
                font-size: 20px;
                color: #fff;
                min-width: 24px; /* alinea todos los íconos */
                text-align: center;
            }


.footer-column b {
    font-weight: 700; /* hace el texto más grueso */
    font-size: 16px;
}


.ico {
    max-height: 32px;
    max-width: 32px;
}


/* Por defecto: texto izquierda, imagen derecha */
.noticia-left {
    flex-direction: row;
}


/* Alternado: imagen izquierda, texto derecha */
.noticia-right {
    flex-direction: row-reverse;
}


/* Ajustes generales */
.container.noticia {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 60px;
}

    /* Texto */
    .container.noticia .txt {
        flex: 1;
        padding: 20px;
        border-radius: 20px;
        background: rgba(255,255,255,0.4);
    }

    /* Imagen */
    .container.noticia .post-card {
        flex: 1;
        text-align: center;
    }

        .container.noticia .post-card img {
            max-width: 100%;
            border-radius: 12px;
        }


/* Responsividad */
@media (max-width: 900px) {
    .carouselN {
        height: 520px;
        padding: 0 20px;
    }

    .slideN {
        width: 220px;
        height: 330px;
    }

    .prevN {
        left: 8%;
    }

    .nextN {
        right: 8%;
    }
}


@media (max-width: 520px) {
    .carouselN {
        height: 420px;
    }

    .slideN {
        width: 180px;
        height: 260px;
    }

    .prevN, .nextN {
        display: none;
    }
}


/*------footer--------*/

.help-desk {
    display: flex;
    align-items: center;
    margin-top: 15px;
    font-size: 14px;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s;
}

    .help-desk .help-icon {
        width: 18px; /* ajusta tamaño del icono */
        height: 18px; /* asegura proporción */
        margin-right: 8px;
    }

    .help-desk:hover {
        color: #6b9130;
    }


#contacto {
    height: auto !important; /* Quita el height fijo */
    background: #fff; /* Fondo blanco */
    margin: 0; /* Elimina márgenes */
    padding: 0; /* Sin padding */
}

/* Footer */

.footer {
    background-color: #2453A3; /* Azul como en la imagen */
    color: #fff;
    padding: 20px 15px;
    font-family: Arial, sans-serif;
}


.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: space-between;
    max-width: 76%;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}


.footer-column {
    flex: 1 1 200px;
    margin: 4px;
    max-width: 152px;
    margin-left: 8px;
}


.footer-logo {
    max-width: 150px;
    margin-bottom: 20px;
}


.footer-column h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: bold;
}


.footer-column ul {
    list-style: none;
    padding: 0;
}

    .footer-column ul li {
        margin: 8px 0;
        font-size: 14px;
    }

        .footer-column ul li a {
            text-decoration: none;
            color: #fff;
            transition: color 0.3s;
        }

            .footer-column ul li a:hover {
                color: #6b9130; /* Amarillo suave al hover */
            }

/* Contact icons */

.logo-contact ul li {
    display: flex;
    align-items: center;
    gap: 8px;
}


.logo-contact i {
    font-size: 18px;
}

/* Footer bottom */

.footer-bottom {
    display: flex; /* Activamos Flexbox */
    align-items: center; /* Alineamos verticalmente texto e ícono */
    justify-content: center; /* Centra todo horizontalmente */
    gap: 8px; /* Espacio entre texto e ícono */
    font-size: 12px;
    color: #fff;
    padding: 4px 0;
}


.footer-column.logo-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

    .footer-column.logo-contact img {
        max-width: 120px;
        margin-bottom: 4px;
    }

    .footer-column.logo-contact ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .footer-column.logo-contact ul li {
            display: flex;
            align-items: center;
            gap: 10px; /* espacio entre ícono y texto */
            font-size: 14px;
            margin-bottom: 12px;
            color: #fff;
            white-space: nowrap; /* evita que el número baje de línea */
        }

            .footer-column.logo-contact ul li i {
                font-size: 20px;
                color: #fff;
                min-width: 24px; /* alinea todos los íconos */
                text-align: center;
            }


.footer-column b {
    font-weight: 700; /* hace el texto más grueso */
    font-size: 16px;
}


.ico {
    max-height: 32px;
    max-width: 32px;
}


/* Responsive */

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-column {
        margin: 15px 0;
    }
}

.icon-container {
    position: relative;
    display: inline-block;
}

/*-------------------------------------*/

.float-canvas {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}


.sprite {
    position: absolute;
    width: 40px;
    height: 40px;
    pointer-events: none;
    user-select: none;
}

/* --- Ajustes Bootstrap + tu CSS --- */ /* Evitar que Bootstrap rompa el nav */ /* Evitar que Bootstrap rompa el nav */

nav a {
    color: #2150A7;
    font-weight: 600;
}

/* Noticias responsive */

.noticias-horizontal {
    display: flex;
    flex-wrap: wrap; /* ahora sí deja que se acomoden en columnas */
    gap: 15px;
}

/* Tarjeta noticia con Bootstrap */

.tarjeta-noticia {
    background: transparent;
    border: none;
    padding: 8px;
}

/* Imagenes fluidas */

.imagen-noticia {
    width: 100%;
    height: auto;
    display: block;
}

/* Footer ajuste */

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Espacio normal (móviles / tablets) */

section {
    margin-bottom: 23px;
}

/* En pantallas medianas (>= 992px) */

@media (min-width: 992px) {
    section {
        margin-bottom: 60px; /* más aire */
    }
}

/* En pantallas muy grandes (>= 1400px) */

@media (min-width: 1400px) {
    section {
        margin-bottom: 100px; /* aún más espacio */
    }
}

/* Footer normal */

#contacto {
    margin-top: 30px; /* espacio estándar en pantallas pequeñas */
}

/* En pantallas medianas (laptops) */

@media (min-width: 992px) {
    #contacto {
        margin-top: 80px;
    }
}

/* En pantallas grandes (monitores grandes) */

@media (min-width: 1400px) {
    #contacto {
        margin-top: 240px;
    }
}


@media (max-width: 1023px) {
    .header-content {
        width: 70%; /* ocupa todo el ancho */
        max-width: 70%; /* sin límite */
        grid-template-columns: 120px 1fr 40px; /* ajusta las proporciones */
        gap: 10px; /* un poco menos de espacio */
        padding: 0 10px; /* margen interno */
    }

    nav {
        gap: 15px; /* reduce espacio entre links */
        flex-wrap: wrap; /* deja que salten a otra línea si no caben */
        justify-content: center;
        margin-right: 80px;
    }
}

/* ---- Sección de una noticia ---- */

.container.noticia {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    height: 100%;
}

    .container.noticia .txt {
        flex: 1;
        display: flex;
        align-items: center;
        border-radius: 20px;
        padding: 20px;
        background: rgba(255,255,255,0.4);
        backdrop-filter: blur(8px);
    }

    .container.noticia .text-content {
        width: 100%;
    }

    .container.noticia .post-card {
        flex: 1;
        text-align: center;
    }

        .container.noticia .post-card img {
            max-width: 100%;
            height: auto;
            border-radius: 12px;
        }

    .container.noticia .post-date {
        margin-top: 10px;
        font-size: 14px;
        color: #2d84ba;
    }

/* Responsive */

@media (max-width: 992px) {
    .container.noticia {
        flex-direction: column;
        text-align: center;
    }

        .container.noticia .txt, .container.noticia .post-card {
            width: 100%;
        }
}

.texto-noticia p {
    color: #555 !important;
}
