/* ========================================
   MYCSS.CSS - R.E.R. ESTUDIO JURÍDICO
   Archivo principal para customizaciones
   
   PALETA DE COLORES:
   - Rojo: #910000, #bb0b0b, #ff3030, #a61717, #c53b3c
   - Gris: #181515, #111111, #140e0e, #c4c4c4, #d7bfbf
   - WhatsApp: #157e29, #25D366, #128C7E
   - Neutros: #fff, #000, rgb(214,214,214)
   ======================================== */

/* ========================================
   1. TIPOGRAFÍAS Y VARIABLES GLOBALES
   ======================================== */

body {
    font-family: "aptos", sans-serif;
    font-weight: 400;
    font-style: normal;
}

#mainmenu {
    text-transform: uppercase;
}

.first-mini-title {
    color: #d7bfbf !important;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 14px;
}

.rer-title, #rer-logo, #rer-logo2 {
    color: rgb(214, 214, 214) !important;
    font-family: "the-seasons", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.estudio-title {
    font-size:18px;
    font-family: "aptos";
    text-transform:uppercase;
    color: #a61717 !important;
    margin-left: -1px;
}

.texto-slider {
    text-transform: uppercase;
    color: #c4c4c4
}

/* ========================================
   2. HEADER Y NAVEGACIÓN
   ======================================== */

.topbar-left i {
    color: #fff !important;
}

.header-mobile {
    background: #140e0e !important;
}

header.header-mobile #mainmenu li a {
    color: #fff !important;
}

#menu-btn {
    margin-top: -10px;
}

#estudio-logo {
    font-family: "aptos";
    text-transform:uppercase;
    color: #a61717 !important;
    font-size:15px;
    font-weight:700;
    margin-left: -8px;
}

.logo, .logo-2 {
    margin-top: 10px !important
}

.menu-active {
    color: #ff3030 !important;
}

/* ========================================
   3. HERO IMAGE PERSONALIZADO
   ======================================== */

.hero-rer {
    background-image: url('../imagenes/slider.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 85vh;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-rer .container {
    position: relative;
    z-index: 2;
}

/* ========================================
   4. BOTONES PERSONALIZADOS
   ======================================== */

/* Botón WhatsApp para sección de equipo - más estilizado */
.btn-team-whatsapp {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white !important;
    text-decoration: none !important;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    border: none;
    min-width: 140px;
}

.btn-team-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: white !important;
    text-decoration: none !important;
}

.btn-team-whatsapp:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
}

.btn-team-whatsapp i {
    margin-right: 8px;
    font-size: 16px;
}

.boton-slider {
    background: #910000 !important;
}

.btn-wsp {
    background: #910000 !important;
}

.btn-wsp-green {
    background: #157e29 !important
}

.boton-google-maps {
    background: #910000 !important;
}

/* Botón WhatsApp sutil para contactos individuales */
.btn-wsp-sutil {
    background: #157e29 !important;
    color: #fff !important;
    padding: 6px 16px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    text-decoration: none !important;
    display: inline-block !important;
    margin-top: 2px !important;
}

.btn-wsp-sutil:hover {
    background: #128C7E !important;
    color: #fff !important;
    text-decoration: none !important;
}

.btn-wsp-sutil i {
    margin-right: 4px !important;
}

/* ========================================
   5. SECCIONES Y CONTENIDO
   ======================================== */

.contact-us-middle {
    background: #181515 !important;
}

.contacto-abogado {
    color:#c53b3c;
    text-transform: uppercase;
    font-weight: 700;
}

.p-title {
    color: #c53b3c;
    text-transform: uppercase;
}

.ubi-title {
    font-family: 'apto';
}

.de_testi_by {
    color: #ff3030 !important;
    font-weight:700 !important;
}

/* Altura del carousel de testimonios */
#de-carousel, #de-carousel .carousel-inner, #de-carousel .carousel-item, #de-carousel .carousel-item.active {
    height: 85vh !important;
}

/* ========================================
   6. GOOGLE MAPS EMBEBIDO
   ======================================== */

.google-map {
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

/* ========================================
   7. FOOTER PERSONALIZADO
   ======================================== */

#desarrollo-por  {
    font-size: 13px;
    color: #ff5900;
}

/* ========================================
   8. MODAL TEMA OSCURO R.E.R.
   ======================================== */

/* Modal con tema oscuro R.E.R. */
#agendarConsultaModal .modal-content {
    background-color: #111111 !important;
    border: 1px solid #292929  !important;
    border-radius: 8px !important;
}


/* Header del modal */
#agendarConsultaModal .modal-header {
    background-color: #181515 !important;
    border-bottom: 1px solid #3f3f3f !important;
    color: white !important;
}

#agendarConsultaModal .modal-title {
    color: white !important;
    font-weight: 600;
}

#agendarConsultaModal .btn-close {
    filter: invert(1) !important;
    opacity: 0.8;
}

#agendarConsultaModal .btn-close:hover {
    opacity: 1;
}

/* Body del modal */
#agendarConsultaModal .modal-body {
    background-color: #111111 !important;
    color: white !important;
}

#agendarConsultaModal .modal-body h6 {
    color: #e6e6e6 !important;
    font-weight: 600;
}

#agendarConsultaModal .modal-body .fa-user-tie {
    color: #bb0b0b !important;
}

#agendarConsultaModal .modal-body .fa-envelope {
    color: #bb0b0b !important;
}

#agendarConsultaModal .modal-body .text-muted {
    color: #c4c4c4 !important;
}

#agendarConsultaModal .modal-body hr {
    border-color: #bb0b0b !important;
    opacity: 0.3;
}

#agendarConsultaModal .modal-body strong {
    color: #bb0b0b !important;
}

.modal-body {
    margin-top: 20px !important;
}

/* Footer del modal */
#agendarConsultaModal .modal-footer {
    background-color: #181515 !important;
    border-top: 1px solid #bb0b0b !important;
}

#agendarConsultaModal .modal-footer .btn-custom {
    background-color: #bb0b0b !important;
    border-color: #bb0b0b !important;
    color: white !important;
}

#agendarConsultaModal .modal-footer .btn-custom:hover {
    background-color: #910000 !important;
    border-color: #910000 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(187, 11, 11, 0.3);
}

/* ========================================
   9. MODAL FIXES - MIGRADO DE modal-fixes.css
   Soluciona problemas de Bootstrap y animaciones
   ======================================== */

/* Botón cerrar modal - override de style.css */
.modal .btn-close {
    background: transparent !important;
    border: none !important;
    padding: 0.375rem 0.375rem !important;
    margin: -0.375rem -0.375rem -0.375rem auto !important;
    width: auto !important;
    height: auto !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: #000 !important;
    text-align: center !important;
    text-decoration: none !important;
    opacity: 0.5 !important;
    cursor: pointer !important;
    position: static !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.modal .btn-close:hover {
    opacity: 0.75 !important;
    background: transparent !important;
}

.modal .btn-close:focus {
    outline: 0 !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
    opacity: 1 !important;
}

.modal .btn-close:before {
    content: "×" !important;
    font-size: 1.5rem !important;
    line-height: 1 !important;
}

/* Botones modales completamente estáticos - sin efectos */
.modal .btn,
.modal .btn:hover,
.modal .btn:focus,
.modal .btn:active,
.modal .btn.active,
.modal .btn.focus,
.modal .btn:not(:disabled):not(.disabled):active,
.modal .btn:not(:disabled):not(.disabled).active {
    /* CANCELAR TODOS LOS EFECTOS */
    transition: none !important;
    transform: none !important;
    animation: none !important;
    
    /* MANTENER ESTILOS FIJOS */
    padding: 0.5rem 1rem !important;
    margin: 0 !important;
    border-radius: 0.375rem !important;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    text-align: center !important;
    text-decoration: none !important;
    vertical-align: middle !important;
    cursor: pointer !important;
    user-select: none !important;
    border: 1px solid transparent !important;
    
    /* SIN SOMBRAS NI OUTLINES */
    box-shadow: none !important;
    outline: 0 !important;
    
    /* SIN CAMBIOS DE TEXTO */
    text-transform: none !important;
    letter-spacing: normal !important;
    font-family: inherit !important;
    
    /* MANTENER DIMENSIONES FIJAS */
    min-width: 200px !important;
    width: 200px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    height: 38px !important;
    
    /* DISPLAY FIJO */
    display: inline-block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    position: relative !important;
}

/* Contenido interno de botones modales fijo */
.modal .btn *,
.modal .btn:hover *,
.modal .btn:focus *,
.modal .btn:active *,
.modal .btn.active * {
    position: relative !important;
    display: inline !important;
    white-space: nowrap !important;
    transform: none !important;
    transition: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Botones verdes en modales - todos los estados iguales */
.modal .btn-success,
.modal .btn-success:hover,
.modal .btn-success:focus,
.modal .btn-success:active,
.modal .btn-success.active,
.modal .btn-success.focus,
.modal .btn-success:not(:disabled):not(.disabled):active,
.modal .btn-success:not(:disabled):not(.disabled).active {
    color: #fff !important;
    background-color: #198754 !important;
    border-color: #198754 !important;
}

/* Botón cerrar modal custom */
.modal .btn-custom,
.modal .btn-custom:hover,
.modal .btn-custom:focus,
.modal .btn-custom:active,
.modal .btn-custom.active {
    color: #fff !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

/* Estrellas en testimonios - tamaño fijo 30px */
.de_testi .p-rating i,
.de_testi .p-rating i:hover,
.de_testi .p-rating i:focus,
.de_testi .p-rating i:active {
    font-size: 30px !important;
    width: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
    margin-right: 2px !important;
    color: var(--primary-color) !important;
    transition: none !important;
    transform: none !important;
    animation: none !important;
}

/* ========================================
   9. RESPONSIVE - MOBILE OPTIMIZATIONS
   ======================================== */

/* Hero image en mobile - mostrar lado izquierdo */
@media (max-width: 768px) {
    .hero-rer {
        background-position: left center;
    }
    
    .hero-overlay {
        background: rgba(0, 0, 0, 0.5);
    }

    /* Google Maps más pequeño en mobile */
    .google-map {
        height: 250px !important;
    }

    /* Ocultar botón WhatsApp del header en mobile (solo en header) */
    header .btn-wsp-green {
        display: none !important;
    }
    
    /* Asegurar que los botones CTA WhatsApp se muestren en mobile */
    .contact-us-middle .btn-wsp-green {
        display: inline-block !important;
    }

    #ubi-provincia {
        display:block;
    }

    /* Solo reglas para cuando el modal está abierto O recién cerrado */
    @media (max-width: 992px) {        
        /* Ocultar menú mobile cuando modal está abierto O tiene clase temporal */
        body.modal-open header #mainmenu,
        body.modal-menu-reset header #mainmenu {
            max-height: 0 !important;
            overflow: hidden !important;
            transition: none !important;
        }
        
        /* Forzar reset del header cuando modal está abierto O tiene clase temporal */
        body.modal-open header.header-mobile,
        body.modal-menu-reset header.header-mobile {
            height: 90px !important;
            transition: none !important;
        }
        
        /* Forzar ocultación completa cuando hay clase temporal */
        body.modal-menu-reset header.header-mobile #mainmenu {
            display: none !important;
        }
    }
}