/* ===== CSS VARIABLES & THEME ===== */
:root {
    /* Colors */
    --bg-dark: #070B14;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --gold: #D4AF37;
    --gold-light: #F3E5AB;
    --gold-dark: #AA8B2C;
    --text-main: #E2E8F0;
    --text-muted: #94A3B8;
    --border-glass: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --container-w: 1200px;
    --section-pad: 100px 0;
    
    /* Transitions */
    --trans-fast: 0.3s ease;
    --trans-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: #FFFFFF;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--trans-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-pad);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.gold-text {
    color: var(--gold);
}

.center {
    text-align: center;
}

.dark-bg {
    background-color: #04070D; /* Slightly darker than main bg for contrast */
}

.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: var(--trans-fast);
    font-size: 1rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-gold {
    background-color: var(--gold);
    color: #000;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-gold:hover {
    background-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-outline-gold {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: #000;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.w-100 {
    width: 100%;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--trans-fast);
}

.header.scrolled {
    background: rgba(7, 11, 20, 0.9);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-glass);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--trans-fast);
}

.logo-link:hover {
    opacity: 0.9;
}

.logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: var(--trans-fast);
}

.logo-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    display: block;
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.logo-text-top {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    line-height: 1.1;
}

.logo-text-bottom {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.1;
}

/* Footer specific branding layout */
.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo {
    height: 55px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: var(--trans-fast);
}

.footer-logo-wrapper .logo-text-bottom {
    color: rgba(255, 255, 255, 0.8);
}

.footer-logo-wrapper .logo-divider {
    background: rgba(255, 255, 255, 0.15);
}

/* Mobile responsive branding */
@media (max-width: 480px) {
    .logo {
        height: 38px;
    }
    .logo-divider {
        height: 24px;
        margin: 0 2px;
    }
    .logo-text-top {
        font-size: 0.62rem;
        letter-spacing: 0.12em;
    }
    .logo-text-bottom {
        font-size: 0.5rem;
        letter-spacing: 0.08em;
    }
    .logo-link {
        gap: 8px;
    }
}

.desktop-nav {
    display: flex;
    gap: 22px;
}

@media (max-width: 1200px) {
    .desktop-nav {
        gap: 12px;
    }
    .nav-link {
        font-size: 0.95rem;
    }
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: var(--trans-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(7, 11, 20, 0.98);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--trans-fast);
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #fff;
}

.mobile-link:hover {
    color: var(--gold);
}

/* Floating WhatsApp */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--trans-fast);
    animation: pulse-wa 2s infinite;
}

.floating-wa:hover {
    transform: scale(1.1);
    background-color: #1ebe5d;
}

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/hero.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(4, 7, 13, 0.9) 0%, rgba(4, 7, 13, 0.4) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0;
}

.hero-subtitle {
    color: var(--gold);
    font-family: var(--font-heading);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    margin-bottom: 15px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 25px;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: #fff;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-15px) translateX(-50%); }
    60% { transform: translateY(-7px) translateX(-50%); }
}

/* ===== NOSOTROS SECTION ===== */
.nosotros-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.nosotros-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.stats-row {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    border-left: 2px solid var(--gold);
    padding-left: 15px;
}

.stat-num {
    font-size: 2.5rem;
    color: var(--gold);
}

.stat-label {
    font-family: var(--font-heading);
    color: var(--text-muted);
}

.image-wrapper {
    padding: 15px;
    position: relative;
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border-top: 2px solid var(--gold);
    border-left: 2px solid var(--gold);
    z-index: 0;
}

.image-wrapper::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border-bottom: 2px solid var(--gold);
    border-right: 2px solid var(--gold);
    z-index: 0;
}

.image-wrapper img {
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

/* ===== SERVICIOS SECTION ===== */
.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

.services-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: #fff;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--trans-fast);
}

.tab-btn:hover, .tab-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #000;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 40px 30px;
    transition: var(--trans-fast);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--gold);
    transition: var(--trans-fast);
}

.service-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== PROYECTOS SECTION ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.portfolio-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 240px; /* Reduced from 300px for better proportions */
    display: block; /* Ensure it behaves as block link */
    flex-shrink: 0;
}

.portfolio-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-item:hover .portfolio-img-wrapper img {
    transform: scale(1.1);
}

/* Blurred ambient background fill for images that don't cover the full area */
.img-blur-bg {
    position: absolute;
    top: -15px;
    left: -15px;
    width: calc(100% + 30px);
    height: calc(100% + 30px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(16px) brightness(0.4) saturate(0.8);
    z-index: 1;
    transition: transform 0.6s ease;
}

.ezpacio-blur {
    background-image: url('../assets/PROYECTO.png');
}

.naplo-blur {
    background-image: url('../assets/portada naplo.png');
}

.portfolio-item:hover .img-blur-bg {
    transform: scale(1.08);
}

.portfolio-img-wrapper.has-blur-bg img {
    position: relative;
    z-index: 2;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.portfolio-item:hover .portfolio-img-wrapper.has-blur-bg img {
    transform: scale(1.03);
}


/* Custom Horizontal Featured Project Card */
.featured-project-container {
    display: flex;
    flex-direction: row;
    border-radius: 20px;
    overflow: hidden;
    max-width: 1000px;
    margin: 40px auto 0;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.featured-project-image-wrapper {
    position: relative;
    width: 55%;
    height: 450px;
    overflow: hidden;
    display: block;
    flex-shrink: 0;
}

.featured-project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    position: relative;
    transition: transform 0.6s ease;
}

.featured-project-image-wrapper.has-blur-bg img {
    object-fit: contain;
}

.featured-project-container:hover .featured-project-image-wrapper img {
    transform: scale(1.04);
}

.featured-project-container:hover .img-blur-bg {
    transform: scale(1.08);
}

.featured-project-image-wrapper:hover .portfolio-overlay {
    opacity: 1;
    pointer-events: auto;
}

.featured-project-info {
    width: 45%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.01) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.featured-project-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
    font-family: var(--font-heading);
}

.featured-project-info .project-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Mini Stats Layout */
.project-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
}

.mini-stat-item {
    text-align: center;
}

.mini-stat-item .stat-number {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold);
    font-family: var(--font-heading);
    margin-bottom: 5px;
}

.mini-stat-item .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-cta-wrapper {
    margin-top: 5px;
}

/* Responsive adjustments for horizontal card */
@media (max-width: 992px) {
    .featured-project-container {
        max-width: 750px;
    }
    .featured-project-image-wrapper {
        width: 50%;
        height: 400px;
    }
    .featured-project-info {
        width: 50%;
        padding: 30px;
    }
    .featured-project-info h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .featured-project-container {
        flex-direction: column;
        max-width: 450px;
        margin: 30px auto 0;
    }
    .featured-project-image-wrapper {
        width: 100%;
        height: 240px;
    }
    .featured-project-info {
        width: 100%;
        padding: 30px 24px;
    }
    .featured-project-info h3 {
        font-size: 1.5rem;
    }
    .project-desc {
        margin-bottom: 20px;
    }
    .project-mini-stats {
        margin-bottom: 20px;
        padding: 15px 0;
    }
    .mini-stat-item .stat-number {
        font-size: 1.2rem;
    }
}


.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none; /* Avoid blocking clicks when invisible */
    transition: var(--trans-fast);
    z-index: 10;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    pointer-events: auto; /* Enable interaction when visible */
}

.portfolio-info {
    position: relative;
    padding: 20px 24px 24px;
    margin: 0;
    z-index: 10;
}

.badge {
    background: var(--gold);
    color: #000;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
}

.badge-inmo {
    background: #fff;
    color: #000;
}

.portfolio-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.portfolio-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== COTIZADOR SECTION ===== */
.cotizador-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-list {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.feature-item i {
    color: var(--gold);
}

.cotizador-form {
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    color: #fff;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-body);
    outline: none;
    transition: var(--trans-fast);
}

.form-control:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.1);
}

.form-control option {
    background: var(--bg-dark);
    color: #fff;
}

.resultado-box {
    margin-top: 25px;
    padding: 20px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    text-align: center;
}

.resultado-box.hidden {
    display: none;
}

.resultado-box h3 {
    color: var(--gold);
    font-size: 2rem;
    margin: 10px 0;
}

.small-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== BLOG SECTION ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.blog-card {
    border-radius: 16px;
    overflow: hidden;
    transition: var(--trans-fast);
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-card img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 25px;
}

.blog-date {
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.blog-content h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.blog-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.blog-link {
    color: var(--gold);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.blog-link:hover {
    gap: 12px; /* Slight animation */
}

/* ===== CONTACTO SECTION ===== */
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.contact-methods {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.method-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.method-icon {
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
}

.method-item h4 {
    margin-bottom: 5px;
}

.method-item p {
    color: var(--text-muted);
}

.contacto-form-wrapper {
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

textarea.form-control {
    resize: vertical;
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    margin-top: 40px;
}

/* ===== FOOTER ===== */
.footer {
    background: #020408;
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-glass);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}


.footer-brand p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.social-links a:hover {
    background: var(--gold);
    color: #000;
}

.footer-links h4, .footer-newsletter h4 {
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a {
    color: var(--text-muted);
}

.footer-links ul li a:hover {
    color: var(--gold);
    padding-left: 5px; /* micro animation */
}

.footer-newsletter p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 8px 0 0 8px;
    color: #fff;
    outline: none;
}

.newsletter-form button {
    background: var(--gold);
    color: #000;
    border: none;
    padding: 0 20px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: var(--trans-fast);
}

.newsletter-form button:hover {
    background: var(--gold-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== MISIÓN Y VISIÓN MASTERPIECE SECTION ===== */
.mv-interactive-section {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #0a0f1d 0%, #05070d 100%);
    padding: 120px 0;
    z-index: 1;
}

/* Canvas Golden Dust Background */
.mv-canvas-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Luxury Ambient Glows */
.mv-ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.12;
    z-index: 0;
    pointer-events: none;
}

.glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
    top: -10%;
    left: 10%;
    animation: floatGlow 15s infinite alternate ease-in-out;
}

.glow-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #2563eb 0%, transparent 70%);
    bottom: -15%;
    right: 10%;
    animation: floatGlow 20s infinite alternate-reverse ease-in-out;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -40px) scale(1.15); }
}

/* Underline and Subtitles */
.mv-tagline {
    font-family: var(--font-heading);
    color: var(--gold);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 800;
    display: block;
    margin-bottom: 12px;
}

.title-underline {
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
    margin: 20px auto 0;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

/* Centered Showcase Grid */
.mv-showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    margin-top: 60px;
    position: relative;
    z-index: 10;
}

/* Premium Card Masterpiece */
.mv-premium-card {
    position: relative;
    border-radius: 24px;
    border: 1px solid var(--border-glass);
    padding: 70px 50px;
    background: rgba(255, 255, 255, 0.015);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

/* Premium Hover State */
.mv-premium-card:hover {
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: 0 35px 70px -15px rgba(212, 175, 55, 0.2), 
                0 0 40px rgba(212, 175, 55, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Card glass backdrop with subtle blur */
.card-backdrop-glass {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 1;
    pointer-events: none;
}

/* Subtle mouse spotlight */
.card-radial-spotlight {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Elegant glowing dynamic card borders */
.card-border-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.mv-premium-card:hover .card-border-glow {
    opacity: 1;
}

/* Card Content Styling */
.card-inner-content {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Editorial design watermarks */
.mv-premium-card::before {
    content: attr(data-letter);
    position: absolute;
    right: -2%;
    bottom: -15%;
    font-size: 24rem;
    font-weight: 900;
    font-family: var(--font-heading);
    color: rgba(255, 255, 255, 0.012);
    transition: color 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    z-index: 0;
    line-height: 1;
}

.mv-premium-card:hover::before {
    color: rgba(212, 175, 55, 0.035);
    transform: translateY(-20px) scale(1.08) rotate(-5deg);
}

/* Tag category badge */
.premium-badge {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: var(--gold);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 2px;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 40px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.05);
    transition: background 0.4s, color 0.4s;
}

.mv-premium-card:hover .premium-badge {
    background: var(--gold);
    color: #000;
}

/* Icon Showcase and Pulsing Waves */
.premium-icon-box {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 35px;
    color: var(--gold);
    font-size: 2.2rem;
    transition: transform 0.5s ease, border-color 0.5s ease;
}

.pulse-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.2);
    animation: ringPulse 3s infinite linear;
    pointer-events: none;
    opacity: 0;
}

.delay-1 { animation-delay: 1s; }
.delay-2 { animation-delay: 2s; }

@keyframes ringPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Icon micro-animations */
.compass-rotate {
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mv-premium-card:hover .compass-rotate {
    transform: rotate(360deg);
}

.eye-pulse {
    transition: transform 0.4s ease;
}

.mv-premium-card:hover .eye-pulse {
    transform: scale(1.15);
}

.mv-premium-card:hover .premium-icon-box {
    border-color: rgba(212, 175, 55, 0.35);
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #000;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

/* Typography elements */
.card-headline {
    font-size: 2.2rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 20px;
    letter-spacing: 1px;
    transition: color 0.4s;
}

.mv-premium-card:hover .card-headline {
    color: var(--gold);
}

.card-body-text {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.8;
    text-align: center;
    max-width: 400px;
    margin-bottom: 45px;
    transition: color 0.4s;
}

.card-body-text-full {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.9;
    text-align: center;
    max-width: 440px;
    transition: color 0.4s;
}

.mv-premium-card:hover .card-body-text,
.mv-premium-card:hover .card-body-text-full {
    color: #f1f5f9;
}

/* Card premium button indicator */
.card-footer-action {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    cursor: pointer;
}

.action-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.4s, transform 0.4s;
}

.action-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFF;
    font-size: 0.8rem;
    transition: all 0.4s ease;
}

.mv-premium-card:hover .action-text {
    color: var(--gold);
}

.mv-premium-card:hover .action-arrow {
    background: var(--gold);
    border-color: var(--gold);
    color: #000;
    transform: translateX(6px);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* ===== HIGH-END LUXURY DESIGN SYSTEM ===== */

/* Scroll progress bar at the very top */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    z-index: 9999;
    width: 0%;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
    transition: width 0.1s ease-out;
}

/* ===== NUESTROS VALORES SECTION ===== */
.valores-section {
    position: relative;
    padding: 100px 0;
    background: radial-gradient(circle at 50% 50%, #060913 0%, #03050a 100%);
    overflow: hidden;
    border-top: 1px solid var(--border-glass);
}
.valores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
    position: relative;
    z-index: 10;
}
.valor-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    padding: 40px 25px;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.valor-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.valor-card:hover::before {
    opacity: 1;
}
.valor-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(212, 175, 55, 0.35);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(212, 175, 55, 0.05);
}
.valor-icon-box {
    width: 70px;
    height: 70px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 25px;
    color: var(--gold);
    font-size: 1.6rem;
    transition: all 0.4s ease;
}
.valor-card:hover .valor-icon-box {
    background: var(--gold);
    color: #000;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}
.valor-card h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
}
.valor-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== PAGINA DE INICIO ENRIQUECIDA ===== */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}
.pillar-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}
.pillar-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at bottom center, rgba(212, 175, 55, 0.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.pillar-card:hover::before {
    opacity: 1;
}
.pillar-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.pillar-icon {
    font-size: 2.8rem;
    color: var(--gold);
    margin-bottom: 25px;
    transition: transform 0.4s ease;
    display: inline-block;
}
.pillar-card:hover .pillar-icon {
    transform: scale(1.15);
}
.pillar-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}
.pillar-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}
.pillar-link {
    color: var(--gold);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    transition: gap 0.3s;
}
.pillar-link:hover {
    gap: 12px;
}

/* Why choose A&E Section */
.why-ae-section {
    background: radial-gradient(circle at 80% 20%, #060913 0%, #020408 100%);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}
.stat-card {
    text-align: center;
    padding: 30px;
    border-left: 2px solid rgba(212, 175, 55, 0.2);
    transition: border-color 0.3s;
}
.stat-card:hover {
    border-color: var(--gold);
}
.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--gold);
    font-family: var(--font-heading);
    margin-bottom: 10px;
}
.stat-title {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 8px;
}
.stat-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Shimmer Golden Text Animation */
/* ===== EZPACIO INDUSTRIAL STYLES ===== */
.ezpacio-hero {
    position: relative;
    padding: 180px 0 100px;
    background: linear-gradient(rgba(10, 15, 30, 0.85), rgba(10, 15, 30, 0.95)), url('../assets/PROYECTO.png') center/cover;
    text-align: center;
    border-bottom: 1px solid var(--border-glass);
}

.ezpacio-hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.ezpacio-hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.ezpacio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.ezpacio-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    padding: 40px 30px;
    border-radius: 20px;
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ezpacio-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.ezpacio-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.ezpacio-card:hover .ezpacio-icon {
    transform: scale(1.15);
}

.ezpacio-timeline {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0;
}

.ezpacio-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: rgba(212, 175, 55, 0.2);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 50%;
    padding-right: 40px;
}

.timeline-item:nth-child(even) {
    margin-left: auto;
    padding-right: 0;
    padding-left: 40px;
}

.timeline-dot {
    position: absolute;
    right: -11px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gold);
    border: 4px solid var(--bg-dark);
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -9px;
    right: auto;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.02);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--border-glass);
    transition: border-color 0.3s;
}

.timeline-content:hover {
    border-color: rgba(212, 175, 55, 0.5);
}

.timeline-date {
    display: inline-block;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 0.9rem;
    background: rgba(212, 175, 55, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
}

.ezpacio-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.stat-box {
    text-align: center;
    padding: 40px 30px;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    min-width: 260px;
    flex: 1;
}

.stat-box h3 {
    font-size: 3.5rem;
    color: var(--gold);
    margin-bottom: 5px;
    font-weight: 800;
}

.stat-box p {
    font-size: 1.1rem;
    color: #FFF;
    font-weight: 600;
}

.stat-box span {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 5px;
}

.checklist-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.checklist-list li {
    background: rgba(255,255,255,0.02);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--gold);
    display: flex;
    align-items: center;
    gap: 15px;
}

.checklist-list i {
    color: var(--gold);
    font-size: 1.5rem;
}

.cta-box {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(10, 15, 30, 0.9) 100%);
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 60px 40px;
    border-radius: 24px;
    text-align: center;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(212,175,55,0.1) 0%, transparent 60%);
    pointer-events: none;
}

/* ===== NAPLO PLAYA STYLES ===== */
.naplo-hero {
    position: relative;
    padding: 180px 0 100px;
    background: linear-gradient(rgba(10, 15, 30, 0.75), rgba(10, 15, 30, 0.85)), url('../assets/portada naplo.png') center/cover;
    text-align: center;
    border-bottom: 1px solid var(--border-glass);
}

/* Specific overrides for mobile timeline */
@media (max-width: 768px) {
    .ezpacio-timeline::before {
        left: 20px;
    }
    .timeline-item, .timeline-item:nth-child(even) {
        width: 100%;
        padding-left: 60px;
        padding-right: 0;
    }
    .timeline-dot, .timeline-item:nth-child(even) .timeline-dot {
        left: 11px;
    }
    .ezpacio-hero-title, .naplo-hero-title {
        font-size: 2.5rem;
    }
}

/* ===== ANIMATION CLASSES (JS INTERSECTION OBSERVER) ===== */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1), transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-up {
    transform: translateY(45px);
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-right {
    transform: translateX(-45px);
}

.slide-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-left {
    transform: translateX(45px);
}

.slide-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Fallback class aliases */
.fade-right {
    transform: translateX(-45px);
}

.fade-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-left {
    transform: translateX(45px);
}

.fade-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===== RESPONSIVE MEDIA QUERIES ===== */
@media (max-width: 1200px) {
    
}

@media (max-width: 1024px) {
    .hero-title { font-size: 3.5rem; }
    .nosotros-grid, .cotizador-container, .contacto-grid {
        gap: 40px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .mv-showcase-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        gap: 30px;
    }
    .mv-premium-card {
        padding: 55px 35px;
    }
    .valores-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .desktop-nav, .header-actions .btn {
        display: none;
    }
    .hamburger-btn {
        display: block;
    }
    .hero-title { font-size: 2.8rem; }
    .hero-desc { font-size: 1rem; }
    .portfolio-img-wrapper {
        height: 180px; /* More compact height on mobile screens */
    }
    .nosotros-grid, .cotizador-container, .contacto-grid {
        grid-template-columns: 1fr;
    }
    .nosotros-image {
        order: -1;
    }
    .section {
        padding: 70px 0;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .valores-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* ===== FLIPPING INMOBILIARIO PREMIUM STYLES ===== */
.flipping-hero {
    position: relative;
    padding: 160px 0 100px;
    background: linear-gradient(105deg, rgba(7, 11, 20, 0.65) 0%, rgba(7, 11, 20, 0.45) 45%, rgba(2, 4, 8, 0.25) 100%), 
                url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1600&q=80') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    border-bottom: 1px solid var(--border-glass);
}

.flipping-hero-content {
    max-width: 800px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
}

.flipping-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #ffffff;
}

.flipping-intro-section {
    background: radial-gradient(circle at 10% 20%, rgba(7, 11, 20, 0.4) 0%, rgba(2, 4, 8, 0.95) 100%);
    position: relative;
}

.flipping-concept-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

.flipping-concept-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.concept-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 24px;
    transition: var(--trans-medium);
}

.concept-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-5px);
}

.concept-card i {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.concept-card h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.concept-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.flipping-process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.process-step-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: var(--trans-medium);
}

.process-step-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.02);
    transform: translateY(-8px);
}

.step-number {
    position: absolute;
    top: 20px;
    left: 30px;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: rgba(212, 175, 55, 0.1);
}

.step-icon {
    width: 70px;
    height: 70px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 1.8rem;
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.process-step-card h3 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 12px;
}

.process-step-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Miraflores Case Card Styles */
.flipping-case-section {
    background: rgba(7, 11, 20, 0.8);
    position: relative;
}

.case-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.case-card-wrapper {
    position: relative;
}

.case-card-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.case-premium-card {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(15px);
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.case-header h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #ffffff;
}

.case-badge {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.case-data-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.data-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.data-item:last-child {
    border-bottom: none;
}

.data-label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
}

.data-label i {
    color: var(--gold);
    font-size: 1.1rem;
}

.data-val {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
}

.data-val.profit {
    color: #4cd137;
    font-size: 1.8rem;
    text-shadow: 0 0 10px rgba(76, 209, 55, 0.2);
}

.case-footer-slogan {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 15px 20px;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--gold);
}

/* Flipping Types Layout */
.flipping-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.type-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 40px 30px;
    transition: var(--trans-medium);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.type-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-8px);
}

.type-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 25px;
}

.type-card h3 {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 15px;
}

.type-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    flex-grow: 1;
}

.type-card ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.type-card ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 0.8rem;
}

.type-badge-bottom {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--gold);
    text-transform: uppercase;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

/* Partners Layout */
.alliances-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.alliance-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.alliance-card i {
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.alliance-card h4 {
    color: #ffffff;
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.alliance-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Double CTA style */
.flipping-cta-box {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(2, 4, 8, 0.4) 100%);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.flipping-cta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.cta-option-card {
    background: rgba(7, 11, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    transition: var(--trans-medium);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-option-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(7, 11, 20, 0.8);
    transform: translateY(-5px);
}

.cta-option-card h4 {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.cta-option-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .flipping-concept-grid, .case-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .flipping-process-grid, .flipping-types-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .alliances-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .flipping-cta-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .flipping-hero {
        background-attachment: scroll !important; /* Desactiva parallax problemático en móviles */
        background-position: 78% center !important; /* Desplaza para mostrar la fachada de la casa a la derecha */
        padding: 140px 0 70px !important; /* Altura estilizada */
        background-image: linear-gradient(to bottom, rgba(7, 11, 20, 0.5) 0%, rgba(2, 4, 8, 0.7) 100%), 
                          url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1600&q=80') !important;
    }
}

@media (max-width: 480px) {
    .alliances-grid {
        grid-template-columns: 1fr;
    }
    .case-premium-card {
        padding: 25px;
    }
    .data-val {
        font-size: 1.1rem;
    }
    .data-val.profit {
        font-size: 1.5rem;
    }
}


