:root {
    --primary: #1a2a3a;   /* Azul oscuro serio */
    --secondary: #2c3e50;
    --gold: #c5a059;      /* Dorado elegante */
    --light: #f4f4f4;
    --white: #ffffff;
    --text-gray: #555;
    --whatsapp: #25d366;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

html { scroll-behavior: smooth; }

body { background: var(--light); color: #333; overflow-x: hidden; }

/* Navegación */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.logo-container { display: flex; align-items: center; gap: 10px; }
.logo-img { border-radius: 50%; width: 45px; height: 45px; object-fit: cover; border: 2px solid var(--gold); }
.logo { color: var(--white); font-size: 1.5rem; font-weight: bold; }
.logo span { color: var(--gold); }

.nav-links { list-style: none; display: flex; gap: 20px; align-items: center; }
.nav-links a { color: var(--white); text-decoration: none; font-weight: 500; transition: 0.3s; }
.nav-links a:hover { color: var(--gold); }

.btn-whatsapp-nav {
    background: var(--whatsapp);
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: bold;
    display: flex; align-items: center; gap: 8px;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp-nav:hover { background: #1ebe57; transform: translateY(-2px); color: white !important; }

/* Hero Section */
.hero {
    height: 90vh;
    background: url('../image/backroom.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 20, 30, 0.75);
}
.hero-content { position: relative; z-index: 1; color: var(--white); max-width: 800px; padding: 20px; }
.hero h1 { font-size: 3.5rem; margin-bottom: 20px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.hero p { font-size: 1.3rem; margin-bottom: 30px; }

.hero-btns { display: flex; gap: 20px; justify-content: center; }
.btn-main, .btn-submit {
    background: var(--gold); color: var(--primary); padding: 12px 30px; text-decoration: none;
    font-weight: bold; border-radius: 5px; border: none; cursor: pointer; transition: 0.3s;
}
.btn-main:hover, .btn-submit:hover { background: #e0b666; transform: scale(1.05); }
.btn-secondary {
    border: 2px solid var(--gold); color: var(--white); padding: 12px 30px; text-decoration: none;
    border-radius: 5px; font-weight: bold; transition: 0.3s;
}
.btn-secondary:hover { background: var(--gold); color: var(--primary); }

/* Stats */
.stats {
    display: flex; justify-content: space-around; padding: 4rem 10%;
    background: var(--primary); color: white; text-align: center;
    position: relative; top: -50px; margin: 0 5%; border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.stat-item i { font-size: 2rem; color: var(--gold); margin-bottom: 10px; }
.stat-item h3 { font-size: 2.5rem; }

/* Títulos de Sección */
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: 2.5rem; color: var(--primary); }
.section-title p { color: var(--text-gray); margin-top: 10px; }
.underline { width: 80px; height: 3px; background: var(--gold); margin: 10px auto; }

/* Servicios */
.services { padding: 4rem 10%; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.service-card {
    background: white; border-radius: 10px; overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: 0.3s;
}
.service-card:hover { transform: translateY(-10px); }
.img-wrapper { height: 200px; overflow: hidden; }
.img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.service-card:hover img { transform: scale(1.1); }
.service-info { padding: 25px; text-align: center; }
.service-info i { font-size: 2rem; color: var(--gold); margin-bottom: 15px; display: block; }
.service-info h3 { color: var(--secondary); margin-bottom: 10px; }

/* Equipo */
.team { padding: 4rem 10%; background: white; }
.team-grid { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.team-member { text-align: center; width: 300px; }
.member-img { position: relative; overflow: hidden; border-radius: 10px; margin-bottom: 15px; }
.member-img img { width: 100%; height: 350px; object-fit: cover; }
.social-overlay {
    position: absolute; bottom: -50px; left: 0; width: 100%; background: rgba(26, 42, 58, 0.9);
    padding: 10px; transition: 0.3s; display: flex; justify-content: center; gap: 15px;
}
.member-img:hover .social-overlay { bottom: 0; }
.social-overlay a { color: var(--gold); font-size: 1.2rem; }

/* Testimonios (NUEVO) */
.testimonials { padding: 4rem 10%; background: var(--light); }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.testimonial-card {
    background: white; padding: 30px; border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); position: relative;
}
.testimonial-card::before {
    content: "\201C"; font-size: 5rem; color: rgba(197, 160, 89, 0.2);
    position: absolute; top: 0; left: 20px; font-family: serif;
}
.stars { color: #f1c40f; margin-bottom: 15px; letter-spacing: 2px; }
.testimonial-card p { font-style: italic; color: #555; margin-bottom: 20px; line-height: 1.6; }
.client-info { display: flex; align-items: center; gap: 15px; }
.client-info img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.client-info span { font-weight: bold; color: var(--primary); }

/* Contacto y Mapa */
.contact-section { padding: 4rem 10%; background: white; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
@media(max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form-wrapper h3, .map-wrapper h3 { margin-bottom: 20px; color: var(--primary); font-size: 1.8rem; }
.input-group { display: flex; gap: 20px; }
input, select, textarea {
    width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ddd;
    border-radius: 5px; outline: none; transition: 0.3s;
}
input:focus, textarea:focus { border-color: var(--gold); }
.btn-submit { width: 100%; font-size: 1.1rem; }

.map-wrapper p { margin-bottom: 20px; color: #666; }
.map-wrapper iframe { border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

/* Footer Pro */
.main-footer { background: var(--primary); color: #ccc; padding: 4rem 5% 1rem; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: white; margin-bottom: 20px; font-size: 1.3rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #ccc; text-decoration: none; transition: 0.3s; }
.footer-col ul li a:hover { color: var(--gold); padding-left: 5px; }
.footer-col i { color: var(--gold); margin-right: 10px; width: 20px; }
.social-icons a { display: inline-block; width: 40px; height: 40px; background: rgba(255,255,255,0.1); color: white; text-align: center; line-height: 40px; border-radius: 50%; margin-right: 10px; transition: 0.3s; }
.social-icons a:hover { background: var(--gold); color: var(--primary); }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }

/* Botón flotante WhatsApp */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px; background: #25d366; color: white;
    width: 60px; height: 60px; border-radius: 50%; text-align: center; font-size: 30px;
    display: flex; justify-content: center; align-items: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3); z-index: 2000; text-decoration: none;
    transition: 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* Animación Reveal */
.reveal { opacity: 0; transform: translateY(50px); transition: all 1s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Ajustes extra para móviles */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; } /* Título más pequeño para que quepa bien */
    .hero p { font-size: 1rem; }
    
    .nav-links {
        display: none; /* Aquí podrías usar JS para mostrarlo, o dejarlo limpio */
    }
    
    .stats {
        flex-direction: column; /* Las estadísticas se ponen una debajo de otra */
        gap: 20px;
        top: 0;
        margin: 20px 5%;
    }

    .contact-grid {
        grid-template-columns: 1fr; /* Formulario arriba, mapa abajo */
    }
}