@font-face {
    font-family: 'Dupla';
    src: url('fonts/Dupla.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Dupla';
    src: url('fonts/Dupla-Italic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
}
@font-face {
    font-family: 'Dupla';
    src: url('fonts/DuplaDemibold-DemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'Dupla';
    src: url('fonts/DuplaDemibold-DemiBoldItalic.otf') format('opentype');
    font-weight: 600;
    font-style: italic;
}
@font-face {
    font-family: 'Dupla';
    src: url('fonts/Dupla-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Dupla';
    src: url('fonts/DuplaBlack-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

/* Paleta de Colores:
   Azul Navy PROFUNDO: #0b1528 o #0A192F
   Gris Acero: #4A5568 / #8CA3B9
   Blanco: #FFFFFF o #F8FAFC
*/

:root {
    --navy-blue: #0b1528;
    --navy-blue-light: #162a4d;
    --steel-gray: #4A5568;
    --steel-gray-light: #718096;
    --steel-gray-lighter: #edf2f7;
    --white: #ffffff;
    --off-white: #F8FAFC;
    
    --font-serif: 'Dupla', serif;
    --font-sans: 'Dupla', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--steel-gray);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .logo-text, .section-title {
    font-family: var(--font-serif);
    color: var(--navy-blue);
    font-weight: 900;
}

.subtitle, .team-role, .desc-text {
    font-family: var(--font-sans);
    font-weight: 600;
    font-style: italic;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.text-light-gray { color: #cbd5e1; }
.max-w-800 { max-width: 800px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }

/* Backgrounds */
.bg-light { background-color: var(--off-white); }
.bg-dark { background-color: var(--navy-blue); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0; /* Square for professional look */
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--navy-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--white);
    color: var(--navy-blue);
    border-color: var(--navy-blue);
}

.btn-secondary {
    background-color: transparent;
    color: var(--navy-blue);
    border: 1px solid var(--navy-blue);
}

.btn-secondary:hover {
    background-color: var(--navy-blue);
    color: var(--white);
}

.hero-btn {
    background-color: var(--navy-blue);
    color: var(--white);
    border: 1px solid var(--navy-blue);
}

.hero-btn:hover {
    background-color: var(--navy-blue);
    color: var(--white);
    box-shadow: 0 10px 25px rgba(65, 105, 225, 0.6);
    transform: translateY(-3px);
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    box-shadow: 0 8px 15px rgba(37, 211, 102, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(37, 211, 102, 0.4);
    color: var(--white);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #5b5d5d; /* Dark grey left backup */
    background-image: url('navbar_left.png');
    background-repeat: repeat-x;
    background-size: 1px 100%;
    z-index: 1000;
    height: 85px; /* Altura fija para no deformar */
    padding: 0;
    border-bottom: none;
    transition: var(--transition);
}

.navbar-bg-right {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 50%; /* Will be dynamically updated by JS to match logo edge */
    background-image: url('navbar_bg.png'); /* Light grey right slice */
    background-repeat: repeat-x;
    background-size: 1px 100%;
    z-index: -1;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    position: relative;
}

.logo {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
}

.navbar-logo {
    height: 100%;
    width: auto;
    object-fit: cover;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links li a {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--navy-blue);
    position: relative;
    text-shadow: 1px 1px 0px rgba(255,255,255,0.3); /* Letra legible sobre metal */
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--navy-blue);
    transition: var(--transition);
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-btn {
    border: 2px solid var(--navy-blue);
    padding: 0.5rem 1.2rem !important;
    border-radius: 4px;
    background-color: rgba(255,255,255,0.1);
}

.nav-btn::after {
    display: none;
}

.nav-btn:hover {
    background-color: var(--navy-blue);
    color: var(--white) !important;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.lang-switcher {
    display: flex;
    gap: 5px;
    background: rgba(255,255,255,0.1);
    padding: 4px;
    border-radius: 6px;
    border: 1px solid #ffffff;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--navy-blue);
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
}

.lang-btn.active {
    background: var(--navy-blue);
    color: var(--white);
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.divider {
    height: 3px;
    width: 180px;
    background: linear-gradient(90deg, transparent 0%, currentColor 15%, currentColor 85%, transparent 100%);
    color: var(--steel-gray);
    margin: 0 auto 2rem;
    border-radius: 50%; /* Helps soften the actual ends */
}

.divider.left {
    margin-left: 0;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Offset for navbar */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg .bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-bg .bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: rgba(11, 21, 40, 0.1);
    color: var(--navy-blue);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--navy-blue);
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content h1 .highlight {
    color: var(--steel-gray);
    font-style: italic;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--steel-gray);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.hero-image {
    position: relative;
    max-width: 450px;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: -15px 15px 0px rgba(74, 85, 104, 0.2);
    border: 1px solid rgba(255,255,255,0.5);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background-color: var(--navy-blue);
    color: var(--white);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.experience-badge .number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
}

/* Diferenciador */
.diferenciador {
    position: relative;
}

.lead-text {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--navy-blue);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.desc-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.parallax-bg {
    margin-top: 4rem;
    /* La altura siempre será menor que la imagen (que es de ~30vw), garantizando que NUNCA haya franjas grises */
    height: min(350px, 25vw);
    position: relative;
    background-image: url('parallax_bg.png');
    background-position: center 0%;
    background-repeat: no-repeat;
    /* Usamos scroll en CSS, el efecto parallax se hará por JavaScript para no dañar el zoom ni cortar a los lados */
    background-attachment: scroll;
    /* Fuerza ancho completo siempre, protegiendo el texto de cortes */
    background-size: 100% auto;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent; /* Se eliminó el filtro azul para que quede gris natural */
}

/* Expertiz */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.expertiz-card {
    background-color: var(--white);
    padding: 3rem;
    border-top: 4px solid var(--navy-blue);
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.expertiz-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--steel-gray);
    margin-bottom: 1.5rem;
}

.expertiz-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.expertiz-card .subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--steel-gray-light);
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--steel-gray-lighter);
    padding-bottom: 1rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.feature-list li i {
    color: var(--navy-blue);
    margin-top: 5px;
}

.feature-list li strong {
    display: block;
    color: var(--navy-blue);
    font-weight: 600;
    margin-bottom: 3px;
}

/* Firma */
.split-section {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.split-section .block {
    flex: 1;
}

.firma-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    filter: grayscale(20%);
    box-shadow: 15px 15px 0px rgba(11, 21, 40, 0.05);
}

.services-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.service-box {
    background-color: var(--navy-blue);
    color: var(--white);
    padding: 1.5rem;
    text-align: left;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 25px rgba(65, 105, 225, 0.4);
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(65, 105, 225, 0.8);
}

.service-box:hover i {
    transform: translateX(-5px);
}

.service-box i {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1rem;
    transition: var(--transition);
    text-align: center;
    display: block;
}

.service-box h4 {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--white);
    transition: var(--transition);
    text-align: center;
}

.service-box p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
    transition: var(--transition);
    margin-bottom: 1rem;
    font-style: italic;
    text-align: center;
}

.sbox-list {
    list-style: none;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.sbox-list li {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 15px;
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.sbox-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: inherit;
}

.sbox-cta {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #bba365;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    text-align: center;
    justify-content: center;
}

.service-box:hover .sbox-cta {
    color: #fff;
}

/* Equipo */
.equipo {
    background-color: var(--white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(65, 105, 225, 0.6); /* Azul rey glow at 60% opacity */
}

.team-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.team-img:hover {
    transform: scale(1.33);
    box-shadow: 0 10px 25px rgba(65, 105, 225, 0.4);
}

.team-card h4 {
    font-family: var(--font-sans);
    color: var(--navy-blue);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.team-role {
    color: var(--steel-gray);
    font-size: 0.9rem;
    font-style: italic;
}

.team-card-principal {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    border: 1px solid rgba(11, 21, 40, 0.1); /* Subtle border to pop */
}

.team-card-principal:hover {
    transform: scale(1.05) translateY(-5px);
}

.team-card-principal .team-img {
    width: 175px;
    height: 175px;
}

.team-card-principal h4 {
    font-size: 1.4rem;
}

/* Agenda */
.calendar-slots {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.slot-card {
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 2rem;
    min-width: 200px;
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.slot-card:hover {
    background-color: var(--white);
    color: var(--navy-blue);
    transform: translateY(-5px);
}

.slot-card:hover .day, .slot-card:hover .time, .slot-card:hover .availability {
    color: var(--navy-blue);
}

.slot-card .day {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--white);
    transition: var(--transition);
}

.slot-card .time {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.slot-card .availability {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #4ade80;
    font-weight: 600;
}

.cta-wrapper {
    margin-top: 2rem;
}

/* Footer */
.footer {
    background-color: #050a14;
    padding: 3rem 0;
    color: rgba(255,255,255,0.5);
    text-align: center;
}

.footer .logo {
    display: inline-flex;
    margin-bottom: 1rem;
}

.footer .logo-text {
    color: var(--white);
    font-size: 1.5rem;
}

.footer p {
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 4rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-image-wrapper {
        justify-content: center;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-bg .bg-overlay {
        background: linear-gradient(to bottom, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.95) 100%);
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .split-section {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile fallback */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section {
        padding: 4rem 0;
    }

    .parallax-bg {
        /* Hereda el height: 30.2vw y el size: 100% auto que ya lo hacen perfecto en móvil */
    }
}

/* FAQ Section */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.faq-item {
    border-bottom: 1px solid rgba(11, 21, 40, 0.1);
    padding-bottom: 0.2rem;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy-blue);
    cursor: pointer;
    padding: 0.8rem 30px 0.8rem 0;
    position: relative;
    transition: var(--transition);
}

.faq-question:hover {
    text-shadow: 0 0 8px rgba(30, 58, 104, 0.5);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--navy-blue);
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-answer p {
    padding: 0 0 1rem 0;
    color: var(--steel-gray);
    margin: 0;
    line-height: 1.6;
}

/* GSAP Parallax Gallery */
.cursor-pill {
    background: white;
    padding: 8px 24px;
    border-radius: 99px;
    position: relative;
    display: inline-flex;
    align-items: center;
    color: black;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.cursor-pill::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 99px;
    background: linear-gradient(90deg, #89AACC, #4E85BF, #89AACC);
    background-size: 200% auto;
    z-index: -1;
    animation: gradientShift 2s linear infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.parallax-item:hover {
    cursor: none;
}
.parallax-item:hover img {
    transform: scale(1.05);
}

/* Extra Responsive Adjustments */
@media (max-width: 768px) {
    /* Make navbar smaller on mobile to not overlap buttons */
    .navbar {
        height: 70px !important;
    }
    .nav-content {
        overflow-x: auto;
        justify-content: flex-start !important;
        gap: 1.5rem;
    }
    .nav-content::-webkit-scrollbar { display: none; }
    .nav-links {
        display: flex !important;
        margin-left: 1rem !important;
        white-space: nowrap;
        gap: 1.5rem !important;
    }
    .video-section {
        height: 60vh !important;
        min-height: 400px !important;
        padding-top: 70px !important;
    }
    .video-section video {
        height: 100% !important;
    }
    .video-overlay {
        top: 70px !important;
        height: calc(100% - 70px) !important;
    }
    .logo img, .navbar-logo {
        max-height: 45px !important;
        width: auto !important;
    }
    .lang-switcher {
        display: flex !important;
    }
    .btn-consultar {
        padding: 6px 10px !important;
        font-size: 0.75rem !important;
    }
    
    /* Reduce all section paddings to prevent "everything too far down" */
    .section, .section[style] {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }
    .section-title {
        font-size: 2rem !important;
    }
    
    /* Team member grid wrap handling - 3 in a horizontal row */
    .team-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.5rem !important;
        flex-direction: row !important;
    }
    .team-card {
        width: 100% !important;
        max-width: none !important;
        padding: 0.8rem 0.5rem !important;
        min-width: 0 !important;
    }
    .team-avatar {
        width: 60px !important;
        height: 60px !important;
        margin-bottom: 0.5rem !important;
    }
    .team-card-principal .team-img, .team-card.center-card .team-avatar {
        width: 75px !important;
        height: 75px !important;
    }
    .team-card h3 {
        font-size: 0.75rem !important;
    }
    .team-role {
        font-size: 0.65rem !important;
        line-height: 1.2;
    }
    
    /* Agenda padding adjust */
    .interactive-agenda {
        padding: 1.5rem !important;
        flex-direction: column;
    }
    
    #agenda-form-container {
        padding: 1rem !important;
    }

    /* Especialidades 2 columns on mobile */
    .services-boxes {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem;
    }
    .service-box {
        padding: 0.8rem;
    }
    .service-box i { font-size: 1.2rem; margin-bottom: 0.5rem; }
    .service-box h4 { font-size: 0.8rem; }
    .service-box p { font-size: 0.65rem; }
    .sbox-list li { font-size: 0.65rem; padding-left: 10px; margin-bottom: 0.2rem; }
    .sbox-cta { font-size: 0.65rem; }

    /* Aliados 2x2 grid */
    .partners-grid {
        flex-wrap: wrap !important;
        overflow-x: visible !important;
    }
    .partner-card {
        min-width: 45% !important;
        max-width: 48% !important;
        padding: 1rem 0.5rem !important;
    }
    .partner-card h3 { font-size: 0.9rem !important; }
    .partner-card .p-desc { font-size: 0.7rem !important; }
    .partner-card .p-items { font-size: 0.65rem !important; }
    .partner-card .p-quote { font-size: 0.7rem !important; }
    
    /* La Firma title line-height */
    #lafirma .section-title {
        line-height: 1.2 !important;
    }
}

@media (max-width: 480px) {
    .btn-consultar {
        font-size: 0.65rem !important;
        padding: 5px 8px !important;
        white-space: normal !important;
        text-align: center;
        max-width: 110px;
        line-height: 1.2;
    }
    .logo img, .navbar-logo {
        max-height: 38px !important;
    }
    .section, .section[style] {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    .video-section {
        height: 50vh !important;
        min-height: 350px !important;
    }
    .experience-badge {
        padding: 1rem;
        left: 0;
        bottom: 0;
    }
}

