/* Variables de color - Estilo Ultra Premium */
:root {
    --bg-dark: #050505;
    --bg-accent: #0f0f0f;
    --bg-gradient: linear-gradient(135deg, #050505 0%, #0a0a0a 50%, #0f0f0f 100%);
    --gold: #d4af37;
    --gold-light: #e6c547;
    --gold-dark: #b8941f;
    --platinum: #e5e5e5;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(212, 175, 55, 0.15);
    --shadow-premium: 0 25px 50px rgba(0, 0, 0, 0.8);
    --shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--platinum);
    font-family: 'Poppins', 'Inter', 'Montserrat', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 300;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

h1 {
    font-weight: 900;
    letter-spacing: -1px;
}

h2 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Animación Fade In */
.fadeIn {
    animation: fadeInAnim 2s ease forwards;
}

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

/* Navbar Glassmorphism Premium */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 10%;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.95), rgba(5, 5, 5, 0.85));
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    min-height: 80px;
    box-sizing: border-box;
}

.logo { 
    font-size: 1.3rem; 
    font-weight: 600; 
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Playfair Display', serif;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo span { 
    color: var(--gold);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    flex-shrink: 0;
}

.nav-links a { 
    text-decoration: none; 
    color: white; 
    font-size: 0.95rem; 
    transition: 0.3s;
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 5px;
}

.nav-links a:hover { 
    color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
}

/* Menú Hamburguesa - OCULTO EN DESKTOP */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 10001;
    gap: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--gold);
    transition: all 0.3s ease;
    display: block;
    border-radius: 2px;
}

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

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

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

/* Hero Section Premium */
.hero {
    height: 100vh;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 100%),
        url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&q=90&w=1600') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 10% 0 10%;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(5, 5, 5, 0.4) 100%);
    pointer-events: none;
}

.hero h1 { 
    font-size: 4rem; 
    margin-bottom: 30px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.gold-text { 
    color: var(--gold);
    text-shadow: 0 2px 6px rgba(212, 175, 55, 0.3);
    font-weight: 900;
}

.typewriter {
    display: inline-block;
    position: relative;
}

.typewriter::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 1.2em;
    background: var(--gold);
    animation: blink 1s infinite;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero p { 
    max-width: 700px; 
    margin: 0 auto 40px; 
    font-size: 1.2rem; 
    color: var(--platinum);
    font-weight: 300;
    line-height: 1.8;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Botones Premium */
.btn-primary, .btn-secondary {
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    margin: 10px;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-primary { 
    background: linear-gradient(135deg, var(--gold), var(--gold-light)); 
    color: var(--bg-dark);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover { 
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4);
}

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

.btn-secondary:hover { 
    background: var(--gold);
    color: var(--bg-dark);
    border-color: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

/* Secciones Premium */
.services, .about, .testimonials { 
    padding: 120px 10%; 
    text-align: center; 
}

.section-title { 
    font-size: 3rem; 
    margin-bottom: 60px; 
    color: var(--gold);
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 6px rgba(212, 175, 55, 0.2);
}

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

/* Glassmorphism Cards Premium */
.glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 50px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.glass:hover::before {
    opacity: 0.6;
}

.card:hover {
    border-color: var(--gold);
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-gold);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.02), rgba(255, 255, 255, 0.02));
}

.card h3 { 
    color: var(--gold); 
    margin-bottom: 15px; 
}

/* About Section */
.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

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

.about-text h2 {
    color: var(--gold);
    font-size: 2.5rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 30px;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.highlight-item {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    transition: 0.3s;
}

.highlight-item:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    background: rgba(197, 160, 89, 0.05);
}

.highlight-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 8px;
}

.highlight-label {
    font-size: 0.9rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-motto {
    font-size: 1.2rem;
    padding: 25px;
    background: rgba(197, 160, 89, 0.1);
    border-left: 4px solid var(--gold);
    border-radius: 5px;
    margin-top: 30px;
}

.about-image-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
}

.about-image-wrapper:hover {
    transform: scale(1.02);
}

.about-image-wrapper img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 40px 30px 30px;
    transform: translateY(100%);
    transition: 0.4s ease;
}

.about-image-wrapper:hover .image-overlay {
    transform: translateY(0);
}

.overlay-text h3 {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.overlay-text p {
    color: white;
    font-size: 1rem;
    margin: 0;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 10%;
    background: var(--bg-accent);
}

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

.testimonial {
    padding: 30px;
    text-align: left;
    transition: 0.3s;
}

.testimonial:hover {
    transform: translateY(-5px);
}

.stars {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--gold);
    text-shadow: 0 2px 4px rgba(212, 175, 55, 0.3);
}

.stars i {
    margin: 0 2px;
    animation: starPulse 2s ease-in-out infinite;
}

.stars i:nth-child(2) { animation-delay: 0.2s; }
.stars i:nth-child(3) { animation-delay: 0.4s; }
.stars i:nth-child(4) { animation-delay: 0.6s; }
.stars i:nth-child(5) { animation-delay: 0.8s; }

@keyframes starPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.client-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.client-info strong {
    display: block;
    color: var(--gold);
    margin-bottom: 5px;
}

.client-info span {
    color: #999;
    font-size: 0.9rem;
}

/* Contact Section */
.contact { 
    padding: 120px 10%; 
    background: linear-gradient(135deg, #0f0f0f, #0a0a0a);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
}

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

.input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

input, textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 15px;
    color: white;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--gold);
}

button { 
    cursor: pointer; 
    border: none; 
}

/* Footer Premium */
footer {
    background: linear-gradient(135deg, #050505, #0a0a0a);
    padding: 80px 10% 40px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h3 {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.footer-section p {
    color: var(--platinum);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer-section a {
    color: var(--platinum);
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
    margin-bottom: 8px;
}

.footer-section a:hover {
    color: var(--gold);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    justify-content: flex-start;
}

.social-link i {
    transition: all 0.3s;
}

.social-link {
    color: var(--gold);
    font-size: 1.5rem;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    margin: 0 5px;
}

.social-link:hover {
    color: var(--gold-light);
    transform: translateY(-3px);
    text-shadow: 0 4px 8px rgba(212, 175, 55, 0.4);
}

.footer-section p i {
    margin-right: 10px;
    color: var(--gold);
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

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

.footer-bottom a {
    color: var(--gold);
    text-decoration: none;
    transition: 0.3s;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transition: all 0.3s ease;
    animation: pulse-green 2s infinite;
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

.whatsapp-float .tooltip {
    visibility: hidden;
    width: 180px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%; 
    right: 0;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
    font-family: 'Poppins', sans-serif;
}

.whatsapp-float:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

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

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--bg-dark);
    margin: 15% auto;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--glass-border);
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--white);
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--gold);
}

.modal-btn {
    margin-top: 20px;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: var(--gold);
    color: black;
    padding: 15px 25px;
    border-radius: 5px;
    font-weight: 600;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1500;
}

.toast.show {
    transform: translateX(0);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: var(--gold);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    /* Navbar Mobile */
    .navbar {
        padding: 20px 5%;
    }
    
    .logo {
        font-size: 1.1rem;
        z-index: 10002;
    }
    
    /* Mostrar hamburguesa en mobile */
    .hamburger {
        display: flex;
        z-index: 10002;
    }
    
    /* Menú mobile - OCULTO POR DEFECTO */
    .nav-links {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        width: 100%;
        text-align: center;
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        border-bottom: 2px solid var(--gold);
        padding: 30px 0;
        z-index: 10001;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
        transition: left 0.3s ease;
        gap: 0;
    }
    
    /* Cuando se activa la clase .active, el menú aparece */
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
        width: 100%;
    }
    
    .nav-links a {
        color: var(--platinum);
        font-size: 1.2rem;
        padding: 15px 25px;
        border-radius: 30px;
        transition: all 0.3s ease;
        display: block;
        width: 80%;
        margin: 0 auto;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links a:hover {
        background: var(--gold);
        color: var(--bg-dark);
        transform: scale(1.05);
        border-color: var(--gold);
    }
    
    /* Hero Mobile */
    .hero { 
        padding: 120px 5% 40px 5%;
        height: auto;
        min-height: 100vh;
    }
    
    .hero h1 { 
        font-size: 2.2rem;
        margin-top: 20px;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 15px 30px;
        font-size: 0.9rem;
        margin: 8px;
    }
    
    /* Sections Mobile */
    .services, .about, .testimonials {
        padding: 80px 5%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* About Mobile */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-container {
        padding: 40px 25px;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-image-wrapper img {
        height: 250px;
    }
    
    /* Contact Mobile */
    .input-group {
        grid-template-columns: 1fr;
    }
    
    /* Testimonials Mobile */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Modal Mobile */
    .modal-content {
        margin: 30% auto;
        width: 85%;
        padding: 30px 20px;
    }
    
    /* WhatsApp Mobile */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-float img {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .logo {
        font-size: 1rem;
    }
}