/* estilos.css */
/* Variables y estilos base */
:root {
    --primary-color: #004aad;
    --secondary-color: #b38e5c;
    --dark-bg: #121513;
    --medium-bg: #1f2521;
    --light-text: #dbdbdb;
    --dark-text: #404040;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    color: var(--light-text);
    background: var(--dark-bg);
    overflow-x: hidden;
}

body {
    position: relative;
}

a {
    text-decoration: none;
    color: var(--light-text);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    margin-bottom: 1rem;
}

html {
    scroll-behavior: auto !important;
}


.title h2, .title-bg-wh h2 {
    font-size: 2.2rem;
    text-align: center;
    color: var(--light-text);
    font-weight: 400;
    line-height:2rem;
   /* text-decoration: underline; */
    margin-bottom: 0;
}

.title-bg-wh h2 {
    font-size: 2.2rem;
    text-align: center;
    color: #404040;
    font-weight: 400;
    line-height:2rem;
   /* text-decoration: underline; */
    margin-bottom: 0;
}

.title p {
    font-size: 1.1rem;
    font-weight:300;
    color: var(--light-text);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 1rem;
}

.title-bg-wh p {
    font-size: 1.1rem;
    font-weight:300;
    color: #404040;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 1rem;
}


/* Loading */
.loading {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.loading img {
    width: 300px;
    margin-bottom: 2rem;
}

.entrar {
    cursor: pointer;
    color: #f5f5f5;
    font-weight: 400;
    font-size: 1.2rem;
    background: #595959;
    border-radius: 15px;
    padding: 10px 30px;
    transition: all 0.3s ease;
}

.entrar:hover {
    background: #393939;
}

.box_load_p {
    position: absolute;
    bottom: 5%;
    right: 5%;
    max-width: 300px;
    color: #595959;
    font-style: italic;
    text-align: right;
}

/* Header */
#header {
    background: #fff;
    padding: 15px 0;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    z-index: 997;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.5s;
}

#header.header-scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

#header .navbar-brand img {
    height: 50px;
    transition: all 0.5s;
}

@media (min-width: 993px) {
.navbar-expand-lg .navbar-collapse {
    display: block !important;
    flex-basis: auto;
}

.navbar-expand-lg .navbar-nav {
  flex-direction: row !important;
  float: right !important;
}

.navbar-nav .nav-item {
    margin: 0 10px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-text);
    position: relative;
    padding: 10px 0;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #004aad;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.agenda-item .agenda-link {
    /*background: #022776;
    border-radius: 50px;
    color: #fff !important;
    padding: 5px 15px;
    position: relative;
    top: 4px;
    transition:0.2s all;
    text-decoration:none;*/
    
    display: inline-block;
    padding: 10px 25px;
    background-color: #1a3e72;
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    border: 2px solid #1a3e72;
    transition: all 0.3s ease;
    margin-left: 15px;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
    }

    .agenda-item .agenda-link:hover {
        border: 2px solid #1a3e72;
        background:#004aad;
    }
}

/* Portada */
.portada {
    padding-top: 100px;
    background: var(--dark-bg);
}

.slider {
    margin-bottom: 50px;
}


/*ident*/
.ident {
    background: #e7e8e9;
    padding-top: 10px;;
}

.ident h1 {
    color: #495057;
    font-size: 30px;
}



/*agendar hora after*/
.wrapper-agenda {
    background:#1a3e72;
    padding-top:15px;
    padding-bottom:15px;
}

.agenda-after-car {
    font-size:26px;
    color:#ddd !important;
    font-weight:500;
    margin-bottom:0 !important;
    transition:0.2s all;
    text-decoration:none;
}

.agenda-after-car:hover {
    color:#fff !important;
}


.border-img {
    margin-bottom: 20px;
}

.border-img img {
    border: 2px solid var(--secondary-color);
    padding: 2px;
    border-color:#f5f5f5 !important;
}

.portada h4 {
    color: var(--light-text);
    margin-bottom: 15px;
}

.p1, .p2, .p3 {
    text-align:justify;
}

/* Nuestra firma */

.nuestra_firma {
    background: var(--medium-bg);
    padding:70px;
}

.nuestra_firma .row-pro-rb {
    padding-bottom:30px;
}

.nuestra_firma .row-pro-rb2 {
    padding-bottom:30px;
}

.nuestra_firma .pro-rb {
    border-radius:5px;
}

.nuestra_firma .pro-rb2 {
    border-radius:5px;
}

/*abogados old*/

.nav-tabs .nav-link {
    color: var(--dark-text);
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.cv {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    height: 100%;
}

.cv h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.cv ul {
    padding-left: 20px;
}

.cv ul li {
    font-size:14px;
    color:#3b3b3c;
    margin-bottom: 10px;
}


/*SECCIÓN ABOGADOS MEJORADA*/

.abogados {
    /*background-color: #121513;*/
    background-color:#f5f5f5;
    padding: 80px 0;
    
}

.abogados .section-subtitle {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    margin-bottom: 2rem;
}

/* Pestañas */
.abogados-tabs {
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 2rem;
    justify-content: center;
}

.abogados-tabs .nav-link {
    border: none;
    color: #495057;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    margin: 0 0.5rem;
    border-radius: 0;
    position: relative;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border: 1px solid #e1e1e1;
    border-bottom: 3px solid #004aad;
    background: #e7e8e9;
    transition: all 0.2s ease;
}

.abogados-tabs .nav-link.active {
    color: #fff;
    background-color: #1a3e72;
    border-bottom: 3px solid #004aad;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.abogados-tabs .nav-link:hover:not(.active) {
    color: #1a3e72;
}

/* Tarjeta de abogado */
.abogado-card {
    background: white;
    border-radius: 8px;
    /*box-shadow: 0 5px 15px rgba(0,0,0,0.05);*/
    overflow: hidden;
}

.abogado-header {
    display: flex;
    padding: 2rem;
    /*border-bottom: 1px solid #eee;*/
    align-items: center;
}

.abogado-img-container {
    position: relative;
    margin-right: 2rem;
    flex-shrink: 0;
    border-radius: 100px;
    border: 1px solid #f1f1f1;
}

.abogado-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.abogado-contacto {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
}

.abogado-info {
    flex-grow: 1;
}

.abogado-info h3 {
    color: #1a3e72;
    margin-bottom: 1rem;
}

.abogado-resumen {
    list-style: none;
    padding: 0;
    margin: 0;
}

.abogado-resumen li {
    color:#3b3b3c;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

/*.abogado-resumen li:before {
    content: "•";
    color: #b38e5c;
    font-weight: bold;*/
    /*position: absolute;
    left: -1rem;*/
/*}*/

.abogado-resumen i {
    /*margin-right: 0.5rem;*/
    color: #b38e5c;
}

/* Detalles del abogado */
.abogado-details {
    padding: 0rem 2rem;
}

.abogado-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.abogado-section h4 {
    color: #495057;
    border-bottom: 1px dashed #dee2e6;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.abogado-section i {
    margin-right: 0.5rem;
    color: #1a3e72;
}

.abogado-list {
    list-style-type: none;
    padding-left: 1.5rem;
}

.abogado-list li {
    position: relative;
    font-size:14px;
    color:#3b3b3c;
    margin-bottom: 0.2rem;
}

.abogado-list li:before {
    content: "•";
    color: #b38e5c;
    font-weight: bold;
    position: absolute;
    left: -1rem;
}

.abogado-details .btn-vermas {
    background: #1a3e72;
    color: #fff;
    margin-left: 20px;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    white-space: nowrap;
    text-decoration: none;
    font-weight: 500;
}

.abogado-details .btn-vermas:hover {
    background:var(--primary-color);
    color: #fff;
}

.abogado-details .btn-vermas i {
    margin-left: 0.5rem;
    transition: transform 0.3s;
}

.abogado-details .btn-vermas[aria-expanded="true"] i {
    transform: rotate(180deg);
}

/* Servicios */
.servicios {
    background: var(--medium-bg);
    padding: 80px 0;
}

.list-group-item {
    border: none;
    border-radius: 0;
    padding: 12px 20px;
    color: var(--dark-text);
    font-weight: 500;
}

.list-group-item.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.innerservicios {
    /*padding: 20px;*/
    background: #fff;
    border-radius: 10px;
    /*box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);*/
}

.innerservicios h2 {
    color: #022776;
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-top:10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.innerservicios ul {
    padding-left: 16px;
}

.innerservicios ul li {
    color:#333333;
    margin-bottom:5px;
}

/* Casos Destacados */
.casos {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('../img/parallax/rubioabogados_casos_destacados_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: white;
    padding: 80px 0;
}

.caso-content {
    background: rgba(255, 255, 255, 1);
    border-radius: 10px;
    padding: 30px;
    margin: 0 15px;
    color: #404040;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-height: 300px;
}

.caso-content h4 {
    color: #1a3e72;
    font-weight: 600;
    margin-bottom: 15px;
    /*border-bottom: 2px solid #b38e5c;*/
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 10px;
    padding-left:20px;
    padding-right:20px;
}

.caso-ref span {
    color: #313131;
    font-weight: 600;
    display: block;
    margin-bottom: 15px;
    padding-left:20px;
    padding-right:20px;
}

.caso-desc {
    font-size: 15px;
    line-height: 1.6;
    padding: 0 20px;
    text-align: justify;
}

/* Indicadores del carrusel */
.carousel-indicators {
    bottom: -50px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
}

.carousel-indicators .active {
    background-color: #b38e5c;
}

/* Controles del carrusel */
.carousel-control-prev,
.carousel-control-next {
    width: 6%;
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: #1a3e72;
    border-radius: 50%;
    background-size: 60%;
    transition: all 0.3s ease;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: #1a3e72;
}

/*pasos*/
#casosCarousel .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  padding: 0;
  margin-right: 3px;
  margin-left: 3px;
  text-indent: -999px;
  cursor: pointer;
  background-color: #fff;
  background-clip: padding-box;
}

@media (max-width: 768px) {
    .caso-content {
        padding: 20px;
        min-height: auto;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
}

@media (min-width: 993px) {
    .carousel-control-prev-icon, .carousel-control-next-icon {
        width: 1.7rem;
        height: 1.8rem;
        background-color: #022776;
        border-radius: 50%;
        background-size: 80%;
        transition: all 0.3s ease;
    }
}

/* Ubicación */
.ubicacion {
    background: var(--medium-bg);
    padding: 80px 0;
}

.info-suc1, .info-suc2 {
    margin-bottom: 30px;
}

.map-suc1, .map-suc2 {
    margin-bottom: 30px;
}

/* Enlaces */
.links {
    background: #fff;
    padding: 80px 0;
}

.links .title-bg-wh h2 {
    color: #404040;
    text-align:center;
}

.links .title-bg-wh p {
    color: #404040;
    text-align:center;
}

/* Contacto */
.contacto {
    background: var(--dark-bg);
    padding: 80px 0 20px;
}

.info-ctc {
    font-size:20px;
    margin-bottom: 20px;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
}

footer img {
    max-width: 300px;
    margin-bottom: 20px;
}

.scroll_top {
    margin-top: 20px;
}

.scroll_top img {
    width: 40px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.scroll_top img:hover {
    opacity: 1;
}

.agenda-link-mobile-footer {
  display: inline-block;
  padding: 10px 25px;
  background-color: #1a3e72;
  color: white !important;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  border: 2px solid #1a3e72;
  transition: all 0.2s ease;
  /*margin-left: 15px;*/
  text-transform: uppercase;
  font-size: 1.2em;
  letter-spacing: 0.5px;
}

/* WhatsApp */
.wsp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
}

.wsp i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    font-size: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.wsp i:hover {
    transform: scale(1.1);
    background: #128C7E;
}


/* Responsive */
@media (max-width: 992px) {
    .seccion {
        padding: 60px 0;
    }
    
    .title h2, .title-bg-wh h2 {
        font-size: 2rem;
    }
    
    .portada h4 {
        margin-top:20px;
        margin-bottom:10px;
    }
    
    .abogado-resumen li {
        text-align:left;
    }
    
    .abogado-header {
        padding:0;
        flex-direction: column;
        text-align: center;}
    
    .abogado-img-container {
        margin-right: 0;
        margin-bottom: 1.5rem;}
    
    .abogados-tabs .nav-link.active {
        color: #fff;
        background-color: #004aad;
        border-bottom: 3px solid #004aad;}
    
    .abogado-details {
        padding: 0rem;}
    
    /*agendar hora after*/
    .wrapper-agenda {
        background:#1a3e72;
        padding-top:15px;
        padding-bottom:15px;
    }

    .agenda-after-car {
        font-size:20px;
        color:#ddd !important;
        font-weight:500;
        margin-bottom:0 !important;
        transition:0.2s all;
        text-decoration:none;
    }

    .agenda-after-car:hover {
        color:#fff !important;
    }
    
    .abogados {
        background-color: #121513;
        background-color: #f5f5f5;
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .portada {
        padding-top: 10px;
    }
    
    .box1 p {
        padding-left:20px;
        padding-right:20px;
    }
    
    .box2 p {
        padding-left:20px;
        padding-right:20px;
    }
    
    .box3 p {
        padding-left:20px;
        padding-right:20px;
    }
    
    .box4 p {
        padding-left:20px;
        padding-right:20px;
    }
    
    .title h2, .title-bg-wh h2 {
        font-size: 2rem;
        font-weight:500;
        margin-bottom: 5px;
    }
    
    title-bg-wh p {
    font-size: 1.3rem;
    margin: 0 auto 1rem;}
    
    .seccion::after {
        left: 5%;
        width: 90%;}
}

@media (max-width: 576px) {
    .loading img {
        width: 200px;
    }
    
    .entrar {
        font-size: 1rem;
        padding: 8px 20px;
    }
    
    #header .navbar-brand img {
        height: 40px;
    }
    
    .ident h1 {
    color: #495057;
    font-size: 24px;}
    
    .abogados-tabs .nav-link {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .abogado-img {
        width: 120px;
        height: 120px;
    }
    
    .abogado-details .btn-vermas {
        display: block;
        margin: auto;
    }
    
    .caso-content h4 {
        font-size:15px !important;
    }
    
    .caso-desc {
        padding-left:0;
        padding-right:0;
    }
    
    .carousel-control-prev, .carousel-control-next {
        width:8%;
    }
    
    .caso-ref span {
        font-size:14px;
    }
    
    .info-ctc {
        text-align:center;
    }
    
    .agenda-link-mobile-footer {
        display:block;
        text-align:center;
    }
}

@media (max-width: 410px) {
    #header .navbar-brand img {
        height: 40px;
        transition: all 0.5s;
    }
    
    
}