/* Helvetica Neue, lato, open sans */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@100;200;300;400;700&family=Open+Sans:wght@100;200;300;400;700&family=Helvetica+Neue:wght@100;200;300;400;700&display=swap');

html {
    scroll-behavior: smooth;
    overflow-x: hidden !important;
}

body {
    font-family: "Helvetica Neue", sans-serif;
    background: #FFFFFF;
    min-height: 100vh;
    overflow-x: hidden !important;
}

.lato {
    font-family: "Lato", sans-serif;
}

.open-sans {
    font-family: "Open Sans", sans-serif;
}

/* Responsive Navigation Styles for Calva & Huerta */
#nav-calva-huerta {
    background-color: #061846;
    transition: all 0.3s ease;
}

#nav-calva-huerta .nav-link {
    color: #AAAAAA !important;
    transition: color 0.2s ease;
}

#nav-calva-huerta .nav-link:hover,
#nav-calva-huerta .nav-link:focus {
    color: #ffffff !important;
}

#nav-calva-huerta .nav-btn-contacto {
    color: #FFFFFF !important;
    /* Elegant gold */
    border: 1.5px solid #FFFFFF;
    border-radius: 2px;
    transition: all 0.3s ease;
}

#nav-calva-huerta .nav-btn-contacto:hover {
    background-color: #FFFFFF;
    color: #152b52 !important;
}

@media (max-width: 991.98px) {
    #nav-calva-huerta .navbar-collapse {
        background-color: #152b52;
        padding: 1rem 0;
    }

    #nav-calva-huerta .nav-item {
        width: 100%;
        text-align: center;
        margin: 0.5rem 0;
    }

    #nav-calva-huerta .nav-btn-contacto {
        display: inline-block;
        width: auto;
    }
}

@media (min-width: 992px) {}

@media (max-width: 768px) {}

/* Hero Banner Styles Calva & Huerta */
/* .hero-overlay {
    background: linear-gradient(to right, rgba(32, 54, 111, 0.95) 0%, rgba(32, 54, 111, 0.8) 45%, rgba(32, 54, 111, 0.35) 100%);
} */

.label-gold {
    color: #FFFFFF !important;
}

.link-gold {
    color: #FFFFFF !important;
    transition: color 0.3s ease, transform 0.3s ease;
}

.link-gold:hover {
    color: #ffffff !important;
    transform: translateY(2px);
}

.font-serif-heading {
    font-family: 'lato', sans-serif;
    font-weight: 300 !important;
    color: #111111;
}

.font-sans-subtitle {
    color: #AAAAAA !important;
}

.font-sans-btn {
    font-family: 'Helvetica Neue', sans-serif;
}

.btn-gold {
    background-color: #E8E8E8 !important;
    color: #111111 !important;
    border: 1.5px solid #E8E8E8 !important;
    transition: all 0.3s ease !important;
}

.btn-gold:hover {
    background-color: transparent !important;
    color: #E8E8E8 !important;
    border-color: #E8E8E8 !important;
}

.btn-outline-gold {
    background-color: transparent !important;
    color: #E8E8E8 !important;
    border: 1.5px solid #E8E8E8 !important;
    transition: all 0.3s ease !important;
}

.btn-outline-gold:hover {
    background-color: #E8E8E8 !important;
    color: #111111 !important;
}

/* Subtle bounce animation for "Explorar" chevron */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
    display: inline-block;
}

/* --- Hero Banner Section (#inicio) --- */
#inicio {
    background: url('../img/office_background_02.jpeg') center/cover no-repeat;
}

#inicio .hero-overlay {
    z-index: 1;
}

#inicio .container {
    padding-top: 80px;
}

#inicio .label-gold {
    font-size: 0.85rem;
    letter-spacing: 3px;
}

#inicio .font-serif-heading {
    font-size: 4.5rem;
    letter-spacing: -0.5px;
}

#inicio .font-sans-subtitle {
    max-width: 680px;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    line-height: 1.6;
}

#inicio .btn-gold,
#inicio .btn-outline-gold {
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    border-radius: 2px;
}

#inicio .link-gold {
    font-size: 0.75rem;
    letter-spacing: 3px;
}

/* --- Nuestra Firma Section (#nuestra-firma) --- */
#nuestra-firma {
    background-color: #E1E4ED;
    color: #333333;
    font-family: 'Helvetica Neue', sans-serif;
}

#nuestra-firma .label-gold {
    font-size: 0.85rem;
    letter-spacing: 5.2px;
}

#nuestra-firma .firma-title {
    font-size: 3rem;
    font-weight: lighter;
    line-height: 1.2;
    color: #111111 !important;
}

#nuestra-firma .firma-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 1.5px;
    background-color: #20366F;
}

#nuestra-firma .firma-desc-container {
    font-family: 'Lato', sans-serif;
    color: #707070 !important;
}

#nuestra-firma .stats-card {
    background-color: #20366F;
    border-radius: 15px;
    min-height: 190px;
    position: relative;
    padding-bottom: 30px !important;
}

#nuestra-firma .stats-card::after {
    content: '';
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #E8E8E8;
}

#nuestra-firma .stats-number {
    color: #E8E8E8;
    font-family: 'Lato', sans-serif;
}

#nuestra-firma .stats-label {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
}

/* --- Filosofía Section (#filosofia) --- */
#filosofia {
    background-color: #FAF8F5;
    color: #333333;
    font-family: 'Helvetica Neue', sans-serif;
}

#filosofia .filosofia-title {
    font-size: 3rem;
    font-weight: lighter;
    line-height: 1.2;
    color: #20366F !important;
}

#filosofia .filosofia-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 1.5px;
    background-color: #021953;
}

#filosofia .filosofia-desc-container {
    font-family: 'Lato', sans-serif;
    color: #999999 !important;
    max-width: 600px;
}

/* Quote banner styling */
#filosofia .quote-text {
    font-weight: 100 !important;
    letter-spacing: -0.5px;
    color: #F5F2EC;
}

/* Card deck container */
.ventajas-container {
    margin-top: 3rem;
}

/* Card default state */
.card-ventaja {
    background: transparent linear-gradient(180deg, #011750 0%, #0D3583 100%) 0% 0% no-repeat padding-box;
    border-radius: 0px;
    /* Matches the clean corporate style */
    min-height: 320px;
    position: relative;
    padding-top: 15px !important;
    /* spacing below gold line */
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

/* Gold stripe on top of card */
/* .card-ventaja::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: #C9A84C;
    transition: all 0.4s ease;
} */

/* Card inner content alignment */
.card-ventaja-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: 280px;
}

/* Title styling */
.card-ventaja-title {
    color: #F5F2EC;
    font-family: 'Lato', sans-serif;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1.3;
    margin-bottom: 0;
    transition: all 0.4s ease;
}

/* Description styling */
.card-ventaja-desc {
    color: #20366F;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
        opacity 0.4s ease,
        margin-top 0.4s ease;
}

/* Active card state (hovered or marked .active) */
.card-ventaja.active,
.card-ventaja:hover {
    background: #FFFFFF;
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(32, 54, 111, 0.15);
}

.card-ventaja.active .card-ventaja-title,
.card-ventaja:hover .card-ventaja-title {
    color: #0C327D;
    font-weight: normal;
    margin-bottom: 12px;
}

.card-ventaja.active .card-ventaja-desc,
.card-ventaja:hover .card-ventaja-desc {
    max-height: 150px;
    opacity: 1;
    margin-top: 10px;
}

.card-ventaja.active::before,
.card-ventaja:hover::before {
    background-color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(201, 168, 76, 0.4);
}

/* --- Áreas de Expertise Section (#areas) --- */
#areas {
    font-family: 'Lato', sans-serif;
}

#areas .gavel-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 20;
}

@media (min-width: 992px) {
    #areas .gavel-img {
        margin-top: -140px;
    }
}

#areas .area-item {
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.549) !important;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#areas .area-item:last-child {
    border-bottom: none !important;
}

#areas .area-number {
    font-size: 2rem;
    font-weight: bold;
    font-family: 'Lato', sans-serif;
    color: #FFFFFF;
    line-height: 1;
    width: 50px;
    display: inline-block;
    transition: color 0.3s ease;
}

#areas .area-title {
    font-size: 1.05rem;
    font-weight: bold;
    letter-spacing: 1.5px;
    margin-bottom: 0;
    color: #FFFFFF;
    font-family: 'Lato', sans-serif;
    transition: color 0.3s ease;
}

#areas .area-desc-short {
    font-size: 0.9rem;
    color: #C8C8C8 !important;
    margin-top: 6px;
    margin-bottom: 0;
    display: block;
    font-family: 'Lato', sans-serif;
    transition: all 0.3s ease;
}

#areas .area-desc-full {
    font-size: 0.9rem;
    color: #C8C8C8;
    margin-top: 0;
    margin-bottom: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    display: none;
    font-family: 'Lato', sans-serif;
    transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s ease, margin-top 0.4s ease;
}

#areas .area-icon {
    font-size: 1.25rem;
    color: #FFFFFF;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Active state for accordion item */
#areas .area-item.active .area-title {
    color: #FFFFFF;
}

#areas .area-item.active .area-desc-short {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    display: none;
}

#areas .area-item.active .area-desc-full {
    display: block;
    max-height: 250px;
    opacity: 1;
    margin-top: 10px;
}

#areas .area-item.active .area-icon {
    color: #FFFFFF;
    transform: rotate(0deg);
}

/* CTA Banner (Gold Band) */
.cta-gold-banner {
    background: #C2C8D8;
    color: #111111;
    font-family: 'Lato', sans-serif;
}

.cta-gold-banner .cta-label {
    font-size: 0.85rem;
    letter-spacing: 5.2px;
    color: #4A3A10;
    font-weight: normal;
}

.cta-gold-banner .cta-title {
    font-size: 3rem;
    font-weight: light;
    color: #111111;
    font-family: 'Lato', sans-serif;
    line-height: 1.2;
}

.cta-gold-banner .cta-subtitle {
    font-size: 1.05rem;
    color: #4A3A10;
    font-family: 'Lato', sans-serif;
}

.cta-gold-banner .btn-cta-contact {
    background-color: #111111;
    color: #C8C8C8;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: bold;
    border-radius: 0px;
    padding: 15px 45px;
    border: 1.5px solid #111111;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.cta-gold-banner .btn-cta-contact:hover {
    background-color: transparent;
    color: #111111;
}

/* --- Proceso Section (#proceso) --- */
#proceso {
    background-color: #F5F2EC;
    color: #333333;
    font-family: 'Lato', sans-serif;
}

#proceso .proceso-title {
    font-size: 3rem;
    font-weight: 300;
    line-height: 1.2;
    color: #111111 !important;
}

#proceso .proceso-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 1.5px;
    background-color: #20366F;
}

.card-proceso {
    background-color: #20366F;
    border-radius: 10px;
    padding: 30px;
    min-height: 180px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
}

.card-proceso-content {
    max-width: 75%;
    text-align: left;
}

.card-proceso-title {
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    color: #FFFFFF;
    font-weight: normal;
    margin-bottom: 12px;
    text-transform: uppercase;
    display: block;
}

.card-proceso-desc {
    font-size: 0.9rem;
    color: #FFFFFF;
    line-height: 1.5;
    margin-bottom: 0;
    font-weight: normal;
}

.card-proceso-number {
    font-size: 4.5rem;
    font-weight: bold;
    color: #FFFFFF;
    line-height: 1;
    font-family: 'Lato', sans-serif;
    transition: color 0.4s ease;
    user-select: none;
}

/* Active / Hover state */
.card-proceso.active,
.card-proceso:hover {
    background-color: #FFFFFF;
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(32, 54, 111, 0.12);
}

.card-proceso.active .card-proceso-title,
.card-proceso:hover .card-proceso-title {
    color: #20366F;
}

.card-proceso.active .card-proceso-desc,
.card-proceso:hover .card-proceso-desc {
    color: #646363;
}

.card-proceso.active .card-proceso-number,
.card-proceso:hover .card-proceso-number {
    color: #20366F;
}

/* --- Socios Section (#socios) --- */
#socios {
    background-color: #20366F;
    color: #FFFFFF;
    font-family: 'Lato', sans-serif;
}

#socios .socios-title {
    font-size: 3rem;
    font-weight: 700;
    color: #FFFFFF;
}

#socios .partner-name {
    font-size: 2.2rem;
    font-weight: light;
    color: #E8E8E8;
    margin-bottom: 2.5rem;
}

#socios .partner-bio p {
    font-size: 0.95rem;
    color: #FFFFFF;
    line-height: 1.6;
    font-weight: 300;
}

#socios .partner-photo {
    border-radius: 30px;
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

#socios .partner-contact-info p {
    font-size: 0.8rem;
    color: #E8E8E8;
    letter-spacing: 5.2px;
    margin-bottom: 8px;
    font-weight: 300;
}

#socios .partner-contact-info h5 {
    font-size: 0.8rem;
    letter-spacing: 5.2px;
    color: #E8E8E8;
    font-weight: bold;
    margin-top: 25px;
    margin-bottom: 12px;
}

/* --- Nueva Filosofía Section (id="filosofia" at line 483) --- */
#filosofia.filosofia-define-section {
    background-color: #F5F2EC;
    color: #333333;
    font-family: 'Lato', sans-serif;
}

.filosofia-define-title {
    font-size: 3rem;
    font-weight: 300;
    line-height: 1.2;
    color: #111111 !important;
}

.filosofia-define-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 20px;
    height: 1.5px;
    background-color: #20366F;
}

.card-filosofia-define {
    background-color: #FFFFFF;
    border: none;
    border-bottom: 4px solid #20366F;
    padding: 40px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    height: 100%;
}

.card-filosofia-define:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(32, 54, 111, 0.08);
    background-color: #FFFFFF;
}

.card-filosofia-quote {
    font-size: 1.15rem;
    font-style: italic;
    color: #111111;
    line-height: 1.6;
    margin-bottom: 0px;
    font-weight: 300;
    font-family: 'Lato', sans-serif;
    text-align: left;
}

.card-filosofia-footer {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #20366F;
    font-weight: normal;
    text-transform: uppercase;
    text-align: left;
    display: block;
}

/* --- Ubicación Section (#ubicacion) --- */
#ubicacion {
    background-color: #FFFFFF;
    color: #111111;
    font-family: 'Lato', sans-serif;
}

.ubicacion-define-title {
    color: #111111 !important;
    font-size: 3rem;
}

/* --- Footer Section (#foot) --- */
#foot {
    background-color: #20366F;
    color: #F5F2EC;
    font-family: 'Lato', sans-serif;
    position: relative;
    overflow: hidden;
}

.footer-label {
    color: #FFFFFF;
    font-size: 0.85rem;
    font-weight: normal;
    letter-spacing: 5.2px;
}

.footer-heading {
    color: #F5F2EC;
    font-size: 2.8rem;
    line-height: 1.2;
    font-family: 'Lato', sans-serif;
}

.footer-gold-divider {
    width: 60px;
    height: 1.5px;
    background-color: #999999;
}

.footer-description {
    color: #999999;
    opacity: 1;
    font-size: 1.05rem;
    line-height: 1.6;
}

.footer-info-list {
    margin-top: 1.5rem;
}

.footer-info-item {
    font-size: 1.05rem;
    line-height: 1.6;
}

.footer-link {
    color: #BBBBBB;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.footer-link:hover {
    color: #C9A84C !important;
    opacity: 1 !important;
}

/* Inline SVG styling */
.footer-logo-svg {
    max-height: 140px;
    width: auto;
}

.footer-logo-svg path,
.footer-logo-svg rect {
    fill: #FFFFFF;
    /* Default color for temple and main names */
    transition: fill 0.3s ease;
}

/* Selective coloring for gold logo elements: the "&" ampersand and "ABOGADOS" sub-title */
.footer-logo-svg #Trazado_218,
.footer-logo-svg #Trazado_229,
.footer-logo-svg #Trazado_230,
.footer-logo-svg #Trazado_231,
.footer-logo-svg #Trazado_232,
.footer-logo-svg #Trazado_233,
.footer-logo-svg #Trazado_234,
.footer-logo-svg #Trazado_235,
.footer-logo-svg #Trazado_236 {
    fill: #C9A84C;
}

/* Copyright Row */
.footer-bottom {
    background-color: #061846;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 1rem;
}

.footer-copyright-text {
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: #B1B1B1;
}

/* --- Image Hover Zoom Effect --- */
.gavel-img,
.partner-photo,
.hover-zoom-img {
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.6s ease !important;
    cursor: pointer;
}

.gavel-img:hover,
.partner-photo:hover,
.hover-zoom-img:hover {
    transform: scale(1.06) !important;
}