:root {
    --color-primary: #000000;
    --color-secondary: #D4AF37;
    --color-light: #f8f9fa;
    --color-dark: #212529;
}

body {
    font-family: 'Roboto', sans-serif;
    padding-top: 76px;
    color: var(--color-dark);
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Playfair Display', serif;
}

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

/* Navbar */
.navbar {
    background-color: var(--color-primary) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.navbar-brand {
    color: var(--color-secondary) !important;
}

.brand-name {
    color: var(--color-secondary);
    font-size: 1.1rem;
}

.sub-brand {
    font-size: 0.9rem;
    color: var(--color-light) !important;
}

.nav-link {
    color: var(--color-light) !important;
    font-weight: 500;
    position: relative;
    margin: 0 0.5rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-secondary);
    transition: width 0.3s ease;
}

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

.navbar-toggler {
    border-color: var(--color-secondary);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28212, 175, 55, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Logo personalizado */
.logo-container {
    width: 50px;
    height: 50px;
    border: 2px solid var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #000000, #1a1a1a);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.logo-initial {
    color: var(--color-secondary);
    font-size: 1.8rem;
    font-weight: bold;
    font-family: 'Playfair Display', serif;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url('https://images.unsplash.com/photo-1589391886645-d51941baf7fb?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1770&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0;
}

.hero h1 {
    color: var(--color-secondary);
}

.hero .sub-title {
    color: var(--color-light);
    font-weight: 500;
    border-bottom: 2px solid var(--color-secondary);
    display: inline-block;
    padding-bottom: 10px;
}

.btn-primary {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-primary);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #c19d2e;
    border-color: #c19d2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-outline-light {
    border-width: 2px;
    font-weight: 600;
    padding: 10px 28px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* Section Titles */
.section-title {
    color: var(--color-primary);
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--color-secondary);
    bottom: 0;
    left: 0;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Cards */
.card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.servicio-card {
    border-left: 4px solid var(--color-secondary);
}

.servicio-card .card-body i {
    color: var(--color-secondary);
    transition: transform 0.3s ease;
}

.servicio-card:hover .card-body i {
    transform: scale(1.1);
}

/* Formulario */
.form-control, .form-select {
    border-radius: 4px;
    padding: 12px;
    border: 1px solid #ddd;
}

.form-control:focus, .form-select:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
}

/* Footer */
footer {
    background-color: var(--color-primary) !important;
}

footer .logo-initial {
    width: 50px;
    height: 50px;
    border: 2px solid var(--color-secondary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #000000, #1a1a1a);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

footer h3, footer h4, footer .h5, footer .h6 {
    color: var(--color-secondary);
}

/* Botones Fijos */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    background-color: #25D366;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    color: white;
}


/* Estilos para la Sección de Preguntas Frecuentes (FAQ) */
.accordion-item {
    border-color: #eee;
}

.accordion-button {
    font-weight: 500;
    color: var(--color-dark);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25); /* Sombra dorada al hacer foco */
    border-color: var(--color-secondary);
}

.accordion-button:not(.collapsed) {
    color: var(--color-primary);
    background-color: rgba(212, 175, 55, 0.1); /* Fondo dorado muy suave */
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}

/* Cambia el color del ícono +/- del acordeón */
.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23D4AF37'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(-180deg);
}


/*
==============================================
===== SECCIÓN RESPONSIVE PARA MÓVILES =====
==============================================
*/

/* Para tablets y móviles grandes (hasta 991px) */
@media (max-width: 991.98px) {
    .hero h1 {
        font-size: 2.8rem; /* Reducimos el título principal */
    }
}


/* Para móviles (hasta 767px) */
@media (max-width: 767.98px) {
    /* Ajustamos el padding superior del body para el navbar colapsado */
    body {
        padding-top: 70px;
    }

    /* Reducimos el espaciado del Hero para que no sea tan grande en móviles */
    .hero {
        padding: 80px 15px;
    }
    
    /* Ajustamos el tamaño de los títulos del Hero para que no se desborden */
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2; /* Mejora el espaciado entre líneas si el título se corta */
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .hero .lead {
        font-size: 1rem;
    }
    
    /* Hacemos los botones un poco más pequeños */
    .hero .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Títulos de sección más pequeños */
    .section-title {
        font-size: 1.8rem;
    }

    /* Ajustamos la línea decorativa de los títulos */
    .section-title::after {
        width: 60px;
        height: 2px;
    }
    
    /* Botón de WhatsApp más pequeño y accesible */
    .whatsapp-btn {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }
}

/* Para móviles muy pequeños (hasta 576px) */
@media (max-width: 576px) {
    /* Ajustamos el tamaño del logo y texto en el navbar */
    .navbar-brand .brand-name {
        font-size: 0.8rem;
    }
    
    .navbar-brand .sub-brand {
        font-size: 0.7rem;
    }

    .logo-container {
        width: 45px;
        height: 45px;
    }

    .logo-initial {
        font-size: 1.6rem;
    }
}