﻿/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    margin-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Set widths on the form inputs since otherwise they're 100% wide */
input,
select,
textarea {
    max-width: 280px;
}

/* Responsive: Portrait tablets and up */
@media screen and (min-width: 768px) {
    .body-content {
        padding: 0;
    }
}

/* Estilos genéricos para cualquier página con fondo animado */
.page-bg-parallax {
    /* La imagen se repite en ambos ejes (o podés usar repeat-y) */
    background-repeat: repeat;
    /* Mantiene el tamaño original de la textura para que pueda repetirse fluidamente */
    background-size: auto;
    /* Efecto parallax / fijo al scrollear */
    background-attachment: fixed;
    background-position: center top;
}

/* Para scroll suave cuando el usuario hace click en algún link de la misma página */
html {
    scroll-behavior: smooth;
}

/* Para tipografía gris sobria y bordes horizontales finos en tablas*/
.custom-compare-table {
    border-collapse: collapse;
    color: #4a4a4a;
    font-size: 0.95rem;
}

    .custom-compare-table thead th {
        font-weight: 700;
        color: #222222;
        border-bottom: 2px solid #e5e5e5;
    }

    .custom-compare-table td {
        padding: 0.1rem 0.0rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .custom-compare-table thead th {
        padding-top: 0.1rem !important;
        padding-bottom: 0.1rem !important;
    }

    /* Efecto hover suave */
    .custom-compare-table tbody tr:hover {
        background-color: #fcfcfc;
    }

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    position: relative;
    background: #303030;
    color: #ffffff;
    padding: 42px 36px 0;
}

/* ---------------------------------------------------------
   FOTOS
   --------------------------------------------------------- */

.footer-fotos {
    max-width: 1000px;
    margin: 0 auto 42px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.footer-foto {
    overflow: hidden;
}

    .footer-foto img {
        display: block;
        width: 100%;
        aspect-ratio: 1.7 / 1;
        object-fit: cover;
        transition: transform .25s ease;
    }

        .footer-foto img:hover {
            transform: scale(1.03);
        }


/* ---------------------------------------------------------
   INFORMACIÓN
   --------------------------------------------------------- */

.footer-info {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 2fr 2fr 1.5fr;
    gap: 40px;
    align-items: start;
}


/* ---------------------------------------------------------
   LOGO
   --------------------------------------------------------- */

.footer-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.footer-logo a {
    display: inline-block;
}


/* ---------------------------------------------------------
   COLUMNAS
   --------------------------------------------------------- */

.footer-columna h3 {
    margin: 0 0 12px;
    color: #929292;
    font-size: 17px;
    font-weight: 600;
}

.footer-columna p {
    margin: 0;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
}


/* ---------------------------------------------------------
   LINKS
   --------------------------------------------------------- */

.footer-links {
    display: flex;
    flex-direction: column;
}

    .footer-links a {
        margin-bottom: 0px;
        color: #888888;
        font-size: 14px;
        text-decoration: none;
        transition: color .2s ease;
    }

        .footer-links a:nth-of-type(1) {
            color: #0ea5e9;
        }

        .footer-links a:nth-of-type(2) {
            color: #dc3545;
        }

        .footer-links a:nth-of-type(3) {
            color: #198754;
        }

        /* Tiene que estar después */
        .footer-links a:hover {
            color: #ffffff;
        }


/* ---------------------------------------------------------
   COPYRIGHT
   --------------------------------------------------------- */

.footer-copyright {
    max-width: 1000px;
    margin: 30px auto 0;
    padding: 10px 0 12px;
    text-align: center;
    color: #999999;
    font-size: 13px;
    border-top: 1px solid #3d3d3d;
}


/* ---------------------------------------------------------
   VOLVER ARRIBA
   --------------------------------------------------------- */

.volver-arriba {
    position: absolute;
    right: 22px;
    bottom: 0;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #292929;
    color: #ffffff;
    text-decoration: none;
    font-size: 24px;
    border-radius: 3px 3px 0 0;
    transition: background .2s ease;
}

    .volver-arriba:hover {
        background: #444444;
    }


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 800px) {

    .footer-fotos {
        gap: 15px;
    }

    .footer-info {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }

    .footer-logo {
        grid-column: span 2;
    }
}


/* =========================================================
   CELULAR
   ========================================================= */

@media (max-width: 600px) {

    .site-footer {
        padding: 30px 20px 0;
    }

    .footer-fotos {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-bottom: 35px;
    }

    .footer-info {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-logo {
        grid-column: auto;
    }

        .footer-logo img {
            width: 100px;
            height: 100px;
        }

    .footer-columna h3 {
        margin-bottom: 10px;
    }

    .volver-arriba {
        right: 10px;
    }
}
