/*
    BEM = BLOCK ELEMENT MODIFIER
    BEM PERMITE REUTILIZAR CODIGOS
    CUALQUIER ETIQUETAS PUEDE TENER CLASES
*/
:root { /* Esta propiedad sirve para trabajar con variables */
    --primario: #1abc9c;
    --primarioClaro: #f39c12;
    --secundario: #16a085;
    --secundarioClaro: #f1c40f;
    --blanco: white;
    --gris: #7f8c8d;    
}


*,
*::after,
*::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
font-size: 62.5%; /*Se transformo la fuente base en 10 px  */
}

.contenedor {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

body {
        font-family: 'Poppins', sans-serif;
        margin: 0;
        padding: 0;
        background-color: #f9f9f9;
        color: #333;
    }
    
.header {
    background: #fff;
    padding: 1rem 1rem;
    text-transform: uppercase;
}

.header-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    
}

/* LOGO */
.logo img {
    width: 250px;
    height: auto;
    justify-content: space-between;
}

/* NAV CENTRADO */
.nav {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

/* LINKS */
.nav--link {
    text-decoration: none;
    color: #111;
    font-size: 1.6rem;
    padding: .7rem 1.4rem;
    font-weight: 600;
    border-radius: 2rem;
    transition: all .3s;
}

/* HOVER */
.nav--link:hover {
    background-color: #5cdbc8;
}

/* OFERTAS */
.nav--link.activos {
    background-color: red;
    color: #fff;
}

/* ======================
   RESPONSIVE
====================== */
@media (max-width: 900px) {

    .header-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .logo {
        text-align: center;
    }

    .logo img {
        width: 220px;
    }

    .nav {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .nav--link {
        width: 90%;
        text-align: center;
        font-size: 1.6rem;
    }
}
 
.ubicacion {   
    background-image: url(./img/laptop.jpg);   
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    .ubicacion__box {
        padding-top: 30rem;
        padding-bottom: 30rem;
        background-color: rgba(0,0,0,.6);
        display: flex;
        flex-direction: column;
        align-items: center;
        .ubicacion__box--descri {
            margin-bottom: 3rem;
            font-size: 2.4rem;
            color: white;
            text-align: center;
        }

        .ubicacion__box--locale {
            i {
                color: var(--primario);
                font-size: 2.4rem;
                margin-right: .5rem;
            }
            span {
                color: var(--blanco);
                font-size: 1.6rem;
            }
        }
    }
}

.imagenes {
    margin-top: 1rem;
    .logo {
    width: 100%;            /* Tamaño de la imagen */
    height: 50rem;            /* Mantiene la proporción */
    border-radius: 1rem;     /* Bordes redondeados (opcional) */
    margin-bottom: 1rem;     /* Espacio debajo del logo */
    margin-left: auto;
    margin-right: auto;
}
}

* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

body {
    background: #f5f7fa;
}

/* CONTENEDOR PRINCIPAL */
.contacto {
    display: flex;
    max-width: 1200px;
    margin: 60px auto;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* PANEL IZQUIERDO */
.info {
    background: linear-gradient(180deg, #2ece71, #073a1e);
    color: #fff;
    padding: 40px;
    width: 40%;
}

.info h4 {
    font-size: 20px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-align: center;
}

.info h2 {
    font-size: 24px;
    line-height: 1.4;
    margin-bottom: 40px;
}

.dato {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    strong {
        font-size: 18px;
    }
    p {
        font-size: 18px;
    }
}

.icon {
    background: #fff;
    color: #16c08f;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    margin-right: 15px;
}

/* FORMULARIO */
.formulario {
    width: 60%;
    padding: 40px;
}

.formulario h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.formulario p {
    color: #666;
    margin-bottom: 30px;
    font-size: 2rem;
}

/* FILAS */
.fila {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

input,
textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    font-size: 14px;
    background: #f9f9f9;
}

textarea {
    min-height: 120px;
    resize: vertical;
    margin-bottom: 25px;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #18ba53;
    background: #fff;
}

/* BOTÓN */
button {
    background: #056b17;
    color: #fff;
    padding: 14px 30px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #097412;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .contacto {
        flex-direction: column;
    }

    .info,
    .formulario {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .fila {
        flex-direction: column;
    }

    .info h2 {
        font-size: 22px;
    }

    .formulario h1 {
        font-size: 24px;
    }
}


/* ===== FOOTER GENERAL ===== */
.footer {
    background: #0d1b2a;
    color: #ffffff;
    padding: 60px 40px 20px;
    font-family: 'Poppins', sans-serif;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1300px;
    margin: auto;
}

/* ===== COLUMNAS ===== */
.footer-col h3 {
    font-size: 30px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
    font-size: 15px;
}

.footer-col ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primario);
}

/* ===== LOGO + DESCRIPCION ===== */
.footer-logo {
    width: 350px;
    height: 100px;
    margin-bottom: 15px;
}

.footer-col p {
    color: #ddd;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 17px;
}

/* ===== REDES SOCIALES ===== */
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #1b263b;
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    font-size: 22px;
    transition: 0.3s;
}

.footer-social a:hover {
    background: var(--primario);
}

/* ===== CONTACTO ===== */
.contact-info li {
    color: #ddd;
    margin-bottom: 12px;
    font-size: 15px;
}

/* ===== PARTE INFERIOR ===== */
.footer-bottom {
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid var(--gris);
    padding-top: 15px;
    font-size: 22px;
    color: var(--secundario);
}

/* ===== RESPONSIVE ===== */

/* Tablets horizontales */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
        margin-top: 15px;
    }
}

/* Tablets verticales / móviles grandes */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h3 {
        font-size: 18px;
    }

    .footer-col p {
        font-size: 15px;
    }

    .footer-col ul li {
        font-size: 14px;
    }

    .footer-social a {
        width: 35px;
        height: 35px;
        font-size: 15px;
        margin-right: 8px;
    }

    .footer-logo {
        width: 130px;
        margin-bottom: 10px;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .footer {
        padding: 40px 20px 20px;
    }

    .footer-col h3 {
        font-size: 16px;
    }

    .footer-col p {
        font-size: 14px;
    }

    .footer-col ul li {
        font-size: 13px;
    }

    .footer-social a {
        width: 32px;
        height: 32px;
        font-size: 14px;
        margin-right: 6px;
    }

    .footer-bottom {
        font-size: 12px;
    }
}

/* Tablets verticales / móviles grandes */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h3 {
        font-size: 18px;
    }

    .footer-col p {
        font-size: 15px;
    }

    .footer-col ul li {
        font-size: 14px;
    }

    .footer-social a {
        width: 35px;
        height: 35px;
        font-size: 15px;
        margin-right: 8px;
    }

    .footer-logo {
        width: 130px;
        margin-bottom: 10px;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .footer {
        padding: 40px 20px 20px;
    }

    .footer-col h3 {
        font-size: 16px;
    }

    .footer-col p {
        font-size: 14px;
    }

    .footer-col ul li {
        font-size: 13px;
    }

    .footer-social a {
        width: 32px;
        height: 32px;
        font-size: 14px;
        margin-right: 6px;
    }

    .footer-bottom {
        font-size: 12px;
    }
}
