/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --red: #c60000;
    --red-oscuro: #9e0404;
    --naranja: #FF8C00;
    --black: #000000;
    --grafito-light: #aba9a9;
    --texto-grey: #888787;
    --grey: #646766;
    --light-grey: #f5f5f5;
    --white: #ffffff;
    /* Spacing */
    --padding-global: 2rem;
    --margin-global: 2rem;
}

/* Tipografía y colores */
html { 
    font-size: clamp(1rem, 1vw + 0.5rem, 1.125rem); 
}
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--black);
    line-height: 1.7;
    overflow-x: hidden;
}

p {
    color: var(--black);
    margin: 0.5rem 0;
    font-weight: 400; /* Mobile-first: párrafos más delgados */
}

@media (min-width: 1024px) {
    p {
        font-weight: 300; /* Desktop: mantener peso normal */
    }
}

h1,
h2,
h3,
h4 {
    font-family: 'Roboto', serif;
    font-weight: 400;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: var(--naranja);
    transition: color 0.3s;
}

a:hover {
    color: var(--red);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.nav-container {
    max-width: 1400px;
    display: flex;
    margin: 0 auto;
    padding: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.logo {
    font-size: 1.4rem;
    font-family: 'Playfair Display', serif;
    color: var(--black);
    letter-spacing: 2px;
    padding: 0;
}

.logo img {
    height: 100px;
    padding: 5px 0;
    vertical-align: middle;

}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 2px;
    background: var(--black);
    transition: all 0.3s;
}

.hamburger.activo span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.activo span:nth-child(2) {
    opacity: 0;
}

.hamburger.activo span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--grey);
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
}

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

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--red);
    transition: width 0.3s;
}

.nav-links a:hover::before {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: calc(100svh - 115px);
    /* altura real menos el nav */
    height: auto;
    padding: clamp(6rem, 12vh, 10rem) 0 4rem;
    margin-top: 115px;
    /* exactamente la altura del nav */
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
}

.hero-content {
    max-width: 1000px;
    text-align: center;
    color: var(--white);
    padding: 0 2rem;
    position: relative;
    z-index: 3;
}

.hero h1 {
    font-size: clamp(2rem, 7vw, 4.5rem);
    margin-bottom: 1.5rem;
    font-weight: 300;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

/* Buttons */
.btn-primary {
    background: rgba(198, 0, 0, 0.3);
    color: var(--white);
    padding: 1rem 3rem;
    border: 1px solid var(--red);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.btn-primary:hover {
    background: #a00000;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(198, 0, 0, 0.3);
    color: var(--white);
    border: none;

}
.btn-primary-clean {
    background: var(--red);
    color: var(--white);
    padding: 1rem 3rem;
    border: 1px solid var(--red);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.btn-primary-clean:hover {
    background: #a00000;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(198, 0, 0, 0.3);
    color: var(--white);
    border: none;

}

.btn-secondary {
    background: transparent;
    color: var(--white);
    padding: 1rem 3rem;
    border: 1px solid var(--white);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: var(--white);
    transform: translateY(-2px);
    border: none;
    color: var(--red);
    box-shadow: 0 10px 25px rgba(186, 185, 185, 0.3);
}

/* Contact Bar */
.contact-bar {
    background: var(--black);
    color: var(--white);
    padding: 2rem 0;
}

.contact-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.contact-item {
    text-align: center;
    padding: 1rem;
}

.contact-item strong {
    color: var(--red);
    display: block;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-item p {
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--light-grey);
}

/* Sections generales */
section {
    padding: 6rem 3rem;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: var(--black);
}

.section-subtitle {
    color: var(--grey);
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
}

.divider {
    width: 80px;
    height: 2px;
    background: var(--red);
    margin: 1.5rem auto;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.service-card {
    background: var(--white);
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid #e5e5e5;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--red);
}

.service-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    /* Mantiene 16:9 automáticamente */
    overflow: hidden;
    position: relative;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}


.service-card:hover .service-image {
    transform: scale(1.08);
}

.service-content {
    padding: 2.5rem;
}

.service-content h4 {
    color: var(--black);
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.service-content p {
    color: var(--black);
    line-height: 1.9;
    font-weight: 300;
}

/* ===== VIDEO SECTION ===== */
.video-section {
    padding: var(--margin-global);
    background: var(--color-light);
}

.video-container {
    max-width: 1000px;
    margin: 2rem auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

/* Why Choose Section */
.why-section {
    background: var(--light-grey);
}

.why-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start
}

.why-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    /* TRANSICIÓN SUAVE (lo clave que faltaba) */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Origen del zoom: centro de la imagen */
    transform-origin: center center;
}

.why-image:hover {
    transform: scale(1.15);
    /* Más sutil que 1.4 */
}

/* Opcional: sombra para efecto premium */
.why-image:hover {
    transform: scale(1.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.why-text h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--black);
}

.why-text p {
    color: var(--black);
    margin-bottom: 1.5rem;
    line-height: 1.9;
    font-weight: 300;
}

/* Stats */
.stats-section {
    background: var(--black);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    text-align: center;
}

.stat-number {
    font-size: 4rem;
    font-weight: 300;
    color: var(--red);
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--grey);
    margin-top: 0.5rem;
}

/* Benefits */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.benefit-card {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--white);
    border: 1px solid #e5e5e5;
    transition: all 0.3s;
}

.benefit-card:hover {
    border-color: var(--red);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

}
.benefit-card:hover h4 {
    color: var(--red);
    transition: color 0.3s ease;

}
.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border: 2px solid var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.benefit-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--black);
}

.benefit-card p {
    color: var(--black);
    line-height: 1.8;
    font-weight: 300;
}

/* Incentives */
.incentives-section {
    background: var(--light-grey);
    max-width: 100%;
    margin: 0 auto;
}

.incentives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.incentive-card {
    position: relative;
    height: 450px;
    overflow: hidden;
    cursor: pointer;
}

.incentive-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.incentive-card:hover .incentive-image {
    transform: scale(1.1);
}

.incentive-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.7), transparent);
    color: var(--white);
    padding: 2.5rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.incentive-card:hover .incentive-overlay {
    transform: translateY(0);
}

.incentive-overlay h4 {
    color: var(--white);
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.incentive-overlay p {
    font-weight: 300;
    line-height: 1.7;
    color: var(--white);
}

/* Footer */
footer {
    background: var(--black);
    color: var(--white);
    padding: 4rem 3rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--red);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: var(--white);
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 300;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--red);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: var(--grey);
    font-size: 0.9rem;
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

/* Responsive */
@media (max-width: 1024px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 300px;
        background: var(--white);
        flex-direction: column;
        gap: 2rem;
        padding: 6rem 2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease;
    }

    .nav-links.activo {
        right: 0;
    }

    .nav-links a::before {
        display: none;
    }

   

}

@media (max-width: 1280px) {
     .why-content {
        grid-template-columns: 1fr;
    }

    .hero {
        height: 70vh;
    }
}

section {
    padding: 4rem 2rem;
}

.nav-container,
.contact-grid,
.container {
    padding-left: 2rem;
    padding-right: 2rem;
}



/* Wrapper del botón */
.btn-wrapper {
    margin-top: auto;
}


/* Iconos en los datos */
.propiedad-dato-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.propiedad-dato-item i {
    color: var(--red);
    font-size: 1rem;
}

/* Sin resultados */
.no-propiedades {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--grey);
}

.no-propiedades h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--black);
}

/* ==========================================================================
   RESPONSIVE - Tablet (768px+)
   ========================================================================== */

@media (min-width: 768px) {
    .hero-video {
        /* En móviles, asegurar que el video cubra todo */
        min-width: 100%;
        min-height: 100%;
    }

    .propiedades-galeria {
        padding: 5rem 2rem;
    }

    .galeria-header h2 {
        font-size: 2.5rem;
    }

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

    .propiedad-imagen {
        height: 280px;
    }

    .propiedad-contenido h4 {
        font-size: 1.6rem;
    }
}

/* ==========================================================================
   RESPONSIVE - Desktop (1024px+)
   ========================================================================== */


.propiedades-galeria {
    padding: 6rem 3rem;
}

.galeria-header h2 {
    font-size: 3rem;
}

.galeria-header p {
    font-size: 1.1rem;
}

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

.propiedad-imagen {
    height: 300px;
}

.propiedad-contenido {
    padding: 2.5rem;
}

.propiedad-contenido h4 {
    font-size: 1.7rem;
}

.propiedad-contenido p {
    font-size: 1rem;
}

/* Layout horizontal para destacados */
.propiedad-card.destacada {
    flex-direction: row;
    grid-column: 1 / -1;
}

.propiedad-card.destacada .propiedad-imagen {
    width: 100%;
    height: 300px;
}

@media (min-width: 768px) {
    .propiedad-card.destacada .propiedad-imagen {
        width: 50%;
        height: auto;
    }
}

/* Filtros de galería */
.galeria-filtros {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filtro-btn {
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: 1px solid var(--grey);
    color: var(--grey);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    cursor: pointer;
}

.filtro-btn:hover,
.filtro-btn.activo {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

/* Paginación */
.galeria-paginacion {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.paginacion-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid #e5e5e5;
    color: var(--grey);
    font-weight: 500;
    transition: all 0.3s;
}

.paginacion-btn:hover,
.paginacion-btn.activo {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

/* Skeleton loading */
.propiedad-card.skeleton {
    pointer-events: none;
}

.skeleton .propiedad-imagen {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/*ACORDEON*/
.tabs-container {
    max-width: 900px;
    margin: 2rem auto;
}

.tabs-header {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ddd;
}

.tab-btn {
    flex: 0 0 auto;
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
    transition: color 0.3s, border-bottom 0.3s;
    border-bottom: 2px solid transparent;
}

.tab-btn.activo {
    color: #0070f3;
    border-bottom: 2px solid #0070f3;
}

.tabs-content {
    margin-top: 1rem;
    position: relative;
}

.tab-item {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-item.activo {
    display: block;
}

.tab-item img {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.tab-item p {
    line-height: 1.6;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/*ACORDEON SOLUIONES*/
/* Sección de Acordeones */
.acordeones-section {
    padding: 5rem 1.5rem;
    background: var(--white);
}

.acordeones-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.acordeones-header {
    text-align: center;
    margin-bottom: 4rem;
}

.acordeones-header {
    margin-bottom: 2rem;
}

.acordeones-header .divider {
    width: 80px;
    height: 3px;
    background: var(--red);
    margin: 1.5rem auto;
}

.acordeones-header p {
    color: var(--grey);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Acordeón */
.acordeon {
    max-width: 100%;
    margin: 0 auto;
}

.acordeon-item {
    background: var(--white);
    border: 1px solid #e5e5e5;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.acordeon-item:hover {
    border-color: var(--red);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* Header del acordeón */
.acordeon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    background: var(--light-grey);
    transition: all 0.3s ease;
    user-select: none;
}

.acordeon-header:hover {
    background: #ebebeb;
}

.acordeon-item.activo .acordeon-header {
    background: var(--grafito-light);
    color: var(--white);
}

.acordeon-titulo {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.acordeon-icono {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.acordeon-item.activo .acordeon-icono {
    background: var(--white);
    color: var(--red);
}

.acordeon-titulo h3 {
    font-size: 1.3rem;
    font-weight: 400;
    margin: 0;
    transition: color 0.3s ease;
}

.acordeon-item.activo .acordeon-titulo h3 {
    color: var(--white);
}

/* Indicador de expansión */
.acordeon-indicador {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.acordeon-item.activo .acordeon-indicador {
    transform: rotate(180deg);
    border-color: var(--white);
    color: var(--white);
}

/* Contenido del acordeón */
.acordeon-contenido {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: var(--white);
}

.acordeon-item.activo .acordeon-contenido {
    max-height: 600px;
    padding: 2rem;
    border-top: 2px solid var(--red);
}

.acordeon-texto {
    color: var(--grey);
    line-height: 1.9;
    font-size: 1rem;
}

.acordeon-texto p {
    margin-bottom: 1.2rem;
}

.acordeon-texto p:last-child {
    margin-bottom: 0;
}

.acordeon-texto strong {
    color: var(--black);
    font-weight: 600;
}

.img-accordeon {
    float: left;
    margin-right: var(--margin-global);
    border-radius: 15px;
    height: 30vh;
}

/* Responsive */
@media (max-width: 768px) {
    .acordeones-section {
        padding: 3rem 1rem;
    }

    .acordeones-header h2 {
        font-size: 2rem;
    }

    .acordeones-header p {
        font-size: 1rem;
    }

    .acordeon-header {
        padding: 1.2rem 1.5rem;
    }

    .acordeon-titulo h3 {
        font-size: 1.1rem;
    }

    .acordeon-icono {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }

    .acordeon-item.activo .acordeon-contenido {
        padding: 1.5rem;
    }

    .acordeon-texto {
        font-size: 0.95rem;
    }
}

@media (min-width: 1024px) {
    .acordeones-section {
        padding: 6rem 2rem;
    }

    .acordeones-header h2 {
        font-size: 3rem;
    }

    .acordeon-titulo h3 {
        font-size: 1.4rem;
    }
}

