/********** Weisensee Abogados - Template CSS **********/
:root {
    --primary: #af8022;
    --secondary: #a49668;
    --light: #f5f1e6;
    --dark: #4e4c4d;
}

html {
    scroll-behavior: smooth;
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/*** Heading ***/
h1,
h2,
h3,
.fw-bold {
    font-weight: 700 !important;
}

h4,
h5,
h6,
.fw-medium {
    font-weight: 500 !important;
}

/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
}

/*** Navbar ***/
.sticky-top {
    top: -150px;
    transition: .5s;
}

.navbar {
    padding: 11px 0 !important;
    height: 75px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 0;
    color: rgba(255, 255, 255, .7);
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: rgba(255, 255, 255, 1);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        padding: 0 15px;
        background: var(--dark);
    }

    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

/*** Hero Slider ***/
.hero-slider {
    background: var(--dark);
}

.hero-slider .carousel-item {
    min-height: 520px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slider .carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 20, 20, .75) 0%, rgba(20, 20, 20, .35) 60%, rgba(20, 20, 20, .1) 100%);
}

.hero-slider .carousel-caption {
    left: 10%;
    right: 10%;
    bottom: 50%;
    transform: translateY(50%);
    text-align: left;
    z-index: 2;
}

.hero-slider .carousel-caption h1 {
    font-size: clamp(1.8rem, 4vw, 3.4rem);
    line-height: 1.25;
    color: #ffffff;
    max-width: 640px;
}

.hero-slider .carousel-caption p {
    color: #f0e9d8;
    max-width: 560px;
    font-size: 1.05rem;
}

.hero-slider .carousel-indicators {
    bottom: 24px;
}

.hero-slider .carousel-indicators button {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid #fff;
    background: transparent;
    opacity: 1;
}

.hero-slider .carousel-indicators button.active {
    background: var(--primary);
    border-color: var(--primary);
}

.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 8%;
}

/*** Hero texto (sin imagen) ***/
.hero-static {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 0;
    background: #ffffff;
}
.hero-static h1 {
    font-size: clamp(1.8rem, 4vw, 3.4rem);
    line-height: 1.25;
    max-width: 760px;
    margin-bottom: 24px;
}
.hero-static p {
    color: #000000;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    max-width: 680px;
    margin: 0;
}

.hero-divider {
    width: 90px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto;
}

/*** Section Header (clip-path, sin fondo, ancho completo) ***/
.section-header {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background-color: transparent;
}
.section-header-bar { height: 6px; background-color: var(--primary); width: 100%; }
.section-header-content {
    position: relative; background-color: var(--dark); font-size: 24px; color: white;
    padding: 17px 60px; font-weight: bold;
    clip-path: polygon(0 0, 78% 0, 75% 100%, 0% 100%); margin-top: -1px;
}
.section-header-content p { margin: 0; font-family: 'galano', sans-serif !important; }
@media (max-width: 768px) {
    .section-header-content { padding: 15px 30px; font-size: 0.9rem; clip-path: polygon(0 0, 90% 0, 80% 100%, 0% 100%); }
}
@media (max-width: 480px) {
    .section-header-content { padding: 10px 20px; font-size: 0.85rem; clip-path: polygon(0 0, 95% 0, 85% 100%, 0% 100%); }
}

/*** Cards ***/
.card {
    border-radius: 0;
}

.card-title {
    font-weight: 500 !important;
}

.card-text {
    font-weight: 100 !important;
    text-align: justify;
    font-size: 14px;
}

/*** Practice Area ***/
.practice-card {
    border: 1px solid #e8e2d2;
    border-radius: 0;
    height: 100%;
    transition: .3s;
    background: #ffffff;
    cursor: pointer;
}

.practice-card:hover {
    box-shadow: 0 6px 24px rgba(78, 76, 77, .12);
    border-color: var(--primary);
}

.practice-card .practice-icon {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.practice-card .practice-icon img {
    max-height: 70px;
    max-width: 120px;
    object-fit: contain;
}

.practice-card .card-title {
    font-size: 17px;
    color: var(--dark);
    text-align: center;
}

.practice-card .card-text {
    text-align: center;
    font-size: 13px;
    color: #777;
}

/*** Service Item ***/
.service-item {
    position: relative;
    padding: 40px 28px;
    background: #FFFFFF;
    border: 1px solid #e8e2d2;
    transition: .5s;
    height: 100%;
    border-radius: 0;
    text-align: center;
}

.service-item:hover {
    box-shadow: 0 6px 24px rgba(78, 76, 77, .12);
    border-color: var(--primary);
    background: #FFFFFF;
}

.service-item .service-icon {
    margin: 0 auto 20px auto;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-text);
    background: var(--light);
    transition: .5s;
    border-radius: 0;
    overflow: hidden;
}

.service-item .service-icon img {
    max-height: 56px;
    max-width: 56px;
    object-fit: contain;
}

.service-item h5,
.service-item p {
    transition: .5s;
}

/*** Value Item ***/
.value-item {
    text-align: center;
    padding: 30px 20px;
}

.value-item .value-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary);
    border-radius: 0;
    background: #ffffff;
    overflow: hidden;
}

.value-item .value-icon img {
    max-height: 56px;
    max-width: 56px;
    object-fit: contain;
}

.value-item h5 {
    color: var(--dark);
    margin-bottom: 10px;
}

.value-item p {
    color: #666;
    font-size: 14px;
    margin-bottom: 0;
}

/*** Testimonial ***/
.testimonial-carousel {
    position: relative;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 40px;
    height: 100%;
    top: calc(50% - 50px);
    left: -21px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 5px 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    background: #FFFFFF;
    border: 1px solid var(--dark);
    border-radius: 40px;
    font-size: 18px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
    color: var(--dark-text);
}

.testimonial-carousel .owl-dots {
    margin-top: 35px;
    margin-left: 3rem;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin-right: 10px;
    width: 15px;
    height: 15px;
    background: #FFFFFF;
    border: 1px solid var(--dark);
    border-radius: 15px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--dark);
}

.testimonial-item {
    border-bottom: 1px solid #eee;
}

.testimonial-item .testimonial-flag img {
    height: 22px;
    margin-right: 8px;
    vertical-align: middle;
}

.testimonial-item .testimonial-client {
    font-size: 14px;
    color: var(--dark);
    font-weight: 500;
}

/*** Clients ***/
.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    padding: 15px;
    border: 1px solid #ececec;
    background: #ffffff;
    transition: .3s;
}

.client-logo:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(78, 76, 77, .08);
}

.client-logo img {
    max-height: 60px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: .75;
    transition: .3s;
}

.client-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/*** CTA Band ***/
.cta-band {
    background: var(--dark);
    color: #fff;
}

.cta-band h2 {
    color: #fff;
}

.cta-band .btn-gold {
    background: var(--primary);
    color: var(--primary-text);
}

/*** Team (Socios) ***/
.socio-item {
    background: #ffffff;
    border: 1px solid #e8e2d2;
    border-radius: 0;
    overflow: hidden;
    transition: .3s;
}

.socio-item:hover {
    box-shadow: 0 8px 28px rgba(78, 76, 77, .12);
}

.socio-item img {
    width: 100%;
    height: 340px;
    object-fit: cover;
}

.socio-item .socio-body {
    padding: 22px;
    text-align: center;
}

.socio-item h5 {
    color: var(--dark);
    margin-bottom: 2px;
}

.socio-item .socio-role {
    color: var(--dark);
    font-size: 14px;
}

/*** Gallery (Instalaciones) ***/
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: .5s;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

/*** Blog Cards ***/
.blog-card {
    border: 1px solid #e8e2d2;
    border-radius: 0;
    overflow: hidden;
    transition: .3s;
    height: 100%;
    background: #ffffff;
}

.blog-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
}

.blog-card .card-img-top {
    height: 150px;
    object-fit: contain;
    background: #ffffff;
}

.blog-card .card-body {
    padding: 25px;
}

.blog-card .card-date {
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 8px;
}

.blog-card .card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card .card-text {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.blog-placeholder {
    height: 150px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 48px;
}

/* Espaciado vertical entre filas de tarjetas */
.post-item {
    margin-bottom: 24px;
}

/*** Modal ***/
.modal-content {
    border-radius: 0;
}

.modal-header {
    background: var(--dark);
    color: #fff;
    border-radius: 0;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-body img {
    max-width: 100%;
    margin-bottom: 20px;
}

/*** Contact Info ***/
.contact-info-box {
    border: 1px solid #e8e2d2;
    border-radius: 0;
    background: #ffffff;
    height: 100%;
}

.contact-info-box .contact-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-text);
    background: var(--primary);
    font-size: 20px;
    flex-shrink: 0;
}

.contact-info-box h6 {
    color: var(--dark);
    margin-bottom: 4px;
}

.contact-info-box p {
    margin-bottom: 0;
    color: #555;
    font-size: 14px;
}

/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .5);
    border: 1px solid rgba(256, 256, 256, .1);
    border-radius: 40px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    text-align: left;
    color: rgba(255, 255, 255, .5);
    font-weight: normal;
    transition: .3s;
}

.footer .btn.btn-link:hover {
    color: #FFFFFF;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 14px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: rgba(255, 255, 255, .5);
}

.footer .copyright a:hover {
    color: #FFFFFF;
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}
