/* ========================================
   Torre Miralta Capital - Estilos Home
   ======================================== */

/* Hero Section Redesign */
.hero-redesign {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.hero-strips {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-top: 50px;
    gap: 20px;
}

.strip {
    display: flex;
    align-items: center;
    width: 100%;
    flex: 1;
    opacity: 0;
}

.strip-brand {
    background: rgba(255, 255, 255, 0.5);
    animation: slideDown 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-title-new {
    font-family: var(--font-secondary);
    font-size: clamp(2rem, 5vw, 4.5rem);
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.hero-subtitle-new {
    font-size: clamp(0.9rem, 1.5vw, 1.3rem);
    color: #444;
    letter-spacing: 2px;
}

.strip-depto {
    background: rgba(144, 186, 188, 0.3);
    backdrop-filter: blur(4px);
    animation: slideInLeft 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.strip-depto:hover {
    background: rgba(144, 186, 188, 0.5);
    transform: scale(1.02);
    z-index: 5;
}

.strip-depto:hover .strip-text {
    transform: translateX(-10px);
}

.strip-depto .strip-text {
    transition: transform 0.4s ease;
}

.strip-consultorios {
    background: rgba(146, 172, 209, 0.3);
    backdrop-filter: blur(4px);
    animation: slideInRight 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.strip-consultorios:hover {
    background: rgba(146, 172, 209, 0.5);
    transform: scale(1.02);
    z-index: 5;
}

.strip-consultorios:hover .strip-text {
    transform: translateX(10px);
}

.strip-consultorios .strip-text {
    transition: transform 0.4s ease;
}

.strip-locales {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    animation: slideInLeft 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.9s forwards;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.strip-locales:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.02);
    z-index: 5;
}

.strip-locales:hover .strip-text {
    transform: translateX(-10px);
}

.strip-locales .strip-text {
    color: var(--white);
    transition: transform 0.4s ease;
}

.strip-text {
    font-family: var(--font-secondary);
    font-size: clamp(2rem, 8vw, 6rem);
    color: var(--white);
    margin: 0;
    font-weight: 500;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    cursor: pointer;
    animation: bounce 2s infinite;
    z-index: 10;
}

/* Sections & Layout */
.home-section-wrapper {
    width: 100%;
    overflow: hidden;
}

.departments-section {
    padding-top: 100px;
    background-color: #fff5f1;
}

.section-parallax-banner {
    position: relative;
    height: 400px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

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

.parallax-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.parallax-title {
    font-family: var(--font-secondary);
    font-size: clamp(3rem, 10vw, 8rem);
    color: var(--white);
    margin: 0;
    font-weight: 400;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.about-section,
.models-section {
    background: transparent !important;
}

.section-label {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.about-image {
    width: 100%;
    min-height: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-reveal {
    width: 100%;
    height: auto;
    min-height: 400px;
    display: block;
    object-fit: cover;
    border-radius: 16px;
    clip-path: none !important;
}

.about-stats {
    display: flex;
    gap: 3rem;
    margin: 2rem 0;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Models */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.model-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.model-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.model-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    cursor: pointer;
}

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

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

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 77, 122, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.model-image:hover .image-overlay {
    opacity: 1;
}

.image-overlay span {
    color: var(--white);
    font-weight: 600;
}

.model-body {
    padding: 1.5rem;
}

.model-subtitle {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.model-specs {
    display: flex;
    justify-content: space-around;
    padding: 1.5rem 0;
    border-top: 1px solid var(--gray-lighter);
    border-bottom: 1px solid var(--gray-lighter);
    margin-bottom: 1.5rem;
}

.spec-highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.spec-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.spec-label {
    font-size: 0.85rem;
    color: var(--gray);
}

.model-features-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.model-features-list li {
    padding: 0.3rem 0;
    color: var(--gray-dark);
    font-size: 0.95rem;
}

/* Amenities */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.amenity-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.amenity-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.amenity-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

/* Detailed Location Page Styles - Combined Version */
.ubicacion-hero {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    padding: 8rem 0; /* Increased for combined prominence */
    color: white;
    text-align: center;
}

.ubicacion-hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.ubicacion-hero .hero-address {
    font-size: 1.5rem;
    margin: 1rem 0;
    font-weight: 500;
}

.ubicacion-hero .hero-callout {
    font-size: 1.125rem;
    color: #e0f2fe;
    margin: 1.5rem auto;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: 50px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ubicacion-hero .hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Button variants for blue background */
.btn-white {
    background: white;
    color: #0284c7 !important;
}

.btn-white:hover {
    background: #f8fafc;
    color: #0369a1 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-outline-white {
    background: transparent;
    border: 2px solid white;
    color: white !important;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
}

.map-section {
    padding: 0;
    background: #f9fafb;
}

.map-container {
    width: 100%;
    height: 600px;
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.direccion-section {
    padding: 4rem 0;
    background: white;
}

.direccion-card {
    max-width: 700px;
    margin: 0 auto;
    background: #f9fafb;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
}

.direccion-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.direccion-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.direccion-text {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.puntos-interes {
    padding: 6rem 0;
    background: #f9fafb;
}

.interes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.interes-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.interes-card:hover {
    transform: translateY(-6px);
}

.interes-icon {
    width: 100%;
    aspect-ratio: 938 / 768;
    margin-bottom: 0.5rem;
    overflow: hidden;
    border-radius: 12px;
    background-image: url('../images/pois/pois.webp');
    background-size: 300% 200%;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
    border: 1px solid #e5e7eb;
}

.interes-card:hover .interes-icon {
    transform: scale(1.05);
}

/* Sprite Positions (3x2 Grid) */
.icon-edu { background-position: 0% 0%; }
.icon-salud { background-position: 50% 0%; }
.icon-compras { background-position: 100% 0%; }
.icon-rest { background-position: 0% 100%; }
.icon-empleo { background-position: 50% 100%; }
.icon-entret { background-position: 100% 100%; }

.interes-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.interes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.interes-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6b7280;
}

.interes-list li:last-child {
    border-bottom: none;
}

.distancia {
    font-weight: 600;
    color: var(--primary);
}

/* Locales Comerciales */
.locales-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.locales-section .row {
    margin-top: 4rem;
    align-items: center;
}

.locales-card-main {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.locales-card-main h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.locales-card-main p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #6b7280;
    margin-bottom: 2rem;
}

.locales-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.locales-list li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #475569;
}

.locales-list li strong {
    color: #1e293b;
}

.locales-list li svg {
    color: #10b981;
    flex-shrink: 0;
}

.locales-grid-icons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.amenity-icon-box {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: var(--transition-normal);
}

.amenity-icon-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.amenity-icon-box .emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.amenity-icon-box h4 {
    font-size: 1.25rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.amenity-icon-box p {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
}

/* Contact Details */
.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item svg {
    color: var(--primary-color);
}

/* Lightbox */
.modal-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.modal-lightbox.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.slider-container {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
}

.modal-content-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.slider-nav-prev {
    left: -70px;
}

.slider-nav-next {
    right: -70px;
}

.slider-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 45px;
    color: var(--white);
    font-size: 50px;
    cursor: pointer;
}

/* Responsive Index */
@media (max-width: 768px) {
    .row {
        flex-direction: column;
    }

    .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
        padding: 0 var(--spacing-sm) !important;
        margin-bottom: 2rem;
    }

    .hero-strips {
        padding-top: 20px;
    }

    .strip-text {
        font-size: 2.2rem;
    }

    .hero-title-new {
        font-size: 2.2rem;
    }

    .text-end,
    .text-start {
        text-align: center !important;
    }

    .section-parallax-banner {
        height: 200px !important;
    }

    .parallax-title {
        font-size: 2.5rem !important;
        letter-spacing: 2px;
    }

    /* Ubicación: Mapa arriba */
    #ubicacion .row {
        flex-direction: column-reverse;
    }

    section {
        padding: 3rem 0;
    }

    .about-image,
    .image-reveal {
        min-height: 250px;
    }

    .about-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .locales-section .row {
        margin-top: 2rem !important;
    }

    .locales-grid-icons {
        grid-template-columns: 1fr !important;
    }

    .slider-nav-prev {
        left: 10px;
    }

    .slider-nav-next {
        right: 10px;
    }

    .modal-close {
        right: 20px;
        top: 10px;
    }
}

/* Locales Comerciales Page Styles */
.locales-page-hero {
    height: 60vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    text-align: center;
}

.locales-page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.locales-page-hero .container {
    position: relative;
    z-index: 2;
}

.locales-page-hero h1 {
    font-size: 4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.locales-intro {
    padding: 6rem 0 4rem;
    text-align: center;
}

.locales-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.locales-intro p {
    font-size: 1.125rem;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    color: var(--gray);
    line-height: 1.8;
}

.locales-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .locales-page-hero h1 {
        font-size: 2.5rem;
    }
    
    .locales-intro {
        padding: 4rem 0 2rem;
    }
}

/* ========================================
   Consultorios Page Styles
   ======================================== */
.consultorios-page-hero {
    height: 70vh;
    min-height: 480px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    text-align: center;
}

.consultorios-page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.65) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.consultorios-page-hero .container {
    position: relative;
    z-index: 2;
}

.consultorios-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.consultorios-hero-label {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
}

.consultorios-page-hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.consultorios-hero-sub {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
    margin: 0;
    font-style: italic;
}

.consultorios-intro {
    padding: 5rem 0 4rem;
}

.consultorios-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.consultorios-intro p {
    font-size: 1.125rem;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    color: var(--gray);
    line-height: 1.8;
    text-align: center;
}

/* Benefit cards grid */
.consultorios-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 3rem 0 4rem;
}

.benefit-card {
    background: white;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    border-top: 3px solid #0ea5e9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.benefit-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.benefit-card p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* CTA consultorios */
.consultorios-cta {
    margin-top: 4rem;
}

.consultorios-cta-inner {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    border-radius: 24px;
    padding: 4rem 3rem;
    text-align: center;
    color: white;
}

.consultorios-cta-inner h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.consultorios-cta-inner p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.consultorios-cta-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Badge colors for consultorios */
.consultorios-intro .badge-libre { background: #d1fae5; color: #065f46; }
.consultorios-intro .badge-apartado { background: #fef3c7; color: #92400e; }
.consultorios-intro .badge-vendido { background: #fee2e2; color: #991b1b; }

@media (max-width: 768px) {
    .consultorios-page-hero h1 {
        font-size: 2.5rem;
    }

    .consultorios-hero-label {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .consultorios-hero-sub {
        font-size: 1rem;
    }

    .consultorios-benefits {
        grid-template-columns: 1fr 1fr;
    }

    .consultorios-cta-inner {
        padding: 2.5rem 1.5rem;
    }

    .consultorios-cta-inner h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .consultorios-benefits {
        grid-template-columns: 1fr;
    }
}