/***************************************
 * STOCKER CSS - Paleta personalizada
 * Paleta: #672430, #E77849, #C74C3A, #75282F, #F5F3F4
 * Fuentes: Inter y Roboto (igual que en tu HTML)
 ***************************************/

/* === VARIABLES CSS Y CONFIGURACIÓN GLOBAL === */
:root {
    /* Paleta principal */
    --primary-color: #E77849;       /* Naranja principal */
    --secondary-color: #672430;     /* Marrón rojizo oscuro */
    --accent-color: #C74C3A;        /* Rojo anaranjado */
    --dark-color: #75282F;          /* Rojo oscuro */
    --light-color: #F5F3F4;         /* Blanco roto */
    --white-color: #FFFFFF;
    --black-color: #111111;
    --text-color: #333333;
    --text-light: #787878;
    
    /* Fuentes */
    --font-main: 'Poppins', sans-serif;
    --font-heading: 'Playfair Display', serif;
    
    /* Tipografía global */
    --e-global-typography-dc0dc83-font-size: 1rem;
    --e-global-typography-dc0dc83-line-height: 1.6;
    --e-global-typography-dc0dc83-letter-spacing: 0px;
    --e-global-typography-dc0dc83-word-spacing: 0px;
    
    /* Bordes y sombras */
    --border-radius: 10px;
    --transition: all 0.3s ease;
    --box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 0 30px rgba(231, 120, 73, 0.15);
}

/* === RESET Y CONFIGURACIÓN BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--white-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--black-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    font-size: var(--e-global-typography-dc0dc83-font-size);
    line-height: var(--e-global-typography-dc0dc83-line-height);
    letter-spacing: var(--e-global-typography-dc0dc83-letter-spacing);
    word-spacing: var(--e-global-typography-dc0dc83-word-spacing);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--dark-color);
}

.text-primary { color: var(--primary-color) !important; }
.text-white { color: var(--white-color) !important; }
.text-dark { color: var(--black-color) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-dark { background-color: var(--dark-color) !important; }
.bg-light { background-color: var(--light-color) !important; }
.bg-white { background-color: var(--white-color) !important; }

.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }

/* === DIALOG FORM - DISEÑO COMPUTADOR 2 COLUMNAS === */

/* Estilos base del dialog */
#dialogForm {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    padding: 20px;
    border: none;
    background-color: rgba(103, 36, 48, 0.95);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

/* Dialog abierto */
#dialogForm[open] {
    opacity: 1;
    visibility: visible;
}

/* Contenedor principal - CENTRADO */
#dialogForm .contact {
    position: relative;
    width: 100%;
    max-width: 800px;
    background-color: var(--white-color);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: visible;
    margin: 0 auto;
    animation: dialogSlideIn 0.4s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center; /* CENTRAR HORIZONTALMENTE */
}

@keyframes dialogSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* BOTÓN DE CERRAR - CENTRADO EN LA VENTANA */
#closeDialog {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--white-color);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    line-height: 1;
    padding: 0;
    margin: 0;
}

#closeDialog:hover {
    background-color: var(--dark-color);
    transform: scale(1.25) rotate(90deg);
    box-shadow: 0 8px 25px rgba(231, 120, 73, 0.6);
}

/* ELIMINAR PADDING EXCESIVO */
#dialogForm .container-fluid.contact.py-5 {
    padding: 0 !important;
    width: 100%;
}

/* CONTENEDOR PRINCIPAL - CENTRADO */
#dialogForm .container.py-5 {
    padding: 50px 40px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
    display: flex;
    justify-content: center; /* CENTRAR CONTENIDO */
}

/* FILA PRINCIPAL - CENTRADA */
#dialogForm .row.g-5 {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    display: flex;
    justify-content: center;
}

/* COLUMNA DEL FORMULARIO - 100% ANCHO PARA CENTRAR */
#dialogForm .col-xl-6 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    display: flex;
    justify-content: center;
}

/* ÁREA DEL FORMULARIO - CENTRADA Y CON ANCHO FIJO */
#dialogForm .bg-light.p-5.rounded {
    padding: 40px !important;
    background-color: var(--light-color);
    border-radius: 12px;
    border: 1px solid rgba(231, 120, 73, 0.15);
    width: 100%;
    max-width: 700px; /* ANCHO FIJO PARA CENTRAR MEJOR */
    margin: 0 auto;
}

/* TÍTULO - CENTRADO */
#dialogForm h4.text-primary {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 15px;
    position: relative;
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    width: 100%;
}

#dialogForm h4.text-primary::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* === DISEÑO DE 2 COLUMNAS PARA LOS INPUTS === */

/* GRID PRINCIPAL - 2 COLUMNAS EN COMPUTADOR */
#dialogForm .row.g-4 {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px !important;
    margin-right: -10px !important;
    width: calc(100% + 20px);
    justify-content: center; /* CENTRAR LAS COLUMNAS */
}

/* COLUMNAS PARA LOS 4 PRIMEROS INPUTS (2x2) */
#dialogForm .col-lg-12.col-xl-6 {
    flex: 0 0 50% !important; /* 50% = 2 COLUMNAS */
    max-width: 50% !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    margin-bottom: 20px;
}

/* CAMPOS DE ANCHO COMPLETO (SUBJECT Y MESSAGE) */
#dialogForm .col-12 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
}

/* CAMPOS DEL FORMULARIO - ESTILOS BASE */
#dialogForm .form-floating {
    position: relative;
    width: 100%;
}

#dialogForm .form-control {
    width: 100%;
    padding: 16px 18px;
    font-size: 1rem;
    border: 1px solid rgba(103, 36, 48, 0.25);
    border-radius: 8px;
    background-color: var(--white-color);
    color: var(--text-color);
    height: 56px;
    transition: all 0.3s ease;
}

#dialogForm .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(231, 120, 73, 0.2);
    outline: none;
}

/* LABELS */
#dialogForm .form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    padding: 16px 18px;
    font-size: 1rem;
    color: var(--text-light);
    pointer-events: none;
    transition: all 0.2s ease;
    transform-origin: 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 36px);
}

#dialogForm .form-floating > .form-control:focus ~ label,
#dialogForm .form-floating > .form-control:not(:placeholder-shown) ~ label {
    transform: scale(0.85) translateY(-12px) translateX(10px);
    color: var(--primary-color);
    background-color: var(--white-color);
    padding: 0 8px;
}

/* TEXTAREA MESSAGE - MÁS ESPACIO */
#dialogForm textarea.form-control {
    height: 180px; /* MÁS ALTO PARA MÁS ESPACIO */
    min-height: 180px;
    resize: vertical;
    padding-top: 20px;
}

/* BOTÓN DE ENVIAR - CENTRADO */
#dialogForm .btn-primary {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    max-width: 300px; /* ANCHO FIJO PARA CENTRAR MEJOR */
    margin-left: auto;
    margin-right: auto;
}

#dialogForm .btn-primary:hover {
    background-color: var(--dark-color);
    border-color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(231, 120, 73, 0.3);
}

/* === RESPONSIVE === */

/* TABLET - 2 COLUMNAS TAMBIÉN */
@media (min-width: 768px) and (max-width: 1199px) {
    #dialogForm .contact {
        max-width: 700px;
    }
    
    #dialogForm .bg-light.p-5.rounded {
        max-width: 600px;
        padding: 35px !important;
    }
    
    #dialogForm .col-lg-12.col-xl-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    
    #closeDialog {
        top: 25px;
        right: 25px;
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
    }
}

/* MÓVIL - 1 COLUMNA (APILADO) */
@media (max-width: 767px) {
    #dialogForm {
        padding: 15px;
    }
    
    #dialogForm .contact {
        max-width: 95%;
    }
    
    #dialogForm .container.py-5 {
        padding: 30px 20px !important;
    }
    
    #dialogForm .bg-light.p-5.rounded {
        padding: 25px !important;
        max-width: 100%;
    }
    
    #dialogForm h4.text-primary {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
    
    /* EN MÓVIL, LOS CAMPOS SE APILAN EN 1 COLUMNA */
    #dialogForm .col-lg-12.col-xl-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    #dialogForm .form-control {
        padding: 14px 16px;
        height: 52px;
    }
    
    #dialogForm textarea.form-control {
        height: 150px;
        min-height: 150px;
    }
    
    #dialogForm .btn-primary {
        max-width: 100%;
        padding: 14px;
    }
    
    /* EN MÓVIL, EL BOTÓN DE CERRAR VA DENTRO DEL DIALOG */
    #closeDialog {
        position: absolute;
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
}

/* MÓVIL PEQUEÑO */
@media (max-width: 576px) {
    #dialogForm .contact {
        max-width: 100%;
    }
    
    #dialogForm .container.py-5 {
        padding: 25px 15px !important;
    }
    
    #dialogForm .bg-light.p-5.rounded {
        padding: 20px !important;
    }
    
    #dialogForm h4.text-primary {
        font-size: 1.3rem;
        padding-bottom: 12px;
    }
    
    #closeDialog {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
}

/* COMPUTADOR GRANDE - DISEÑO 2x2 OPTIMIZADO */
@media (min-width: 1200px) {
    #dialogForm .contact {
        max-width: 850px;
    }
    
    #dialogForm .bg-light.p-5.rounded {
        max-width: 750px;
        padding: 45px !important;
    }
    
    #dialogForm .form-control {
        padding: 18px 20px;
        height: 58px;
        font-size: 1.05rem;
    }
    
    #dialogForm textarea.form-control {
        height: 200px;
        min-height: 200px;
    }
}

/* PREVENIR SCROLL EN BODY */
body:has(#dialogForm[open]) {
    overflow: hidden;
}

/* OVERLAY */
#dialogForm::backdrop {
    background-color: rgba(103, 36, 48, 0.95);
    backdrop-filter: blur(3px);
}

.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, 
.col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
    padding-right: 15px;
    padding-left: 15px;
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .col-xl-3 { flex: 0 0 25%; max-width: 25%; }
    .col-xl-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-xl-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-xl-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
}

/* === ICONOS PERSONALIZADOS === */
.icon-img {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    display: block;
}

/* === UTILIDADES === */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-block { display: inline-block !important; }

.flex-wrap { flex-wrap: wrap !important; }
.flex-column { flex-direction: column !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }

.align-items-center { align-items: center !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-end { justify-content: flex-end !important; }

.text-center { text-align: center !important; }
.text-start { text-align: left !important; }
.text-end { text-align: right !important; }

.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; }

.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.vh-100 { height: 100vh !important; }

.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ms-3 { margin-left: 1rem !important; }
.ms-4 { margin-left: 1.5rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.me-4 { margin-right: 1.5rem !important; }
.mx-2 { margin-left: 0.5rem !important; margin-right: 0.5rem !important; }
.mx-3 { margin-left: 1rem !important; margin-right: 1rem !important; }

.p-0 { padding: 0 !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }
.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }
.pt-0 { padding-top: 0 !important; }
.pb-0 { padding-bottom: 0 !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.pb-5 { padding-bottom: 3rem !important; }

.rounded { border-radius: var(--border-radius) !important; }
.rounded-circle { border-radius: 50% !important; }
.rounded-pill { border-radius: 50rem !important; }
.rounded-top { border-top-left-radius: var(--border-radius) !important; border-top-right-radius: var(--border-radius) !important; }
.rounded-bottom { border-bottom-left-radius: var(--border-radius) !important; border-bottom-right-radius: var(--border-radius) !important; }

.overflow-hidden { overflow: hidden !important; }

.shadow { box-shadow: var(--box-shadow) !important; }

/* === SPINNER === */
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
    z-index: 99999;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100vh;
    background-color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

#spinner.show {
    transition: opacity 0.5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    border: 0.25em solid;
    border-color: var(--primary-color) transparent var(--primary-color) transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

/* === TOOLBAR === */
.topbar {
    background-color: var(--light-color);
    padding: 0.5rem 0;
}

.topbar a {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-right: 1.5rem;
}

.topbar a:hover {
    color: var(--primary-color);
}

.topbar a i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle::after {
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    margin-left: 0.5rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 10rem;
    padding: 0.5rem 0;
    background-color: var(--white-color);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: var(--border-radius);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    clear: both;
    color: var(--text-color);
    text-align: inherit;
    background: none;
    border: 0;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.dropdown-item i {
    margin-right: 0.5rem;
}

/* === NAVBAR === */
.navbar {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 999;
    padding: 1rem 0;
    transition: var(--transition);
}

.sticky-top.navbar {
    position: fixed;
    background-color: var(--white-color);
    box-shadow: var(--box-shadow);
}

.navbar.scrolled {
    background-color: var(--white-color);
    box-shadow: var(--box-shadow);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.navbar-brand h1 {
    color: var(--primary-color);
    margin-bottom: 0;
}

.navbar-nav {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin-bottom: 0;
    padding-left: 0;
}

.navbar-nav .nav-item {
    position: relative;
}

.navbar-nav .nav-link {
    font-family: var(--font-main);
    position: relative;
    padding: 1rem 0;
    margin-right: 1.5rem;
    color: var(--white-color);
    font-size: 1.0625rem;
    font-weight: 400;
    transition: var(--transition);
}

.sticky-top .navbar-nav .nav-link {
    color: var(--black-color);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar-toggler {
    padding: 0.5rem 0.75rem;
    font-size: 1.25rem;
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
}

@media (min-width: 992px) {
    .navbar-nav {
        flex-direction: row;
        align-items: center;
    }
    
    .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: 0;
        left: 50%;
        background: var(--primary-color);
        transition: var(--transition);
    }
    
    .navbar-nav .nav-link:hover::before,
    .navbar-nav .nav-link.active::before {
        width: calc(100% - 2px);
        left: 1px;
    }
}

@media (max-width: 991px) {
    .navbar {
        position: relative;
        justify-content: center;
    }
    
    .navbar-toggler {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        border-top: 1px solid #DDDDDD;
        padding-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.625rem 0;
        color: var(--black-color);
    }
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-primary {
    color: var(--white-color);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--dark-color);
    border-color: var(--dark-color);
    color: var(--white-color);
}

.btn-light {
    color: var(--primary-color);
    background-color: var(--light-color);
    border-color: var(--light-color);
}

.btn-light:hover {
    color: var(--white-color);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn-square { width: 2rem; height: 2rem; }
.btn-sm-square { width: 2.125rem; height: 2.125rem; }
.btn-md-square { width: 2.75rem; height: 2.75rem; }
.btn-lg-square { width: 3.5rem; height: 3.5rem; }

/* === CAROUSEL === */
.header-carousel {
    position: relative;
}

.header-carousel-item {
    position: relative;
    height: 700px;
    overflow: hidden;
}

.header-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: image-zoom 10s infinite alternate;
    animation-delay: 1s;
}

@keyframes image-zoom {
    0% { transform: scale(1); opacity: 0.9; }
    25% { transform: scale(1.1); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 1; }
    75% { transform: scale(1.1); opacity: 0.5; }
    100% { transform: scale(1); opacity: 0.9; }
}

.carousel-caption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    background: rgba(103, 36, 48, 0.7);
    padding-top: 200px;
}

.carousel-caption h1 {
    color: var(--white-color);
    font-size: 3.5rem;
}

.carousel-caption p {
    color: var(--white-color);
    font-size: 1.125rem;
}

.owl-nav {
    position: absolute;
    bottom: 30px;
    left: 30px;
    display: flex;
}

.owl-nav button {
    width: 60px;
    height: 60px;
    border-radius: 60px;
    background-color: var(--primary-color);
    color: var(--white-color);
    font-size: 1.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: var(--transition);
    margin-right: 30px;
}

.owl-nav button:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
    box-shadow: inset 0 0 100px 0 var(--dark-color);
}

/* === SECTIONS GENERALES === */
.about, .service, .blog, .team {
    padding: 5rem 0;
}

/* === SERVICE SECTION === */
.service-item {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(231, 120, 73, 0.1);
}

.service-item:hover {
    box-shadow: var(--box-shadow-hover);
    border-color: var(--primary-color);
}

.service-img {
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.service-item:hover .service-img img {
    transform: scale(1.2);
}

/* === BLOG SECTION === */
.blog-item {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: inset 0 0 45px rgba(103, 36, 48, 0.05);
    border: 1px solid var(--light-color);
    transition: var(--transition);
}

.blog-item:hover {
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(231, 120, 73, 0.2);
}

.blog-img {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.blog-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.blog-item:hover .blog-img img {
    transform: scale(1.2);
}

.blog-title {
    position: absolute;
    bottom: 25px;
    left: 25px;
}

.blog-title a {
    color: var(--white-color);
    background-color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.blog-title a:hover {
    background-color: var(--dark-color);
    color: var(--white-color);
}

/* === TEAM SECTION === */
.team-item {
    position: relative;
    padding: 0 25px 25px 25px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.team-item::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
    background: var(--light-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    z-index: -1;
}

.team-item:hover::before {
    height: 0;
}

.team-item::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 0;
    bottom: 0;
    left: 0;
    border-radius: var(--border-radius);
    transition: var(--transition);
    z-index: -1;
}

.team-item:hover::after {
    height: 100%;
    background: var(--primary-color);
}

.team-img {
    width: 100%; 
    height: 100%;
    border-radius: 50%;
    position: relative;
    margin-top: 50%;
    transform: translateY(-50%);
    margin-bottom: -50%;
    display: flex;
    justify-content: center;
    border: 4px dotted var(--primary-color);
    padding: 4px;
    background: var(--white-color);
    transition: var(--transition);
}

.team-item:hover .team-img {
    border: 4px dotted var(--white-color);
    background: 0;
}

.team-img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.team-title {
    padding: 25px 0;
    text-align: center;
}

.team-title h4,
.team-title p {
    transition: var(--transition);
}

.team-item:hover .team-title h4,
.team-item:hover .team-title p {
    color: var(--white-color);
}

.team-icon {
    display: flex;
    justify-content: center;
}

.team-icon a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--light-color);
    color: var(--dark-color);
    transition: var(--transition);
    margin: 0 0.375rem;
}

.team-item:hover .team-icon a {
    color: var(--dark-color);
    background-color: var(--white-color);
}

.team-item:hover .team-icon a:hover {
    color: var(--primary-color);
    background-color: var(--dark-color);
}

/* === FOOTER === */
.footer {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 5rem 0;
}

.footer-item {
    display: flex;
    flex-direction: column;
}

.footer-item a {
    color: var(--light-color);
    line-height: 2.5;
    transition: var(--transition);
}

.footer-item a:hover {
    color: var(--primary-color);
}

.footer-item p {
    color: var(--light-color);
    line-height: 2.5;
}

.footer-btn a {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.footer-btn a:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
}

.footer-btn a i {
    margin-right: 0.5rem;
}

.footer-heading {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.footer-contact p i {
    color: var(--primary-color);
    margin-right: 0.625rem;
}

/* === COPYRIGHT === */
.copyright {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 1.5rem 0;
}

.copyright a {
    color: var(--primary-color);
}

.copyright a:hover {
    color: var(--light-color);
}

/* === BACK TO TOP === */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 99;
    border: none;
}

.back-to-top:hover {
    background-color: var(--dark-color);
    color: var(--white-color);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .header-carousel-item {
        height: 500px;
    }
    
    .carousel-caption {
        padding-top: 120px;
    }
    
    .carousel-caption h1,
    .carousel-caption .display-4 {
        font-size: 1.25rem;
    }
    
    .carousel-caption h4 {
        font-size: 0.9rem;
    }
    
    .carousel-caption h2 {
        font-size: 0.9rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .owl-nav {
        left: 50%;
        transform: translateX(-50%);
        bottom: 20px;
    }
    
    .owl-nav button {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin: 0 0.5rem;
    }
}

/* Mobile Logo Styles */
.mobile-logo {
    display: none;
}

@media (max-width: 991px) {
    .navbar-brand h1 {
        display: none;
    }
    
    .mobile-logo {
        display: block;
        width: 120px;
        height: auto;
        margin: 0 auto;
    }
    
    .navbar {
        padding: 0.5rem 0;
        min-height: 80px; /* Ajusta según la altura del logo */
        display: flex;
        align-items: center;
    }
}