/* --- VARIABLES --- */
:root {
    --black: #050505;
    --dark-grey: #1a1a1a;
    --grey: #333333;
    --light-grey: #f4f4f4;
    --white: #ffffff;
    --gold: #C9A14A;
    --gold-hover: #b38e3e;
    --text-main: #333333;
    --text-light: #cccccc;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --transition: all 0.3s ease;
}

/* --- RESET & GLOBALS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--black);
}

.section-title span {
    color: var(--gold);
    font-style: italic;
}

.section-subtitle {
    text-align: center;
    color: var(--grey);
    margin-bottom: 40px;
}

/* --- COLORES DE FONDO --- */
.bg-dark-grey {
    background-color: var(--dark-grey);
    color: var(--white);
}
.bg-dark-grey .section-title { color: var(--white); }

.bg-light-grey {
    background-color: var(--light-grey);
}

/* --- GRIDS --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* --- BOTONES --- */
.btn-gold {
    display: inline-block;
    background-color: var(--gold);
    color: var(--white);
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--gold);
    transition: var(--transition);
}
.btn-gold:hover {
    background-color: transparent;
    color: var(--gold);
}

/* --- CARGADOR --- */
#loader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--black);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}
.spinner {
    width: 50px; height: 50px;
    border: 3px solid rgba(201, 161, 74, 0.3);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s infinite linear;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* --- HEADER --- */
header {
    position: fixed;
    top: 0; width: 100%;
    background: transparent;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}
header.scrolled {
    background: rgba(5, 5, 5, 0.95);
    padding: 15px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
header.scrolled .logo, header.scrolled .nav-menu a, header.scrolled .social-icon {
    color: var(--white) !important;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 2px;
}
.logo span { color: var(--gold); font-weight: 300; }

.nav-menu ul {
    display: flex;
    gap: 25px;
}
.nav-menu a {
    color: var(--white);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    position: relative;
}
.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: -5px; left: 0;
    background-color: var(--gold);
    transition: var(--transition);
}
.nav-menu a:hover::after { width: 100%; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.social-icon { color: var(--white); font-size: 1.2rem; }
.social-icon:hover { color: var(--gold); }
.btn-primary {
    color: var(--gold);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hamburger { display: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }

/* --- HERO --- */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1560066984-138dadb4c035?auto=format&fit=crop&q=80&w=1920') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}
.hero h1 { font-size: 4rem; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; font-weight: 300; }

/* --- SERVICES BANNER --- */
.services-banner { padding: 50px 0; text-align: center; border-bottom: 2px solid var(--gold); }
.service-item i { font-size: 2.5rem; color: var(--gold); margin-bottom: 15px; }
.service-item h3 { font-size: 1.3rem; margin-bottom: 10px; }
.service-item p { color: var(--text-light); font-size: 0.9rem; }

/* --- CARDS GENERALES --- */
.card {
    background: var(--white);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
.card:hover { transform: translateY(-10px); }

/* EQUIPO */
.team-card img { 
    width: 100%; 
    min-width: 100%; /* Forces the image to stretch to the exact edges */
    height: 350px; 
    object-fit: cover; 
    object-position: center top; /* Keeps the focus on their faces instead of the center of the image */
    display: block; 
    margin: 0;
}
.team-info { padding: 25px; text-align: center; }
.team-info h3 { font-size: 1.2rem; }
.team-info .role { color: var(--gold); font-size: 0.9rem; font-weight: 600; margin-bottom: 15px; text-transform: uppercase;}
.team-info p { font-size: 0.9rem; color: var(--grey); }

/* PRODUCTOS */
.product-card { border: 1px solid var(--light-grey); text-align: center; }
.product-img { height: 250px; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-img img { transform: scale(1.1); }
.product-info { padding: 20px; }
.product-info h3 { font-size: 1.1rem; margin-bottom: 10px; font-family: var(--font-body); font-weight: 600;}
.product-info .price { color: var(--gold); font-weight: 700; font-size: 1.2rem; }

/* SOBRE NOSOTROS */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-text p { color: var(--text-light); margin-bottom: 20px; font-size: 1.05rem; }
.about-image img { width: 100%; border: 1px solid var(--gold); padding: 10px; }

/* RESEÑAS */
.review-card { background: var(--white); padding: 30px; text-align: center; box-shadow: 0 5px 20px rgba(0,0,0,0.05); border-top: 3px solid var(--gold); }
.stars { color: var(--gold); font-size: 1.2rem; margin-bottom: 15px; }
.review-card p { font-style: italic; margin-bottom: 20px; color: var(--grey); }
.review-card h4 { font-family: var(--font-body); font-size: 0.9rem; text-transform: uppercase; }

/* GALERÍA */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 15px; }
.gallery-img { width: 100%; height: 300px; object-fit: cover; cursor: pointer; transition: opacity 0.3s; }
.gallery-img:hover { opacity: 0.8; }

/* LIGHTBOX */
.lightbox { display: none; position: fixed; z-index: 2000; padding-top: 60px; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.9); }
.lightbox-content { margin: auto; display: block; max-width: 90%; max-height: 80vh; border: 2px solid var(--gold); }
.close-lightbox { position: absolute; top: 30px; right: 40px; color: var(--white); font-size: 40px; font-weight: bold; cursor: pointer; }

/* MODAL RESERVA */
.modal { display: none; position: fixed; z-index: 3000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); }
.modal-content { background-color: var(--white); margin: 15% auto; padding: 20px; border: 1px solid var(--gold); width: 80%; max-width: 500px; text-align: center; }
.close-modal { color: var(--grey); float: right; font-size: 28px; font-weight: bold; cursor: pointer; }
.close-modal:hover { color: var(--black); }

/* BLOG */
.blog-card { background: var(--dark-grey); border: 1px solid var(--grey); transition: var(--transition);}
.blog-card:hover { border-color: var(--gold); }
.blog-card img { width: 100%; height: 250px; object-fit: cover; }
.blog-content { padding: 25px; }
.blog-content h3 { font-size: 1.2rem; margin-bottom: 15px; color: var(--white); }
.blog-content p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 20px; }
.read-more { color: var(--gold); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; }
.read-more i { margin-left: 5px; transition: transform 0.3s; }
.read-more:hover i { transform: translateX(5px); }

/* BLOG POST PAGE */
.blog-post { max-width: 800px; margin: 0 auto; }
.blog-post-img { width: 100%; height: 400px; object-fit: cover; margin-bottom: 30px; border: 1px solid var(--gold); padding: 5px; }
.blog-post h1 { font-size: 2.5rem; color: var(--black); margin-bottom: 20px; text-align: center; }
.blog-meta { display: flex; justify-content: center; gap: 20px; margin-bottom: 30px; color: var(--grey); font-size: 0.9rem; }
.blog-meta span { display: flex; align-items: center; gap: 5px; }
.blog-content { line-height: 1.8; color: var(--text-main); }
.blog-content h2 { font-size: 1.5rem; color: var(--black); margin: 40px 0 20px 0; }
.blog-content h3 { font-size: 1.2rem; margin: 30px 0 15px 0; }
/* We add .blog-post in front to only target the article page */
.blog-post .blog-content p,
.blog-post .blog-content ul { 
    margin-bottom: 20px; 
    color: var(--black); 
    font-size: 1rem; /* Resets the font size (the homepage cards shrink it to 0.9rem) */
}
.blog-content ul { margin: 20px 0; padding-left: 20px; }
.blog-content li { margin-bottom: 10px; }
.blog-content strong { color: var(--gold); }
.blog-navigation { text-align: center; margin-top: 50px; }

/* FOOTER */
.footer { background-color: var(--black); color: var(--text-light); padding: 60px 0 20px; }
.footer h3 { color: var(--white); margin-bottom: 20px; font-family: var(--font-body); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px;}
.footer-info p { margin-bottom: 20px; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--grey); color: var(--white); border-radius: 50%; margin-right: 10px; transition: var(--transition); }
.social-links a:hover { background: var(--gold); }
.footer-contact p { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.footer-contact i { color: var(--gold); }
.footer-bottom { text-align: center; padding-top: 40px; margin-top: 40px; border-top: 1px solid var(--grey); font-size: 0.8rem; }

/* BACK TO TOP */
#back-to-top { position: fixed; bottom: 30px; right: 30px; background: var(--gold); color: var(--white); width: 45px; height: 45px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.2rem; opacity: 0; pointer-events: none; transition: var(--transition); z-index: 999; }
#back-to-top.visible { opacity: 1; pointer-events: auto; }
#back-to-top:hover { background: var(--black); border: 1px solid var(--gold); color: var(--gold); }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    header.scrolled .hamburger { color: var(--white); }
    
    .nav-menu {
        position: fixed; top: 0; left: -100%; width: 250px; height: 100vh;
        background-color: var(--black); padding-top: 80px; transition: 0.4s ease;
    }
    .nav-menu.active { left: 0; }
    .nav-menu ul { flex-direction: column; align-items: center; gap: 30px; }
    .nav-menu a { color: var(--white); }
    
    .header-actions .btn-primary { display: none; } /* Ocultar el teléfono en el header móvil para ahorrar espacio */
    .hero h1 { font-size: 2.5rem; }
    .section-padding { padding: 50px 0; }
}

/* --- NUEVOS ESTILOS DE SERVICIOS (Reemplaza los antiguos estilos de productos) --- */
.service-card {
    background: var(--dark-grey);
    padding: 40px 30px;
    border: 1px solid var(--grey);
    text-align: center;
    transition: var(--transition);
}
.service-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
}
.service-card i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 20px;
}
.service-card h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.4rem;
}
.service-list {
    text-align: left;
    color: var(--text-light);
}
.service-list li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
}
.service-list li::before {
    content: "•";
    color: var(--gold);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Modificadores de texto utilitarios */
.text-white { color: var(--white) !important; }
.text-light { color: var(--text-light) !important; }

/* --- MODAL DE CITA DUAL --- */
.modal-subtitle {
    margin-bottom: 25px;
    color: var(--grey);
}
.contact-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}
.contact-box {
    background: var(--light-grey);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
}
.contact-box i {
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 10px;
}
.contact-box h4 {
    margin-bottom: 15px;
    font-size: 1rem;
}
.btn-gold-outline {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-weight: 600;
    transition: var(--transition);
}
.btn-gold-outline:hover {
    background: var(--gold);
    color: var(--white);
}

@media (max-width: 600px) {
    .contact-options {
        grid-template-columns: 1fr; /* Apilar en móviles */
    }
}

/* --- CONTACTO FOOTER --- */
.contact-dept {
    margin-bottom: 10px !important;
    font-size: 0.9rem;
    line-height: 1.4;
}
.contact-dept a {
    color: var(--gold);
    font-weight: bold;
}
.contact-dept a:hover {
    color: var(--white);
}
.legal-links {
    margin-bottom: 10px;
}
.legal-links a {
    color: var(--text-light);
    margin: 0 10px;
    font-size: 0.85rem;
}
.legal-links a:hover {
    color: var(--gold);
}

/* --- PÁGINA DE GALERÍA --- */
.category-title {
    font-size: 1.8rem;
    color: var(--black);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 10px;
    display: inline-block;
}
.category-title i {
    color: var(--gold);
}
