body{
    margin: 0;
    padding: 0;
    background: #f4f6f9;
    font-family: Arial, Helvetica, sans-serif;
    color: #333;

    background-image: url("../img/fondo.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
/* =========================================================
   HEADER PRINCIPAL
   OPORTUNIDADES INMOBILIARIAS MARTORELL
========================================================= */

.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;
    height: 150px;

    padding: 0 60px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    box-sizing: border-box;

    background: linear-gradient(
        135deg,
        #003366,
        #0059b3
    );

    box-shadow: 0 8px 25px rgba(0, 0, 0, .20);
}


/* =========================================================
   LOGO
========================================================= */

.logo {
    display: flex;
    align-items: center;

    flex-shrink: 0;
}

.logo img {
    width: 450px;
    height: auto;

    display: block;

    transition: .4s ease;
}


/* Efecto del logo */

.logo img:hover {
    transform: scale(1.05);
}


/* =========================================================
   MENÚ PRINCIPAL
========================================================= */

.main-header nav {
    display: block;
}

.main-header nav ul {
    display: flex;
    align-items: center;

    gap: 0;

    list-style: none;

    margin: 0;
    padding: 0;
}


/* =========================================================
   ELEMENTOS DEL MENÚ
========================================================= */

.main-header nav ul li {
    list-style: none;

    display: flex;
    align-items: center;
}


/* =========================================================
   BARRAS VERTICALES ENTRE OPCIONES
========================================================= */

.main-header nav ul li:not(:last-child)::after {
    content: "";

    display: block;

    width: 1px;
    height: 22px;

    background: rgba(255, 255, 255, .5);
}


/* =========================================================
   ENLACES DEL MENÚ
========================================================= */

.main-header nav ul li a {
    display: block;

    padding: 10px 18px;

    color: white;

    font-size: 15px;
    font-weight: bold;

    text-decoration: none;

    border-radius: 40px;

    transition: .35s ease;

    letter-spacing: .5px;

    white-space: nowrap;
}


/* =========================================================
   EFECTO HOVER
========================================================= */

.main-header nav ul li a:hover {
    background: white;

    color: #004080;

    transform: translateY(-4px);

    box-shadow:
        0 8px 18px rgba(255, 255, 255, .25);
}


/* =========================================================
   ENLACE ACTIVO / FOCUS
========================================================= */

.main-header nav ul li a:focus {
    background: #ffffff;

    color: #004080;

    outline: none;
}


/* =========================================================
   BOTÓN PROPIEDADES
   COLOR ESPECIAL
========================================================= */

.main-header nav ul li a[href*="resultadoBusqueda"]:hover {
    background: #cabb11;

    color: white;

    transform: translateY(-4px);

    box-shadow:
        0 8px 18px rgba(0, 0, 0, .25);
}


/* =========================================================
   BOTÓN MENÚ HAMBURGUESA
========================================================= */

.menu-toggle {
    display: none;

    background: transparent;

    border: none;

    color: white;

    font-size: 32px;

    cursor: pointer;

    padding: 5px;

    transition: .3s ease;
}


/* Hover del botón */

.menu-toggle:hover {
    color: #ffd700;

    transform: scale(1.1);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .main-header {
        height: 120px;

        padding: 0 35px;
    }

    .logo img {
        width: 330px;
    }

    .main-header nav ul li a {
        padding: 9px 12px;

        font-size: 14px;
    }

}


/* =========================================================
   TABLET PEQUEÑA
========================================================= */

@media (max-width: 900px) {

    .main-header {
        height: 100px;

        padding: 0 25px;
    }

    .logo img {
        width: 260px;
    }

    .main-header nav ul li a {
        padding: 8px 9px;

        font-size: 13px;
    }

}


/* =========================================================
   CELULAR
========================================================= */

@media (max-width: 768px) {

    .main-header {

        position: sticky;
        top: 0;

        width: 100%;

        height: 90px;

        padding: 15px 20px;

        box-sizing: border-box;
    }


    /* -------------------------
       LOGO
    ------------------------- */

    .logo img {
        width: 180px;

        max-width: 100%;

        height: auto;
    }


    /* -------------------------
       BOTÓN HAMBURGUESA
    ------------------------- */

    .menu-toggle {

        display: block;

        font-size: 32px;

        z-index: 1002;
    }


    /* -------------------------
       MENÚ LATERAL
    ------------------------- */

    .main-header nav {

        position: fixed;

        top: 0;

        right: -100%;

        width: 280px;

        max-width: 85vw;

        height: 100vh;

        padding-top: 100px;

        box-sizing: border-box;

        background: #003366;

        transition: right .35s ease;

        z-index: 1001;

        box-shadow:
            -10px 0 30px rgba(0, 0, 0, .30);

        overflow-y: auto;
    }


    /* -------------------------
       MENÚ ABIERTO
    ------------------------- */

    .main-header nav.active {
        right: 0;
    }


    /* -------------------------
       LISTA
    ------------------------- */

    .main-header nav ul {

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        width: 100%;
    }


    /* -------------------------
       ELEMENTOS
    ------------------------- */

    .main-header nav ul li {

        width: 100%;

        display: block;
    }


    /* -------------------------
       QUITAR BARRAS VERTICALES
    ------------------------- */

    .main-header nav ul li:not(:last-child)::after {

        display: none;
    }


    /* -------------------------
       ENLACES
    ------------------------- */

    .main-header nav ul li a {

        display: block;

        width: 100%;

        padding: 18px 30px;

        box-sizing: border-box;

        text-align: left;

        border-radius: 0;

        border-bottom:
            1px solid rgba(255, 255, 255, .12);

        font-size: 18px;

        white-space: normal;
    }


    /* -------------------------
       HOVER CELULAR
    ------------------------- */

    .main-header nav ul li a:hover {

        background: #0059b3;

        color: white;

        transform: none;

        box-shadow: none;
    }


    /* -------------------------
       FOCUS CELULAR
    ------------------------- */

    .main-header nav ul li a:focus {

        background: #0059b3;

        color: white;
    }

}


/* =========================================================
   CELULARES PEQUEÑOS
========================================================= */

@media (max-width: 480px) {

    .main-header {

        height: 80px;

        padding: 12px 15px;
    }


    .logo img {

        width: 155px;
    }


    .menu-toggle {

        font-size: 29px;
    }


    .main-header nav {

        width: 260px;

        padding-top: 85px;
    }


    .main-header nav ul li a {

        padding: 17px 25px;

        font-size: 17px;
    }

}
/* =========================================================
   FOOTER
   OPORTUNIDADES INMOBILIARIAS MARTORELL
========================================================= */

footer {
    width: 100%;

    background: linear-gradient(
        135deg,
        #00264d,
        #004080
    );

    color: white;

    padding: 50px 20px 25px;

    margin-top: 80px;

    text-align: center;

    box-sizing: border-box;
}


/* =========================================================
   ENLACES DE REDES / WHATSAPP
========================================================= */

.social-links {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 25px;

    flex-wrap: wrap;

    margin-bottom: 30px;
}


/* =========================================================
   BOTONES DE CONTACTO
========================================================= */

.social-links a {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    min-width: 230px;

    padding: 15px 25px;

    background: rgba(255, 255, 255, .10);

    color: white;

    text-decoration: none;

    font-size: 17px;

    font-weight: bold;

    border-radius: 50px;

    transition: .35s ease;

    border: 1px solid rgba(255, 255, 255, .15);

    box-sizing: border-box;
}


/* =========================================================
   ICONO WHATSAPP
========================================================= */

.social-links i {

    font-size: 28px;

    color: #eaeeec;

    transition: .35s ease;
}


/* =========================================================
   EFECTO HOVER
========================================================= */

.social-links a:hover {

    background: #25D366;

    color: white;

    transform: translateY(-5px);

    box-shadow:
        0 15px 30px rgba(37, 211, 102, .35);
}


/* Cambiar color del icono */

.social-links a:hover i {

    color: white;
}


/* =========================================================
   TEXTO COPYRIGHT
========================================================= */

footer p {

    margin: 25px 0 0;

    padding-top: 20px;

    font-size: 15px;

    color: #d8d8d8;

    border-top:
        1px solid rgba(255, 255, 255, .20);

    line-height: 1.6;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 768px) {

    footer {

        padding: 40px 20px 25px;

        margin-top: 60px;
    }


    .social-links {

        flex-direction: column;

        gap: 15px;

        margin-bottom: 25px;
    }


    .social-links a {

        width: 90%;

        max-width: 400px;

        min-width: 0;

        justify-content: center;

        padding: 14px 20px;

        font-size: 16px;
    }


    .social-links i {

        font-size: 25px;
    }


    footer p {

        font-size: 14px;

        padding-top: 18px;

        margin-top: 20px;
    }

}


/* =========================================================
   CELULAR
========================================================= */

@media (max-width: 550px) {

    footer {

        padding: 35px 15px 20px;

        margin-top: 50px;
    }


    .social-links {

        width: 100%;

        gap: 12px;

        margin-bottom: 20px;
    }


    .social-links a {

        width: 100%;

        max-width: 100%;

        padding: 14px 15px;

        font-size: 15px;

        border-radius: 40px;
    }


    .social-links i {

        font-size: 23px;
    }


    footer p {

        font-size: 13px;

        line-height: 1.5;

        padding-top: 15px;

        margin-top: 15px;
    }

}


/* =========================================================
   CELULARES MUY PEQUEÑOS
========================================================= */

@media (max-width: 380px) {

    footer {

        padding-left: 12px;

        padding-right: 12px;
    }


    .social-links a {

        padding: 13px 10px;

        font-size: 14px;

        gap: 8px;
    }


    .social-links i {

        font-size: 21px;
    }


    footer p {

        font-size: 12px;
    }

}

/* Facebook */
.social-links a[aria-label="Facebook"]:hover{
background:#1877F2;
box-shadow:0 15px 30px rgba(24,119,242,.35);
}

/* TikTok */
.social-links a[aria-label="TikTok"]:hover{
background:#141414;
box-shadow:0 15px 30px rgba(0,0,0,.35);
}

/* Iconos */
.fa-facebook-f{
color:#1877F2;
}

.fa-tiktok{
color:#0e0d0d;
}
/* ==========================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================== */

.whatsapp-flotante {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 60px;
    height: 60px;

    background-color: #25D366;
    color: white;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    font-size: 32px;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);

    z-index: 9999;

    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}


/* EFECTO AL PASAR EL MOUSE */

.whatsapp-flotante:hover {

    transform: scale(1.10);

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);

}

/* ==========================
NOSOTROS
========================== */

.nosotros-contenedor{
max-width: 1100px;
margin: 60px auto;
padding: 50px;
background: rgba(255,255,255,0.95);
border-radius: 20px;
box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

.nosotros-contenedor h1{
text-align: center;
color: #003366;
font-size: 42px;
margin-bottom: 30px;
}

.nosotros-contenedor h2{
color: #0059b3;
margin-top: 35px;
margin-bottom: 15px;
}

.nosotros-contenedor p{
font-size: 18px;
line-height: 1.8;
text-align: justify;
}

.nosotros-contenedor ul{
padding-left: 25px;
}

.nosotros-contenedor ul li{
margin-bottom: 12px;
font-size: 18px;
line-height: 1.6;
}

@media(max-width:768px){

.nosotros-contenedor{
margin: 30px 20px;
padding: 30px;
}

.nosotros-contenedor h1{
font-size: 32px;
}

.nosotros-contenedor p,
.nosotros-contenedor ul li{
font-size: 16px;
}
}
/* ==========================================
NUESTROS VALORES
========================================== */

.valores-section{
max-width: 1200px;
margin: 70px auto;
padding: 0 20px;
}

.valores-section h2{
text-align: center;
color: #003366;
font-size: 40px;
margin-bottom: 50px;
}

/* 3 arriba y 2 abajo */
.valores-grid{
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: 25px;
}

.valor-card{
background: rgba(255,255,255,0.95);
padding: 30px;
border-radius: 20px;
text-align: center;
box-shadow: 0 10px 25px rgba(0,0,0,.12);
transition: .3s ease;
}

.valor-card:hover{
transform: translateY(-8px);
box-shadow: 0 15px 35px rgba(0,0,0,.18);
}

/* 3 tarjetas de arriba */
.valor-card:nth-child(1),
.valor-card:nth-child(2),
.valor-card:nth-child(3){
grid-column: span 2;
}

/* 2 tarjetas de abajo centradas */
.valor-card:nth-child(4){
grid-column: 2 / span 2;
}

.valor-card:nth-child(5){
grid-column: 4 / span 2;
}

.valor-card i{
font-size: 55px;
color: #dfbe07; /* NARANJA */
margin-bottom: 15px;
}

.valor-card h3{
color: #003366;
margin-bottom: 12px;
}

.valor-card p{
color: #555;
line-height: 1.6;
text-align: center;
}

/* RESPONSIVE */

@media(max-width:768px){

.valores-grid{
grid-template-columns: 1fr;
}

.valor-card:nth-child(1),
.valor-card:nth-child(2),
.valor-card:nth-child(3),
.valor-card:nth-child(4),
.valor-card:nth-child(5){
grid-column: auto;
}

.valores-section h2{
font-size: 30px;
}
}