/* ==========================================================================
Reset Styles
- Normalización de estilos por defecto
- Box sizing global
- Reset de elementos básicos
========================================================================== */
@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&family=Work+Sans:wght@100;200&display=swap');

*:where(:not(html, iframe, canvas, img, svg, video, audio):not(svg *, symbol *)) {
    all: unset;
    display: revert;
}

/* Expertos sección */
.expertos-section {
    width: 100%;
    height: 50vh;
    padding: 3.6rem 0 3rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    position: relative;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

a,
button {
    cursor: revert;
}

ol,
ul,
menu {
    list-style: none;
}

img {
    max-inline-size: 100%;
    max-block-size: 100%;
}

table {
    border-collapse: collapse;
}

input,
textarea {
    -webkit-user-select: auto;
    user-select: auto;
}

textarea {
    white-space: revert;
}

meter {
    -webkit-appearance: revert;
    appearance: revert;
}

:where(pre) {
    all: revert;
}

::placeholder {
    color: unset;
}

::marker {
    content: initial;
}

:where([hidden]) {
    display: none;
}

:where([contenteditable]:not([contenteditable="false"])) {
    -moz-user-modify: read-write;
    -webkit-user-modify: read-write;
    overflow-wrap: break-word;
    -webkit-line-break: after-white-space;
    line-break: after-white-space;
    -webkit-user-select: auto;
    user-select: auto;
}

:where([draggable="true"]) {
    -webkit-user-drag: element;
}

:where(dialog:modal) {
    all: revert;
    display: none;
}

/* ==========================================================================
Variables Globales
- Colores principales
- Tipografía
========================================================================== */
:root {

    --color-primary: #7d643f;
    --color-white: #fff;
    --color-black: #000;

    --font-poppins: 'Poppins', sans-serif;
}

html {
    font-size: 10px;
    scroll-behavior: smooth;
}

body {
    background: var(--color-white);
    font-size: 1.4rem;
    line-height: 1;
    color: var(--color-black);
    font-family: var(--font-poppins);
    font-weight: 400;
    overflow-x: hidden;
    overflow-y: auto;
    height: 100%;
    /* Scrollbar personalizado 
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) #ededed;*/
}

/* Scrollbar para navegadores Webkit 
::-webkit-scrollbar {
    width: 8px;
    background: #ededed;
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 8px;
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: #a88a5c;
}

::-webkit-scrollbar-track {
    background: #ededed;
    border-radius: 8px;
}*/

a {
    color: var(--color-black);
    text-decoration: none;
    cursor: pointer;

    &:hover,
    &:focus {
        color: var(--color-black);
        text-decoration: none;
        outline: 0;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.1;
    font-family: var(--font-poppins);
    font-weight: normal;
}

strong,
b {
    font-weight: bold;
}

p:last-child {
    margin-bottom: 0 !important;
}

/* Botón Volver Arriba */
#scrollToTopBtn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 999;
    background: var(--color-black);
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

#scrollToTopBtn.show {
    opacity: 1;
    pointer-events: auto;
}

#scrollToTopBtn svg {
    width: 24px;
    height: 24px;
}

/* Header */
.header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 10rem;
}

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 200;
}

.menu-icon,
.close-icon {
    width: 32px;
    height: 32px;
    display: block;
}

.menu-icon {
    background: url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/icons/list.svg') center/contain no-repeat;
}

.close-icon {
    background: url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/icons/x.svg') center/contain no-repeat;
    display: none;
}

.nav.open~.menu-toggle .menu-icon {
    display: none !important;
}

.nav.open~.menu-toggle .close-icon {
    display: block !important;
}

.logo img {
    width: 17.3rem;
    height: 9rem;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo.shrink img {
    width: 9.6rem;
    height: 5rem;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 3rem;
    margin: 0;
    padding: 0;
}

.nav a {
    text-decoration: none;
    color: var(--color-black);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: .3rem;
    transition: color 0.2s;
}

.nav a.active {
    color: var(--color-primary);
    font-weight: 600;
}

.nav a:hover {
    color: var(--color-primary);
}

.header-contact a {
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--color-black);
}

.header-contact a:hover {
    color: var(--color-primary);
}

/* Hero */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-black);
}

.hero-bg {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100vh;
    padding: 0;
}

.hero-black-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 25%;
    height: 100%;
    background: #000;
    z-index: 1;
}

.hero-years {
    position: relative;
    z-index: 2;
    padding-top: 1rem;
    padding-left: 12%;
}

.hero-years-img {
    width: 63.3rem;
    height: 17.4rem;
    background: #000;
}

/* Main Icons */
.main-icons {
    width: 100%;
    height: 50vh;
    background: #000;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6rem;
    padding: 4.8rem 0 3.6rem 0;
}

.icon-item {
    text-align: center;
    max-width: 26.5rem;
}

.icon-item img {
    width: 11.6rem;
    height: 11.6rem;
    margin-bottom: 2rem;
}

.icon-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.icon-item p {
    font-size: 2.7rem;
    font-weight: 400;
    margin: 0;
}

/* Expertos sección */
.expertos-section {
    width: 100%;
    height: 50vh;
    padding: 3.6rem 0 3rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    position: relative;
}

.expertos-bg {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    max-width: 90rem;
    margin: 0 auto;
}

.expertos-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.icon-key {
    width: 10.7rem;
    height: 22rem;
}

.expertos-text {
    color: var(--color-white);
    font-size: 3.2rem;
    font-weight: 700;
    padding: 3rem 2rem 3rem 2rem;
    border: 0.3rem solid var(--color-white);
}

/* Valores sección */
.valores-section {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    background: #ededed;
    padding: 0;
    overflow: hidden;
}

.valores-img {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}

.valores-img img {
    width: 100%;
    height: 76rem;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
}

.valores-content {
    background: #ededed;
    padding: 4rem 4rem 6rem 10rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
    max-width: 800px;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.valores-content h2 {
    margin-top: 0;
    font-size: 4.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
}

.valores-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.valores-content li {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.valores-content li i {
    color: var(--color-black);
    font-size: 3.6rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.valores-content li:hover i {
    transform: scale(1.05);
}

/* Mapa sección */
.mapa-section {
    background: var(--color-white);
    text-align: center;
    padding: 3.6rem 0 3.6rem 0;
}

.mapa-section h3 {
    font-size: 3.6rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.mapa-img img {
    width: auto;
    height: 48rem;
    max-width: 100vw;
}

/* Productos sección */
.productos-section {
    background: var(--color-white);
    padding: 4.5rem 0 0 0;
    text-align: center;
}

.productos-section h2 {
    font-size: 4.5rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
}

.productos-list {
    display: flex;
    justify-content: center;
    gap: .5rem;
    flex-wrap: wrap;
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.producto-item {
    background: var(--color-white);
    padding: 18px 16px 12px 16px;
    width: calc(25% - 1rem);
    min-width: 26.5rem;
    text-align: center;
}

.producto-item img {
    object-fit: cover;
    margin-bottom: 1rem;
}

.producto-item h4 {
    font-size: 3.2rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.producto-item p {
    font-size: 1.6rem;
    font-weight: 400;
    margin: 0;
}

/* Clientes sección */
.clientes-section {
    background: var(--color-white);
    padding: 60px 0 120px 0;
    text-align: center;
}

.clientes-section h2 {
    font-size: 4.5rem;
    font-weight: 600;
    margin-bottom: 4rem;
}

.clientes-logos {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 3rem;
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.clientes-logos img {
    width: 100%;
    height: auto;
    max-width: 16rem;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.clientes-logos img:hover {
    transform: scale(1.05);
}

/* Alianza sección */
.alianza-section {
    background: #ededed;
    padding: 6rem 0 6rem 0;
    text-align: center;
    margin-top: 10rem;
    margin-bottom: 10rem;
}

.alianza-content h3 {
    font-size: 3.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.alianza-content a {
    color: var(--color-black);
    font-size: 3.2rem;
    font-weight: 600;
    text-decoration: underline;
}

/* Estilos para la sección de propiedades */
.properties-section {
    padding: 5rem 0;
    text-align: center;
    background-color: var(--color-white);
}

.properties-section h1 {
    margin-bottom: 3rem;
    color: var(--color-black);
    font-size: 4.5rem;
    font-weight: 600;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(35rem, 1fr));
    gap: 4rem;
    padding: 2rem;
    max-width: 120rem;
    margin: 0 auto;
}

.property-card {
    background: var(--color-white);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.property-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-content {
    padding: 2.5rem;
}

.property-content h2 {
    margin: 0;
    color: var(--color-black);
    font-size: 1.5em;
    font-weight: 700;
}

/* Single Propiedad Styles */
.single-property-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2.4rem;
}

.single-property-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.single-property-image {
    width: 100%;
    aspect-ratio: 1.2/1;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.5s cubic-bezier(.4, 0, .2, 1);
}

.single-property-title {
    font-size: 2.7rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--color-black);
}

.single-property-desc {
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--color-black);
    line-height: 1.7;
}

.single-property-content {
    padding-top: 1.2rem;
}

/* Estilos para la sección de contacto */
.contact-section {
    padding: 6rem 0;
    background-color: var(--color-white);
    min-height: calc(100vh - 12rem);
    display: flex;
    align-items: center;
}

.contact-container {
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.contact-info {
    padding-top: 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.info-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}

.icon-circle {
    width: 5rem;
    height: 5rem;
    background-color: var(--color-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-item i {
    font-size: 2rem;
    color: var(--color-white);
}

.info-text {
    font-size: 2.7rem;
    font-weight: 500;
    color: var(--color-black);
    margin: 0;
}

.social-icons {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.social-icon-circle {
    width: 6.5rem;
    height: 6.5rem;
    background-color: var(--color-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon-circle i {
    font-size: 2.8rem;
    color: var(--color-white);
}

.social-icon-circle:hover {
    transform: translateY(-3px);
    background-color: var(--color-primary);
}

.contact-form {
    width: 100%;
    max-width: 60rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group textarea {
    width: 100%;
    height: 15rem;
    padding: 15px;
    border: 1px solid #ededed;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: 600;
    resize: none;
    margin-bottom: 2rem;
    background-color: #f5f5f5;
    transition: all 0.3s ease;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ededed;
    border-radius: 8px;
    font-size: 1.5rem;
    font-weight: 600;
    background-color: #f5f5f5;
    transition: all 0.3s ease;
}

.form-group textarea:focus,
.form-row input:focus {
    border-color: var(--color-primary);
    outline: none;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.submit-btn {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.3rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 30%;
    font-weight: 700;
    text-transform: uppercase;
}

.submit-btn:hover {
    color: var(--color-primary);
}

.error-message {
    color: #d32f2f;
    font-size: 1.2rem;
    margin-top: 2px;
    margin-left: 2px;
    margin-bottom: 2px;
    display: block;
    letter-spacing: 0.02em;
    min-height: 16px;
}

/* Estilos para la página de Servicios */
.services-hero {
    position: relative;
    min-height: calc(100vh - 60rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem;
    background: url('../images/banner-servicios-.webp') center/cover no-repeat;
}

.services-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
}

.services-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
    max-width: 120rem;
    margin: 0 auto;
}

.service-item {
    text-align: center;
    color: var(--color-white);
    padding: 2rem;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-1rem);
}

.service-icon {
    width: 12rem;
    height: 12rem;
    margin: 0 auto 2rem;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.service-item h3 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.service-item p {
    font-size: 2.7rem;
    font-weight: 400;
    line-height: 1;
    opacity: 0.9;
}

/* Estilos página Nosotros */
.mission-vision-section {
    padding: 80px 20px;
    background: #fff;
}

.mission-container,
.vision-container {
    max-width: 120rem;
    margin: 0 auto 6rem auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.mission-content,
.vision-content {
    padding: 2rem;
}

.mission-content h2,
.vision-content h2 {
    font-size: 3.6rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--color-black);
    position: relative;
}

.mission-content p,
.vision-content p {
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--color-black);
    margin-bottom: 1.5rem;
}

.mission-img,
.vision-img {
    position: relative;
    height: 35rem;
    overflow: hidden;
}

.mission-img img,
.vision-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Estilos para la sección del equipo */
.team-section {
    position: relative;
    padding: 8rem 2rem;
    background: var(--color-white);
    overflow: hidden;
}

/* Swiper slider para equipo */
.team-swiper {
    width: 100%;
    padding-bottom: 4rem;
}

.team-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: stretch;
    height: auto;
}

.team-swiper .team-member {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.swiper-pagination {
    display: none !important;
    bottom: 0;
}

.swiper-button-next,
.swiper-button-prev {
    display: none !important;
    color: var(--color-primary);
}

.team-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/fondo-testimonios-1.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.9;
    z-index: 1;
}

.team-container {
    position: relative;
    max-width: 120rem;
    margin: 0 auto;
    z-index: 2;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.team-member {

    background: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    padding: 8rem 3rem;
    text-align: center;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(5px);
}

.team-member:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
}

.team-member img {
    width: 15rem;
    height: 15rem;
    border-radius: 50%;
    margin-bottom: 2rem;
    object-fit: cover;
}

.team-member h3 {
    font-size: 2.5rem;
    color: var(--color-black);
    margin-top: 1rem;
    font-weight: 600;
}

.team-rating {
    margin: 1.6rem 0 1.2rem 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.team-rating .star {
    font-size: 2.8rem;
    color: #e2d6c2;
    opacity: 0.6;
    transition: color 0.2s;
}

.team-rating .star.filled {
    color: #FFD700;
    opacity: 1;
}

.team-member p {
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--color-black);
    line-height: 1.2;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mission-container,
.vision-container,
.team-member {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Estilos del Footer */
.footer {
    background: var(--color-black);
    padding: 12rem 2rem;
    color: var(--color-white);
}

.footer-content {
    max-width: 120rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 4rem;
    align-items: center;
}

.footer-logo {
    padding-right: 2rem;
}

.footer-logo img {
    width: 17.3rem;
    height: 9rem;
    /*filter: brightness(0) invert(1);*/
    transition: opacity 0.3s ease;
}

.footer-logo img:hover {
    opacity: 0.8;
}

.footer-contact {
    text-align: center;
}

.footer-contact h4 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.footer-contact p {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-white);
}

.footer-social {
    margin-top: 2rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.footer-social a {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-black);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #ededed;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.footer-social i {
    font-size: 1.8rem;
}

.footer-email {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-email i {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-black);
    transition: all 0.3s ease;
}

.footer-email span {
    font-size: 1.6rem;
    font-weight: 400;
}

.footer-email a {
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-email a:hover {
    color: var(--color-primary);
}

/* --- Iconos menú hamburguesa/cerrar --- */
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 200;
}

.menu-icon,
.close-icon {
    width: 32px;
    height: 32px;
    display: block;
}

.menu-icon {
    background: url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/icons/list.svg') center/contain no-repeat;
}

.close-icon {
    background: url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/icons/x.svg') center/contain no-repeat;
    display: none;
}

.nav.open~.menu-toggle .menu-icon {
    display: none !important;
}

.nav.open~.menu-toggle .close-icon {
    display: block !important;
}

/* ==========================================================================
    Responsive
    - Adjust font sizes and layout for different screen widths
========================================================================== */
@media (width < 1920px) {
    html {
        font-size: 12px;
    }
}

@media (width < 1800px) {
    html {
        font-size: 10px;
    }
}

@media (width < 1600px) {
    html {
        font-size: 9.5px;
    }
}

@media (width < 1400px) {
    html {
        font-size: 9px;
    }
}

@media (width < 1200) {
    html {
        font-size: 9px;
    }
}

@media (width < 992px) {
    html {
        font-size: 8.5px;
    }

    .header-contact {
        display: none !important;
    }

    .nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .nav ul {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .nav ul li {
        width: 100%;
        text-align: center;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        max-width: 600px;
        gap: 40px;
    }

    .contact-info {
        padding-top: 0;
    }

    .contact-details {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .info-text {
        font-size: 2rem !important;
    }

    .submit-btn {
        width: 100%;
        text-align: center !important;
    }
}

@media (width < 768px) {
    html {
        font-size: 8.5px;
    }

    .nav {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100vw;
        background: var(--color-white);
        box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s;
        z-index: 150;
    }

    .nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
        top: 0;
    }

    .nav ul {
        flex-direction: column;
        gap: 4.2rem;
        align-items: flex-start;
        padding: 2rem 1.5rem;
        margin: 0;
    }

    .nav {
        order: 3;
    }

    .nav a {
        font-size: 1.6rem;
        padding: 0.5rem 0;
    }

    .header-bar {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        padding: 1rem 1.5rem;
        gap: 0;
        position: relative;
    }

    .menu-toggle {
        display: flex;
        /* Mostrar en móvil */
        position: absolute;
        left: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
        margin-right: 0;
        order: 1;
    }

    .logo {
        order: 2;
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .logo img {
        width: 11rem;
        height: 5.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .service-item {
        max-width: 40rem;
        margin: 0 auto;
    }

    .service-icon {
        width: 10rem;
        height: 10rem;
    }

    .service-item h3 {
        font-size: 2.2rem;
    }

    .service-item p {
        font-size: 1.5rem;
    }

    .mission-content,
    .vision-content {
        text-align: center;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .team-member {
        max-width: 400px;
        margin: 0 auto;
    }

    .single-property-grid {
        grid-template-columns: 1fr;
        gap: 3.2rem;
    }

    .single-property-image {
        aspect-ratio: 1.5/1;
        min-height: 22rem;
    }

    .header-contact {
        display: none !important;
    }

    .mission-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 2rem !important;
    }

    .mission-img {
        width: 100% !important;
        margin-bottom: 1.5rem !important;
        order: 1 !important;
    }

    .mission-content {
        width: 100% !important;
        order: 2 !important;
        padding: 1.5rem 1rem !important;
    }

    .vision-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 2rem !important;
    }

    .vision-img {
        width: 100% !important;
        margin-bottom: 1.5rem !important;
        order: 1 !important;
    }

    .vision-content {
        width: 100% !important;
        order: 2 !important;
        padding: 1.5rem 1rem !important;
    }

    .clientes-logos {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
        padding: 0 1rem !important;
    }

    .clientes-logos img {
        max-width: 100px;
        margin: 0 auto;
    }

    .valores-section {
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    .valores-img {
        width: 100%;
        height: 41.2rem;
        margin-bottom: 2rem;
    }

    .valores-content {
        width: 100%;
        padding: 2rem 1rem;
        box-shadow: none;
    }

    .valores-content h2 {
        font-size: 3rem !important;
        text-align: center;
    }

    .valores-content li {
        font-size: 1.6rem !important;
    }

    .main-icons {
        flex-direction: column;
        gap: 2.5rem;
        align-items: center;
        height: auto !important;
        padding: 6rem 0 6rem 0;
    }

    .icon-item {
        max-width: 90vw;
        width: 100%;
    }

    .mapa-section h3 {
        padding: 4rem;
        font-size: 2.6rem !important;
    }

    .mapa-img img {
        margin-left: - -6rem !important;
        height: 100% !important;
        width: 41.2rem !important;
        
    }

    .producto-item {
        width: 100% !important;
    }

    .menu-toggle {
        display: block;
    }

    .contact-section {
        padding: 40px 0;
    }

    .contact-container {
        padding: 0 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .info-item {
        width: 100%;
        justify-content: flex-start;
    }

    .header-contact {
        margin-top: 1rem;
        width: 100%;
        text-align: left;
    }

    .hero {
        height: 75vh;
    }

    .hero-years-img {
        height: 12rem;
        width: auto;
    }

    .productos-section h2 {
        font-size: 3rem !important;
    }

    .clientes-section h2 {
        font-size: 3rem !important;
    }

    .alianza-content h3 {
        font-size: 2rem;
    }

    .alianza-content a {
        font-size: 2rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .team-member {
        max-width: 40rem;
        margin: 0 auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-logo {
        padding-right: 0;
        display: flex;
        justify-content: center;
    }

    .footer-email {
        justify-content: center;
    }

    .expertos-section {
        flex-direction: column;
        height: auto;
        padding: 4rem 0 4rem 0;
    }

    .expertos-bg {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        width: 100%;
    }

    .icon-key {
        margin-bottom: 2rem;
    }

    .expertos-text {
        padding: 2rem 1rem;
        border-width: 2px;
        margin: 4rem;
        font-size: 3.6rem;
        text-align: center;
    }

    .properties-section h1 {
        font-size: 3rem;
    }

    .hero-black-overlay {
        width: 35% !important;
    } 
    .hero-years {
        padding-left: 5% !important;
    }

    .social-icons {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

}