/* ===== Variables CSS ===== */
:root {
    /* Colores principales - Tonos tierra y naturales */
    --primary-color: #8B7355;
    --primary-dark: #6B5742;
    --primary-light: #A89078;

    /* Colores secundarios - Tonos complementarios */
    --secondary-color: #B8956A;
    --secondary-dark: #9A7A54;
    --secondary-light: #D4B896;

    /* Acentos - Dorado elegante */
    --accent-color: #D4AF37;
    --accent-gold: #C19A3B;
    --accent-light: #E8C766;

    /* Textos */
    --text-dark: #2C2416;
    --text-medium: #4A3F2E;
    --text-light: #6B5D4A;
    --text-lighter: #8B7D6A;

    /* Fondos */
    --bg-white: #FDFBF7;
    --bg-light: #F5F1EB;
    --bg-cream: #EDE7DF;
    --bg-beige: #E5DED3;
    --bg-dark: #D4CEC3;
    --bg-gradient: linear-gradient(135deg, #F5F1EB 0%, #EDE7DF 100%);

    /* Bordes */
    --border-color: rgba(139, 115, 85, 0.2);
    --border-color-light: rgba(139, 115, 85, 0.1);
    --border-color-dark: rgba(139, 115, 85, 0.3);

    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(44, 36, 22, 0.05);
    --shadow: 0 4px 6px rgba(44, 36, 22, 0.08);
    --shadow-md: 0 10px 15px rgba(44, 36, 22, 0.1);
    --shadow-lg: 0 20px 25px rgba(44, 36, 22, 0.12);
    --shadow-xl: 0 25px 50px rgba(44, 36, 22, 0.15);
    --shadow-colored: 0 10px 40px rgba(139, 115, 85, 0.2);

    /* Transiciones */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Tipografías */
    --font-heading: 'Margest', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body: 'Urbanist', 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-margest: 'Margest', sans-serif;
    --font-urbanist: 'Urbanist', sans-serif;
}

/* Fuentes locales */
@font-face {
    font-family: 'Margest';
    src: url('../admin/assets/fuentes/Margest-Black.otf') format('opentype');
    font-weight: 300 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Urbanist';
    src: url('../admin/assets/fuentes/Urbanist-Black.ttf') format('truetype');
    font-weight: 300 900;
    font-style: normal;
    font-display: swap;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    width: 100%;
    max-width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
    color: var(--text-dark);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

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

/* Container con padding adecuado en móvil */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
}

/* ===== Smooth Scroll Behavior ===== */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* ===== Selection Color ===== */
::selection {
    background-color: var(--primary-color);
    color: white;
}

::-moz-selection {
    background-color: var(--primary-color);
    color: white;
}

/* ===== Scrollbar Custom ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-dark), var(--primary-color));
}

/* ===== Header ===== */
/* NOTA: Los estilos del header/navbar ahora están en components/navbar.css */
/* Estos estilos se mantienen aquí solo para compatibilidad con código legacy */

/* ===== Menú Móvil Overlay (COMPLETAMENTE OCULTO por defecto) ===== */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
}

.mobile-menu-overlay.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== Menú Móvil Sidebar ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: 100%;
    background: #192427;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 10000;
}

.mobile-menu-overlay.active .mobile-menu {
    transform: translateX(0);
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Header del menú móvil */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.mobile-menu-logo h2 {
    color: white;
    font-size: 1.2rem;
    margin: 0;
}

.menu-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.menu-close:hover {
    background: rgba(212, 175, 55, 0.2);
}

.close-icon {
    color: white;
    font-size: 28px;
    line-height: 1;
}

/* === Perfil de Usuario en Menú Móvil === */
.mobile-user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    margin: 1rem 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-avatar svg {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 2;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 0 0.25rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Navegación móvil */
.mobile-nav-menu {
    flex: 1;
    padding: 1rem;
}

.mobile-nav-section {
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
}

.mobile-nav-title {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.mobile-nav-link {
    display: block;
    padding: 0.875rem 1rem;
    margin-bottom: 0.25rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

/* === Sección Dashboard === */
.mobile-dashboard-section {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.dashboard-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.dashboard-button:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.dashboard-button-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dashboard-button-icon svg {
    width: 20px;
    height: 20px;
    stroke: white;
    stroke-width: 2;
}

/* Footer del menú móvil */
.mobile-menu-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.4);
    text-align: center;
}

.mobile-menu-footer p {
    color: white;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.mobile-menu-footer-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 400;
}

/* ===== Hero Section ===== */
.hero {
    background: url('../admin/assets/images/casas/principales/portada.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: white;
    padding: 10rem 0;
    text-align: left;
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    transition: background-color 0.3s ease;
}

.hero.loading {
    background-color: var(--bg-light);
    background-image: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    margin: 0;
    position: relative;
    z-index: 1;
    padding: 0;
    animation: fadeInUp 1s ease-out;
}

.hero .container {
    max-width: 1400px;
    margin: 0;
    padding: 0 0 0 4rem;
    display: flex;
    align-items: center;
    width: 100%;
}

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

.hero-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-shadow: 2px 4px 16px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.04em;
    line-height: 1.1;
    animation: fadeInUp 1s ease-out 0.2s both;
    color: #ffffff;
}

/* Ocultar salto de línea en desktop */
.hero-title .mobile-break {
    display: none;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 400;
    text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.4s both;
    color: #ffffff;
    letter-spacing: 0.03em;
    font-style: italic;
}

.hero-description {
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.8;
    text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s ease-out 0.6s both;
    color: #ffffff;
    max-width: 600px;
    font-weight: 400;
}

.cta-btn {
    display: inline-block;
    background: transparent;
    color: #ffffff;
    padding: 1rem 2.5rem;
    border: 2px solid #ffffff;
    border-radius: 0;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 0.8s both;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #ffffff;
    transition: width 0.3s ease;
    z-index: -1;
}

.cta-btn:hover {
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.cta-btn:hover::before {
    width: 100%;
}

/* ===== Section Title ===== */
.section-title {
    font-family: var(--font-heading);
    text-align: center;
    font-size: 3.2rem;
    margin-bottom: 3.5rem;
    color: var(--text-dark);
    font-weight: 600;
    letter-spacing: 0.03em;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--text-dark), var(--text-light));
    border-radius: 2px;
}

/* ===== About Section ===== */
.about {
    padding: 6rem 0;
    background: var(--bg-light);
    color: var(--text-dark);
}

.about-content p {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 3rem;
}

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

.feature {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature:hover::before {
    transform: scaleX(1);
}

.feature:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature p {
    color: var(--text-light);
}

/* ===== Products Section ===== */
.products {
    padding: 6rem 0;
    background: var(--bg-dark);
    color: var(--text-dark);
}

.loading {
    text-align: center;
    padding: 3rem 0;
}

.spinner {
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    text-align: center;
    padding: 2rem;
    background: #fee2e2;
    border-radius: 8px;
    color: #991b1b;
}

.retry-btn {
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: var(--bg-light);
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.product-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.add-to-cart-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: var(--shadow-colored);
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.add-to-cart-btn:hover::before {
    width: 300px;
    height: 300px;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(59, 130, 246, 0.4);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

/* ===== Contact Section ===== */
.contact {
    padding: 6rem 0;
    background: var(--bg-light);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.contact-icon {
    font-size: 2.5rem;
}

.contact-item h3 {
    margin-bottom: 0.3rem;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-light);
}

/* ===== Footer (ahora en components/footer.css) ===== */

/* ===== Modal Carrito ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg-white);
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--text-dark);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 600;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.qty-btn {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.remove-item-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    transition: var(--transition);
}

.remove-item-btn:hover {
    background: #dc2626;
}

.cart-empty {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-light);
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    color: white;
    border: none;
    padding: 1.2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.checkout-btn:hover {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.4);
}

.checkout-btn:disabled {
    background: var(--border-color);
    cursor: not-allowed;
    transform: none;
}

/* ===== WhatsApp Button ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    text-decoration: none;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 8px 32px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
}

.whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
    animation: none;
}

/* ===== Botón CTA en Navbar ===== */
.cta-btn-nav {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: var(--shadow-colored);
    position: relative;
    overflow: hidden;
}

.cta-btn-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.cta-btn-nav:hover::before {
    left: 100%;
}

.cta-btn-nav:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.4);
}

/* ===== Loading Animation ===== */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading-skeleton {
    background: linear-gradient(90deg, var(--bg-light) 25%, #e0e0e0 50%, var(--bg-light) 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* ===== About Section con Grid ===== */
.about-section {
    padding: 5rem 0;
    background: var(--bg-white);
}

.about-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image .image-placeholder {
    width: 100%;
    height: 400px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.1rem;
    border: 2px dashed var(--border-color);
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 0.75rem 0;
    color: var(--text-dark);
    font-size: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.features-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    line-height: 1;
}

/* ===== Gallery Section ===== */
.gallery-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.section-subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-style: italic;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.gallery-item .image-placeholder {
    width: 100%;
    height: 250px;
    background: var(--bg-white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    border: 2px dashed var(--border-color);
}

.gallery-cta {
    text-align: center;
}

/* ===== Casas Section ===== */
.casas-section {
    padding: 5rem 0;
    background: var(--bg-white);
}

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

.casa-card {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
}

.casa-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.casa-card:hover::before {
    opacity: 1;
}

.casa-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.casa-image .image-placeholder {
    width: 100%;
    height: 250px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    border: 2px dashed var(--border-color);
}

.casa-info {
    padding: 1.5rem;
}

.casa-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.casa-size {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.casa-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.casa-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.casa-link:hover {
    color: var(--primary-dark);
}

.casa-link:hover::after {
    transform: translateX(5px);
}

/* ===== Casa Detail Section ===== */
.casa-detail-section {
    padding: 5rem 0;
    background: transparent;
    min-height: 60vh;
    position: relative;
    overflow: hidden;
    color: var(--text-dark);
}

.casa-detail-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    pointer-events: none;
}

/* Botón de regresar */
.back-button-container {
    margin-bottom: 2rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    padding: 0.9rem 1.8rem;
    border-radius: 12px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    transition: var(--transition);
    font-size: 0.95rem;
    box-shadow: var(--shadow);
}

.back-button:hover {
    background: var(--text-dark);
    color: var(--bg-dark);
    border-color: var(--text-dark);
    transform: translateX(-8px);
    box-shadow: var(--shadow-lg);
}

.back-button svg {
    transition: var(--transition);
}

.back-button:hover svg {
    transform: translateX(-3px);
}

/* Header de la casa */
.casa-detail-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.casa-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    animation: fadeInDown 0.6s ease-out;
}

.casa-header-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    margin: 1.5rem auto 2rem;
    border-radius: 2px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.casa-description {
    font-size: 1.2rem;
    color: var(--text-dark);
    line-height: 1.9;
    max-width: 850px;
    margin: 0 auto 2rem;
    text-align: center;
    font-weight: 400;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

/* Carrusel de imágenes */
.casa-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 4rem;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    background: var(--bg-white);
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.casa-carousel {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.casa-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.casa-carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.casa-carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Controles del carrusel */
.casa-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.casa-carousel-btn:hover {
    background: var(--bg-white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.casa-carousel-btn svg {
    color: var(--primary-color);
    width: 24px;
    height: 24px;
}

.casa-carousel-prev {
    left: 20px;
}

.casa-carousel-next {
    right: 20px;
}

/* Indicadores del carrusel */
.casa-carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.casa-carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.casa-carousel-indicator.active {
    background: white;
    transform: scale(1.2);
}

.casa-carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Grid de información */
.casa-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.casa-info-card {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    color: var(--text-dark);
}

.casa-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--text-dark), var(--text-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.casa-info-card:hover::before {
    transform: scaleX(1);
}

.casa-info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    border-color: var(--border-color);
}

.planta-item {
    background: transparent;
    padding: 0;
}

.planta-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(59, 130, 246, 0.1);
}

.planta-title svg {
    color: var(--text-dark);
    width: 28px;
    height: 28px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.planta-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.7;
    padding: 0.75rem;
    border-radius: 10px;
    transition: var(--transition);
    position: relative;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.feature-item svg {
    color: var(--text-dark);
    flex-shrink: 0;
    margin-top: 2px;
    width: 22px;
    height: 22px;
}

.feature-item span {
    flex: 1;
    font-weight: 500;
}

/* Especificaciones de la casa */
.casa-specs-wrapper {
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.casa-specs {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.casa-spec-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-light);
    padding: 2rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 250px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    color: var(--text-dark);
}

.casa-spec-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--text-dark), var(--text-light));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.casa-spec-item:hover::before {
    transform: scaleY(1);
}

.casa-spec-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    border-color: var(--border-color);
}

.spec-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.casa-spec-item svg {
    color: var(--text-dark);
    flex-shrink: 0;
}

.spec-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.spec-label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.spec-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-dark);
}

.casa-target-wrapper {
    text-align: center;
    margin: 3rem 0;
    position: relative;
    z-index: 1;
}

.casa-target-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--border-color);
}

.casa-target-icon svg {
    color: var(--text-dark);
}

.casa-target {
    font-size: 1.2rem;
    color: var(--text-dark);
    font-style: italic;
    padding: 2rem 2.5rem;
    background: var(--bg-light);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 850px;
    margin: 0 auto;
    border-left: 4px solid var(--text-dark);
    line-height: 1.8;
    font-weight: 500;
    position: relative;
}

.casa-target::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--text-dark);
    opacity: 0.2;
    font-family: serif;
}

/* Botones de acción */
.casa-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 4rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.cta-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--text-dark);
    color: var(--bg-dark);
    padding: 1.2rem 3rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.cta-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-btn-primary:hover::before {
    left: 100%;
}

.cta-btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.7);
    background: var(--text-light);
}

.cta-btn-primary svg {
    width: 22px;
    height: 22px;
}

.cta-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    color: var(--text-dark);
    padding: 1.2rem 3rem;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.cta-btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--text-dark);
    transition: width 0.3s ease;
    z-index: 0;
}

.cta-btn-secondary span,
.cta-btn-secondary svg {
    position: relative;
    z-index: 1;
}

.cta-btn-secondary:hover {
    color: var(--bg-dark);
    border-color: var(--text-dark);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.cta-btn-secondary:hover::before {
    width: 100%;
}

.cta-btn-secondary svg {
    width: 22px;
    height: 22px;
    transition: var(--transition);
}

.cta-btn-secondary:hover svg {
    transform: rotate(5deg);
}

/* ===== Amenidades Section ===== */
.amenidades-section {
    padding: 5rem 0;
    background: var(--bg-white);
}

.amenidades-description {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.amenidades-collage {
    margin-bottom: 3rem;
}

.image-placeholder-large {
    width: 100%;
    height: 400px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1rem;
    border: 2px dashed var(--border-color);
    padding: 2rem;
    text-align: center;
}

.amenidades-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: start;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-dark);
}

.stat-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.amenidades-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.amenidades-list li {
    padding: 0.75rem 0;
    color: var(--text-dark);
    font-size: 1rem;
    border-bottom: 1px solid var(--border-color);
}

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

.amenidades-casas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.amenidad-casa-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
}

.casa-subtitle {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.amenidad-casa-card p {
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.gallery-note {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1.5rem;
}

/* ===== Contacto Section ===== */
.contacto-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto 3rem;
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group select {
    cursor: pointer;
}

.social-section {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.social-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.social-note {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.social-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-block;
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.location-section {
    text-align: center;
    margin-top: 3rem;
}

.location-text {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.location-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* ===== Responsive ===== */

/* Tablet y Mobile */
@media (max-width: 768px) {
    /* OCULTAR menú desktop */
    .nav-menu-desktop {
        display: none !important;
    }

    /* MOSTRAR botón hamburguesa */
    .menu-toggle {
        display: flex !important;
    }

    /* Ajustes del navbar */
    .navbar {
        padding: 0.75rem 0;
    }

    .logo h1 {
        font-size: 1.25rem;
    }

    .cart-btn-icon {
        padding: 0.4rem;
    }

    .cart-btn-icon svg {
        width: 22px;
        height: 22px;
    }

    .cart-badge {
        min-width: 16px;
        height: 16px;
        font-size: 0.65rem;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    /* Ajustes de secciones */
    .hero {
        padding: 6rem 0 4rem;
        min-height: 600px;
        background-attachment: scroll;
    }
    
    /* Asegurar que el hero no se superponga con otras secciones */
    .hero::after {
        display: none;
    }

    .hero .container {
        padding: 0 2rem;
    }

    .hero-content {
        padding: 0;
        margin: 0;
        text-align: left;
        max-width: 100%;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        line-height: 1.2;
        letter-spacing: 0.01em;
        word-wrap: break-word;
        hyphens: none;
        overflow-wrap: break-word;
    }

    /* Mostrar salto de línea en móvil */
    .hero-title .mobile-break {
        display: inline;
    }

    .hero-subtitle {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
        line-height: 1.3;
        letter-spacing: 0.03em;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
        line-height: 1.6;
        max-width: 100%;
    }

    .cta-btn {
        padding: 0.9rem 2rem;
        font-size: 0.9rem;
        letter-spacing: 0.05em;
    }

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

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    /* Mejorar espaciado en móvil */
    .about,
    .products,
    .contact {
        padding: 4rem 0;
    }

    /* Nuevas secciones responsive */
    .about-content-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .casas-grid {
        grid-template-columns: 1fr;
    }

    .planta-details {
        grid-template-columns: 1fr;
    }

    .amenidades-stats {
        grid-template-columns: 1fr;
    }

    .amenidades-casas {
        grid-template-columns: 1fr;
    }

    .casa-actions {
        flex-direction: column;
    }

    .cta-btn-nav {
        display: none;
    }

    /* Estilos responsivos para detalle de casa */
    .casa-detail-section {
        padding: 2rem 0;
    }

    .back-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .back-button span {
        display: none;
    }

    .back-button svg {
        width: 18px;
        height: 18px;
    }

    .section-title {
        font-size: 2rem;
    }

    .casa-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .planta-item {
        padding: 1.5rem;
    }

    .planta-title {
        font-size: 1.1rem;
    }

    .feature-item {
        font-size: 0.9rem;
    }

    /* Carrusel de imágenes - tablet */
    .casa-carousel {
        height: 500px;
    }

    .casa-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .casa-specs {
        flex-direction: column;
        gap: 1rem;
    }

    .casa-spec-item {
        min-width: 100%;
    }
}

/* Desktop - Asegurar que hamburguesa NUNCA se vea */
@media (min-width: 769px) {
    .menu-toggle {
        display: none !important;
    }

    .nav-menu-desktop {
        display: flex !important;
    }
}

/* Mobile pequeño */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 5rem 0 3rem;
        min-height: 500px;
        background-attachment: scroll;
    }

    .hero .container {
        padding: 0 1.5rem;
    }

    .hero-content {
        text-align: left;
        max-width: 100%;
    }

    .hero-title {
        font-size: 1.85rem;
        margin-bottom: 0.8rem;
        line-height: 1.25;
        hyphens: none;
        overflow-wrap: break-word;
        letter-spacing: 0.01em;
        word-wrap: break-word;
    }

    /* Mostrar salto de línea en móvil pequeño */
    .hero-title .mobile-break {
        display: inline;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.2rem;
        line-height: 1.4;
        letter-spacing: 0.02em;
    }

    .hero-description {
        font-size: 0.9rem;
        max-width: 100%;
        margin-bottom: 1.8rem;
        line-height: 1.6;
        opacity: 0.9;
    }

    .cta-btn {
        padding: 0.85rem 1.8rem;
        font-size: 0.8rem;
        letter-spacing: 0.05em;
        width: auto;
        display: inline-block;
    }

    .cart-item {
        flex-direction: column;
    }

    .logo h1 {
        font-size: 1.1rem;
    }

    .cart-btn-icon {
        padding: 0.35rem;
    }

    .cart-btn-icon svg {
        width: 20px;
        height: 20px;
    }

    .cart-badge {
        min-width: 14px;
        height: 14px;
        font-size: 0.6rem;
        top: 1px;
        right: 1px;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Reducir padding en secciones */
    .about,
    .products,
    .contact {
        padding: 3rem 0;
    }

    /* Detalle de casa en móvil pequeño */
    .casa-detail-section {
        padding: 1.5rem 0;
    }

    .back-button {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    /* Carrusel de imágenes - móvil */
    .casa-carousel {
        height: 400px;
    }

    .casa-carousel-btn {
        width: 40px;
        height: 40px;
    }

    .casa-carousel-btn svg {
        width: 20px;
        height: 20px;
    }

    .casa-carousel-prev {
        left: 10px;
    }

    .casa-carousel-next {
        right: 10px;
    }

    .casa-carousel-indicators {
        bottom: 10px;
    }

    .casa-carousel-indicator {
        width: 10px;
        height: 10px;
    }

    /* Grid de información - móvil */
    .casa-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .casa-info-card {
        padding: 1.5rem;
    }

    .planta-title {
        font-size: 1.1rem;
    }

    .feature-item {
        font-size: 0.9rem;
    }

    /* Especificaciones - móvil */
    .casa-specs {
        flex-direction: column;
        gap: 1rem;
    }

    .casa-spec-item {
        min-width: 100%;
        padding: 1.5rem;
        gap: 1rem;
    }

    .spec-icon-wrapper {
        width: 50px;
        height: 50px;
    }

    .spec-value {
        font-size: 1.1rem;
    }

    /* Target wrapper - móvil */
    .casa-target-icon {
        width: 60px;
        height: 60px;
    }

    .casa-target {
        font-size: 1rem;
        padding: 1.5rem;
    }

    /* Botones de acción - móvil */
    .casa-actions {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
    }

    .cta-btn-primary,
    .cta-btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
        font-size: 0.95rem;
    }

    .planta-item {
        padding: 1rem;
    }
}
