/* main.css - ARCHIVO CONSOLIDADO PARA OPTIMIZACIÓN DE RENDIMIENTO */

/* --- FUENTES (Movido a link en head para mejor rendimiento) --- */
/* font-family: 'Outfit', sans-serif; */

/* --- VARIABLES Y ESTILOS BASE (Originalmente styles.css) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

:root {
    --accent-color: #dfd7c3; 
    --glass-bg: rgba(30, 32, 28, 0.9); 
    --text-main: #f8f9fa;
    --input-bg: rgba(255, 255, 255, 0.05);
    --accent-hover: #f1eee4;
}

html {
    overflow-x: hidden;
    width: 100%;
    scrollbar-gutter: stable; /* Evita que el contenido salte cuando aparece el scrollbar */
}

/* Evitar que Bootstrap añada padding extra cuando ya tenemos scrollbar-gutter */
body.modal-open, 
body.modal-open .sticky-top, 
body.modal-open .fixed-top {
    padding-right: 0 !important;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #4b4e47; 
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.text-accent {
    color: var(--accent-color);
}

.no-scroll {
    overflow: hidden !important;
}

/* --- NAVBAR (Originalmente navbar.css) --- */
.custom-navbar {
    background: var(--glass-bg) !important;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(223, 215, 195, 0.1); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.custom-navbar .navbar-brand img {
    filter: drop-shadow(0 0 10px rgba(223, 215, 195, 0.2));
    transition: filter 0.3s ease;
}

.custom-navbar .navbar-brand img:hover {
    filter: drop-shadow(0 0 15px rgba(223, 215, 195, 0.5));
}

.nav-link {
    color: var(--accent-color) !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.nav-cat {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-form {
    flex-grow: 1;
    max-width: 350px;
    margin: 0 2rem;
}

.search-container {
    position: relative;
    width: 100%;
}

.search-input-nv {
    width: 100%;
    background: var(--input-bg) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--text-main) !important;
    border-radius: 50px !important;
    padding: 0.5rem 3rem 0.5rem 1.5rem !important;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.search-input-nv::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

.search-input-nv:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 15px rgba(223, 215, 195, 0.2);
}

.search-btn-nv {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--accent-color);
    color: #1a1a1a;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-btn-nv:hover {
    background-color: var(--text-main);
    box-shadow: 0 0 10px var(--accent-color);
}

.user-link {
    text-align: left;
}

.user-text {
    line-height: 1.2;
}

.user-text span:first-child {
    font-size: 0.9rem;
    color: var(--accent-color);
}

.user-text span:last-child {
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
}

.navbar-toggler {
    border: none;
    outline: none !important;
    box-shadow: none !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23dfd7c3' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E") !important;
}

.dropdown-menu {
    border-radius: 12px;
    padding: 1rem 0;
    margin-top: 10px !important;
}

.dropdown-menu .dropdown-item {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: all 0.2s ease;
}

.dropdown-menu .dropdown-item:hover {
    background-color: rgba(223, 215, 195, 0.1) !important;
    color: var(--accent-color) !important;
}

.dropdown-header {
    color: var(--accent-color);
    letter-spacing: 1px;
}

/* --- CARRUSEL (Originalmente carrusel.css) --- */
.custom-carousel {
    margin-top: 5rem !important;
    margin-bottom: 5rem !important;
    padding: 0 15px;
    max-width: 1400px; 
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}

.carousel-inner {
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
}

.carousel-indicators [button] {
    background-color: var(--accent-color) !important;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    bottom: 30px;
    max-width: 80%;
    margin: 0 auto;
}

@media (max-width: 991px) {
    .carousel-inner, .carousel-item img {
        height: auto;
        max-height: 250px;
    }
    .carousel-caption {
        max-width: 95%;
        padding: 12px;
    }
    .carousel-caption h5 { font-size: 1rem; }
    .carousel-caption p { font-size: 0.8rem; }
}

/* --- TARJETAS E INFO (Originalmente tarjetas.css) --- */
.info-card {
    background: var(--glass-bg, rgba(30, 32, 28, 0.9));
    padding: 3rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.image-card img {
    width: 100%;
    transition: transform 0.5s ease;
    border: 1px solid rgba(223, 215, 195, 0.1);
}

.image-card:hover img {
    transform: scale(1.02);
}

@media (max-width: 991px) {
    .info-card {
        padding: 2rem;
        text-align: center;
    }
}

/* --- SERVICIOS (Originalmente servicios.css) --- */
.services-section {
    padding: 80px 0;
    background: transparent;
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px 30px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(223, 215, 195, 0.1), transparent 60%);
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(223, 215, 195, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(223, 215, 195, 0.1);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--accent-color);
    color: #1e1e1e;
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-main);
}

.service-description {
    font-size: 0.95rem;
    color: rgba(248, 249, 250, 0.7);
    line-height: 1.6;
}

.section-title-container {
    margin-bottom: 50px;
}

.accent-line {
    width: 40px;
    height: 4px;
    background: var(--accent-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .services-section { padding: 50px 0; }
    .service-card { padding: 30px 20px; }
}

/* --- FORMULARIO (Originalmente formulario.css) --- */
.custom-input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(223, 215, 195, 0.2) !important;
    color: var(--text-main) !important;
    border-radius: 8px !important;
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
}

.custom-input::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

.custom-input:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 15px rgba(223, 215, 195, 0.3);
    outline: none;
}

.custom-btn {
    border: 1px solid var(--accent-color);
    background: transparent;
    color: var(--accent-color);
    border-radius: 8px;
    padding: 0.6rem 2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.custom-btn:hover {
    background: var(--accent-color);
    color: #1a1a1a;
    box-shadow: 0 5px 15px rgba(223, 215, 195, 0.3);
    transform: translateY(-2px);
}

/* --- FOOTER (Originalmente footer.css) --- */
.custom-footer {
    background: rgba(30, 32, 28, 0.9); 
    border-top: 1px solid rgba(223, 215, 195, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 5rem 0 2rem;
    margin-top: 6rem;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
}

.footer-logo {
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(223, 215, 195, 0.2));
}

.footer-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-heading {
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 1rem;
    position: relative;
    display: inline-block;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(8px);
}

.contact-info li {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-color);
    border: 1px solid rgba(223, 215, 195, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--accent-color);
    color: #1a1a1a;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(223, 215, 195, 0.3);
}

.footer-divider {
    border-color: rgba(223, 215, 195, 0.15);
    margin: 3rem 0 1.5rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

/* --- MOBILE NAV (Originalmente mobile_nav.css) --- */
.mobile-bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 450px;
    background: rgba(30, 32, 28, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(223, 215, 195, 0.1);
    border-radius: 40px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 15px;
    z-index: 1035;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-bottom-nav:hover {
    background: rgba(30, 32, 28, 0.95);
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(223, 215, 195, 0.3);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--accent-color);
    transition: all 0.3s ease;
    background: none;
    border: none;
    width: 25%;
    padding: 5px 0;
    cursor: pointer;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: #ffffff;
    transform: translateY(-3px);
}

.mobile-nav-item span {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.offcanvas-bottom, .modal-content {
    background: rgba(30, 32, 28, 0.95) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: none !important;
}

.mobile-category-list { list-style: none; padding: 0; margin: 0; }
.mobile-category-item { border-bottom: 1px solid rgba(255,255,255,0.05); }

.mobile-category-link {
    display: block;
    padding: 15px 10px;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.mobile-category-link:active {
    background: rgba(223, 215, 195, 0.1);
    color: var(--accent-color);
}
