/* ===== ROOT VARIABLES ===== */
:root {
    --color-primary: #0B0B0C;
    --color-secondary: #C7A144;
    --color-white: #FFFFFF;
    --color-gray-light: #f8f9fa;
    --color-gray-dark: #1a1a1a;
    --color-glass: rgba(199, 161, 68, 0.1);
    --color-glass-border: rgba(199, 161, 68, 0.3);
    
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --glass-backdrop: blur(10px);
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Performance optimizations */
img {
    max-width: 100%;
    height: auto;
    loading: lazy;
}

.hero-bg {
    will-change: transform;
}

.fade-in {
    will-change: opacity, transform;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--color-primary);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    font-display: swap;
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--color-secondary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

/* ===== GLASS MORPHISM ===== */
.glass-card {
    background: var(--color-glass);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
}

.glass-card:hover {
    background: rgba(199, 161, 68, 0.15);
    border-color: rgba(199, 161, 68, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(199, 161, 68, 0.2);
}

.glass-nav {
    background: rgba(11, 11, 12, 0.9);
    backdrop-filter: var(--glass-backdrop);
    border-bottom: 1px solid var(--color-glass-border);
}

/* ===== NAVIGATION ===== */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
}

.logo-text {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-secondary) !important;
    text-decoration: none;
}

.nav-link {
    color: var(--color-white) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--color-secondary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 80%;
}

/* ===== BUTTONS ===== */
.btn-gold {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #D4B55A 50%, #C7A144 100%);
    border: none;
    color: var(--color-primary);
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    transition: all 0.4s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(199, 161, 68, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-gold::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.6s;
}

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

.btn-gold:hover {
    background: linear-gradient(135deg, #D4B55A 0%, var(--color-secondary) 50%, #B8973D 100%);
    color: var(--color-primary);
    box-shadow: 0 8px 25px rgba(199, 161, 68, 0.5);
    transform: translateY(-3px) scale(1.05);
}

.btn-outline-gold {
    background: linear-gradient(135deg, transparent 0%, rgba(199, 161, 68, 0.05) 100%);
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    transition: all 0.4s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.btn-outline-gold:hover {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #D4B55A 100%);
    color: var(--color-primary);
    box-shadow: 0 8px 25px rgba(199, 161, 68, 0.5);
    transform: translateY(-3px) scale(1.05);
    border-color: #D4B55A;
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, #1a1a1a 50%, #2a2a2a 100%);
    overflow: hidden;
    padding: 2rem 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(199, 161, 68, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/fachada.jpg') center/cover no-repeat;
    opacity: 0.3;
    z-index: -1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #C7A144 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    line-height: 1.1;
    letter-spacing: -0.02em;
    position: relative;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.hero-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ffffff 0%, #C7A144 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(20px);
    opacity: 0.3;
    z-index: -1;
}

@keyframes titleGlow {
    0% {
        filter: drop-shadow(0 0 10px rgba(199, 161, 68, 0.3));
    }
    100% {
        filter: drop-shadow(0 0 20px rgba(199, 161, 68, 0.6));
    }
}

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

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
}

.hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    font-weight: 400;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

.hero-ctas .btn {
    margin: 0.5rem;
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in[data-delay="0.2s"] {
    animation-delay: 0.2s;
}

.fade-in[data-delay="0.4s"] {
    animation-delay: 0.4s;
}

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

/* ===== SECTIONS ===== */
.section-dark {
    background: linear-gradient(135deg, var(--color-gray-dark) 0%, var(--color-primary) 100%);
}

section {
    padding: 5rem 0;
}

/* ===== SPACE CARDS ===== */
.space-card {
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.space-icon {
    font-size: 3rem;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

.space-card h4 {
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.space-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* ===== PRICING CARDS ===== */
.pricing-card {
    text-align: center;
    position: relative;
    height: 100%;
}

.pricing-card.featured {
    border: 2px solid var(--color-secondary);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-secondary);
    color: var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-header h4 {
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.pricing-period {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.pricing-price {
    margin-bottom: 2rem;
}

.pricing-price .currency {
    font-size: 1rem;
    color: var(--color-secondary);
}

.pricing-price .amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.pricing-price .period {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

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

.pricing-features li {
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.8);
}

.pricing-features .fas.fa-check {
    color: var(--color-secondary);
    margin-right: 0.5rem;
}

/* ===== FEATURES ===== */
.feature-item {
    text-align: center;
    margin-bottom: 2rem;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.feature-item h5 {
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.8);
}

/* ===== GALLERY ===== */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(199, 161, 68, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

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

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    padding: 3rem 2rem;
}

.testimonial-stars {
    font-size: 1.2rem;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.testimonial-author strong {
    color: var(--color-secondary);
}

/* ===== PROCESS STEPS ===== */
.process-steps {
    padding: 2rem;
}

.process-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.step-number {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-content h5 {
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.step-content p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* ===== CONTACT ===== */
.contact-info {
    padding: 2rem 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-icon {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-content h5 {
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.contact-content p,
.contact-content a {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.contact-content a:hover {
    color: var(--color-secondary);
}

/* ===== FORM STYLES ===== */
.form-control, .form-select {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--color-glass-border);
    color: var(--color-white);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 0.25rem rgba(199, 161, 68, 0.25);
    color: var(--color-white);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-label {
    color: var(--color-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-select option {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid var(--color-glass-border);
}

.footer h5 {
    margin-bottom: 1rem;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact i {
    color: var(--color-secondary);
    width: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-secondary);
}

.social-links .social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--color-secondary);
    color: var(--color-primary);
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
}

.social-links .social-link:hover {
    background-color: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
    transform: translateY(-3px);
}

.border-gold {
    border-color: var(--color-secondary) !important;
}

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

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    z-index: 1000;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #20b358;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.8);
    }
    100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
}

/* ===== MODAL STYLES ===== */
.modal-content {
    background-color: var(--color-primary);
    border: 1px solid var(--color-secondary);
}

.modal-header {
    border-bottom: 1px solid var(--color-secondary);
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* ===== CAROUSEL CONTROLS ===== */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: var(--color-secondary);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: var(--transition);
}

.carousel-control-prev {
    left: -60px;
}

.carousel-control-next {
    right: -60px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 20px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(11, 11, 12, 0.95);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: var(--border-radius);
        border: 1px solid var(--color-glass-border);
    }
    
    .pricing-card.featured {
        transform: none;
        margin-top: 2rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 85vh;
        padding: 1.5rem 0;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-ctas {
        padding: 0 1rem;
    }
    
    .hero-ctas .btn {
        display: block;
        margin: 0.75rem auto;
        width: 100%;
        max-width: 280px;
        padding: 0.875rem 1.5rem;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .space-card,
    .pricing-card {
        margin-bottom: 2rem;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin: 0 auto 1rem auto;
    }
}

@media (max-width: 575.98px) {
    .logo-text {
        font-size: 1rem;
    }
    
    .hero-section {
        min-height: 80vh;
        padding: 1rem 0;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        line-height: 1.3;
        padding: 0 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
        line-height: 1.5;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-ctas {
        padding: 0 0.5rem;
    }
    
    .hero-ctas .btn {
        margin: 0.5rem auto;
        max-width: 260px;
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .glass-card {
        padding: 1.5rem;
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto 1rem auto;
    }
}

/* ===== EXTRA SMALL MOBILE DEVICES ===== */
@media (max-width: 480px) {
    .hero-section {
        min-height: 75vh;
        padding: 0.75rem 0;
    }
    
    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 0.75rem;
        padding: 0 0.25rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
        padding: 0 0.75rem;
    }
    
    .hero-ctas .btn {
        margin: 0.4rem auto;
        max-width: 240px;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

/* ===== LANDSCAPE MOBILE ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding: 0.5rem 0;
    }
    
    .hero-title {
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        margin-bottom: 1rem;
    }
    
    .hero-ctas .btn {
        margin: 0.25rem auto;
        padding: 0.5rem 1rem;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    :root {
        --color-secondary: #FFD700;
        --color-glass-border: rgba(255, 215, 0, 0.5);
    }
    
    .glass-card {
        border-width: 2px;
    }
    
    .btn-gold,
    .btn-outline-gold {
        border-width: 3px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .whatsapp-float,
    .carousel-control-prev,
    .carousel-control-next {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .section-title,
    .text-gold {
        color: #000 !important;
    }
    
    .glass-card {
        background: transparent !important;
        border: 1px solid #000 !important;
    }
}
