/* ==========================================
   SERVICES - Sección Seguros
   ========================================== */

.services {
    padding: var(--gap-3xl) 0;
    background: linear-gradient(180deg, var(--gris-ultra-claro) 0%, var(--blanco) 50%, var(--gris-ultra-claro) 100%);
    position: relative;
}

.services .section-header {
    text-align: left;
    max-width: var(--max-w);
    margin: 0 auto var(--gap-3xl);
    padding: 0 var(--gap-lg);
}

.services .section-title {
    text-align: left;
}

.services .section-subtitle {
    text-align: left;
    max-width: 600px;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-xl);
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--gap-lg);
}

.service-card {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(11, 47, 94, 0.12);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    height: 340px;
    background: var(--blanco);
}

.service-card:hover {
    transform: translateY(-18px) scale(1.04);
    box-shadow: 
        0 35px 90px rgba(11, 47, 94, 0.25),
        0 0 0 3px var(--oro);
}

.service-card__image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.service-card:hover .service-card__image img {
    transform: scale(1.12);
}

.service-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 47, 94, 0.95) 0%, rgba(11, 47, 94, 0.5) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: var(--gap-xl);
    text-align: center;
}

.service-card__icon {
    position: absolute;
    top: var(--gap-lg);
    right: var(--gap-lg);
    width: 65px;
    height: 65px;
    background: rgba(212, 175, 55, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    padding: 1rem;
    animation: float 3s ease-in-out infinite;
    transition: all 0.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.service-card:hover .service-card__icon {
    transform: scale(1.2) rotate(10deg);
    background: var(--oro);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.6);
}

.service-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.service-card__title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--blanco);
    margin-bottom: var(--gap-md);
    letter-spacing: -0.3px;
}

.service-card__cta {
    background: var(--oro);
    color: var(--azul-oscuro);
    padding: 0.85rem 2rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
    transform: translateY(20px);
    opacity: 0;
}

.service-card:hover .service-card__cta {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.1s;
}

.service-card__cta:hover {
    background: var(--oro-claro);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
}

/* ==========================================
   SERVICES HOME - Diseño Simple
   ========================================== */

.services-home {
    padding: var(--gap-3xl) 0;
    padding-bottom: calc(var(--gap-3xl) + 80px);
    background: var(--azul-oscuro);
    position: relative;
    overflow: visible;
}

.services-home .container {
    position: relative;
    z-index: 2;
}

.services-home .section-header .section-title {
    color: var(--blanco);
}

.services-home .section-header .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.services-home .section-header .text-highlight {
    color: var(--blanco);
    opacity: 0.9;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-lg);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap-sm);
    text-decoration: none;
    background: var(--blanco);
    padding: var(--gap-lg) var(--gap-md);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.service-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

@media screen and (max-width: 900px) {
    .services-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .services-list {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--gap-md);
    }
    
    .service-item {
        padding: var(--gap-md);
    }
    
    .service-item img {
        width: 50px;
        height: 50px;
    }
}

.service-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.service-item span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--azul-oscuro);
    transition: color 0.3s;
}

.service-item:hover span {
    color: var(--oro);
}

@media screen and (max-width: 900px) {
    .services-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .services-list {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--gap-md);
    }
    
    .service-item {
        padding: var(--gap-md);
    }
    
    .service-item img {
        width: 50px;
        height: 50px;
    }
}

/* ==========================================
   ALIADOS - Sección con marquee
   ========================================== */

.aliados-dark {
    background: var(--blanco);
    padding: var(--gap-3xl) 0;
    overflow: hidden;
    position: relative;
}

.aliados-dark__title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--azul-oscuro);
    margin-bottom: var(--gap-xl);
    padding: 0 var(--gap-lg);
}

.aliados-dark__title .text-highlight {
    color: var(--azul-medio);
}

.aliados-dark__marquee {
    width: 100%;
    overflow: hidden;
}

.aliados-dark__track {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: max-content;
    animation: marquee-slide 25s linear infinite;
}

.aliados-dark__track img {
    height: 45px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.7;
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.aliados-dark__track img:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

.aliados-dark__text {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.65);
    flex-shrink: 0;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: default;
}

.aliados-dark__text:hover {
    color: var(--oro);
}

@keyframes marquee-slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media screen and (max-width: 768px) {
    .aliados-dark__logos {
        gap: var(--gap-lg);
    }
    
    .aliados-dark__logos img {
        height: 28px;
    }
}

.aliados-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--azul-oscuro);
    margin-bottom: var(--gap-xl);
}

.marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.marquee__track {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: max-content;
    -webkit-animation: marquee-scroll 20s linear infinite;
    animation: marquee-scroll 20s linear infinite;
}

.marquee__track img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.marquee__track img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@-webkit-keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Pausar al hover */
.marquee:hover .marquee__track {
    animation-play-state: paused;
}

@media screen and (max-width: 768px) {
    .aliados-title {
        font-size: 1.4rem;
    }
    
    .marquee__track {
        gap: 2.5rem;
    }
    
    .marquee__track img {
        height: 35px;
    }
}

/* ==========================================
   SHOWCASE - Sección con diseño dividido
   ========================================== */

.showcase {
    position: relative;
    min-height: 550px;
    overflow: visible;
    display: flex;
    align-items: center;
    margin-bottom: 0;
    background: #1a1a2e;
    padding-top: 100px;
}

.showcase__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    z-index: 0;
}

.showcase__content {
    position: relative;
    z-index: 2;
    max-width: 100%;
    margin: 0;
    padding: var(--gap-2xl) var(--gap-xl);
    padding-right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--gap-xl);
    width: 100%;
}

.showcase__text {
    flex: 0 0 28%;
    padding-left: var(--gap-2xl);
}

.showcase__tag {
    color: var(--azul-medio);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: var(--gap-sm);
    display: block;
}

.showcase__title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: var(--blanco);
    line-height: 1.2;
    margin-bottom: var(--gap-md);
}

.showcase__title .text-highlight {
    color: var(--azul-medio);
}

.showcase__desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: var(--gap-md);
}

/* Slider de banners */
.showcase__slider {
    flex: 1;
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: visible;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.showcase__slides {
    position: relative;
    width: 100%;
    clip-path: polygon(5% 0, 100% 0, 100% 100%, 0 100%, 0 8%);
}

.showcase__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.showcase__slide:first-child {
    position: relative;
}

.showcase__slide.active {
    opacity: 1;
    z-index: 1;
}

.showcase__slide img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.92;
    border-radius: 12px;
}

.showcase__dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.showcase__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.showcase__dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.showcase__dot.active {
    background: var(--azul-medio);
    border-color: var(--blanco);
    transform: scale(1.2);
}

.showcase__card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--blanco);
    padding: var(--gap-md);
    text-align: center;
}

.showcase__card-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--azul-oscuro);
    color: var(--blanco);
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

.showcase__card-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--azul-oscuro);
}

@media screen and (max-width: 1024px) {
    .showcase__content {
        flex-direction: column;
        text-align: center;
        gap: var(--gap-xl);
    }
    
    .showcase__text {
        flex: none;
        width: 100%;
        padding-left: 0;
    }
    
    .showcase__slider {
        max-width: 100%;
        width: 100%;
    }
    
    .showcase__slides {
        clip-path: polygon(5% 0, 100% 0, 100% 100%, 0 100%, 0 8%);
    }
}

@media screen and (max-width: 600px) {
    .showcase {
        min-height: auto;
    }
    
    .showcase__content {
        padding: var(--gap-xl) var(--gap-md);
    }
    
    .showcase__title {
        font-size: 1.6rem;
    }
    
    .showcase__slides {
        clip-path: polygon(3% 0, 100% 0, 100% 100%, 0 100%, 0 5%);
    }
}

/* ==========================================
   SERVICES TABS - Diseño con Pestañas
   ========================================== */

.services-tabs {
    padding: var(--gap-3xl) 0;
    background: var(--blanco);
    position: relative;
    overflow: hidden;
}

/* Services Tabs versión oscura */
.services-tabs--dark {
    background: #004A98;
    padding-top: 60px;
    padding-bottom: 0;
    margin-top: 0;
}

.services-tabs--dark .section-tag {
    color: rgba(255, 255, 255, 0.7);
}

.services-tabs--dark .section-title--light {
    color: var(--blanco);
}

.services-tabs--dark .section-title--light .text-highlight {
    color: rgba(255, 255, 255, 0.8);
}

.services-tabs--dark .tabs-nav {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.services-tabs--dark .tab-btn {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

.services-tabs--dark .tab-btn img {
    filter: brightness(0) invert(1);
    opacity: 0.6;
}

.services-tabs--dark .tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--blanco);
}

.services-tabs--dark .tab-btn:hover img {
    opacity: 1;
}

.services-tabs--dark .tab-btn.active {
    background: var(--blanco);
    color: var(--azul-oscuro);
}

.services-tabs--dark .tab-btn.active img {
    filter: none;
    opacity: 1;
}

.services-tabs--dark .tab-btn.active::after {
    border-top-color: var(--blanco);
}

.services-tabs--dark .tab-panel__content {
    color: var(--blanco);
}

.services-tabs--dark .tab-panel__title {
    color: var(--blanco);
}

.services-tabs--dark .tab-panel__text {
    color: rgba(255, 255, 255, 0.8);
}

.services-tabs--dark .tab-panel__quote {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: var(--blanco);
}

.services-tabs--dark .tab-panel__quote-icon {
    background: var(--blanco);
}

.services-tabs--dark .tab-panel__quote-icon i {
    color: var(--azul-oscuro);
}

.services-tabs--dark .tab-panel__quote-text strong {
    color: var(--blanco);
}

.services-tabs--dark .tab-panel__quote-text span {
    color: rgba(255, 255, 255, 0.7);
}

.services-tabs--dark .tab-panel__list li {
    color: rgba(255, 255, 255, 0.8);
}

.services-tabs--dark .tab-panel__list li i {
    color: var(--blanco);
}

.services-tabs--dark .tab-panel__btn {
    background: var(--blanco);
    color: var(--azul-oscuro);
}

.services-tabs--dark .tab-panel__btn i {
    background: var(--azul-medio);
    color: var(--blanco);
}

.services-tabs--dark .tab-panel__btn:hover {
    background: var(--gris-claro);
}

.services-tabs--dark .tab-panel__image-accent {
    background: rgba(255, 255, 255, 0.1);
}

.services-tabs--dark .services-tabs__link {
    color: var(--blanco);
}

.services-tabs--dark .services-tabs__link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.services-tabs .container {
    position: relative;
    z-index: 2;
    padding-top: var(--gap-3xl);
    padding-bottom: var(--gap-3xl);
}

/* Wave separator positioning */
.wave-separator {
    position: absolute;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    left: 0;
}

.wave-separator--bottom {
    bottom: -1px;
    height: 100px;
}

.wave-separator svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

.section-header--light {
    text-align: center;
    margin-bottom: var(--gap-2xl);
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-sm);
    color: var(--azul-medio);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: var(--gap-md);
}

.section-tag i {
    font-size: 0.8rem;
}

.section-title--light {
    color: var(--gris-oscuro);
}

/* Tabs Navigation */
.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 0;
    background: var(--blanco);
    border-radius: 12px;
    padding: 0;
    margin-bottom: var(--gap-2xl);
    box-shadow: 0 5px 30px rgba(0, 74, 152, 0.08);
    border: 1px solid var(--gris-claro);
    overflow: hidden;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
    padding: 1.2rem 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gris-medio);
    transition: all 0.3s ease;
    position: relative;
    flex: 1;
    justify-content: center;
    border-right: 1px solid var(--gris-claro);
}

.tab-btn:last-child {
    border-right: none;
}

.tab-btn img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(0, 74, 152, 0.05);
    color: var(--azul-oscuro);
}

.tab-btn:hover img {
    opacity: 1;
}

.tab-btn.active {
    background: var(--azul-oscuro);
    color: var(--blanco);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid var(--azul-oscuro);
}

.tab-btn.active img {
    opacity: 1;
    filter: brightness(0) invert(1);
}

/* Tabs Content */
.tabs-content {
    position: relative;
}

.tab-panel {
    display: none;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--gap-3xl);
    align-items: center;
    animation: fadeIn 0.5s ease;
}

.tab-panel.active {
    display: grid;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-panel__content {
    padding-right: var(--gap-xl);
}

.tab-panel__title {
    font-family: var(--font-primary);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--gris-oscuro);
    line-height: 1.2;
    margin-bottom: var(--gap-lg);
}

.tab-panel__text {
    font-size: 1rem;
    color: var(--gris-medio);
    line-height: 1.7;
    margin-bottom: var(--gap-lg);
}

.tab-panel__quote {
    display: flex;
    align-items: center;
    gap: var(--gap-md);
    padding: var(--gap-md) var(--gap-lg);
    background: rgba(0, 74, 152, 0.05);
    border-left: 4px solid var(--azul-oscuro);
    border-radius: 0 12px 12px 0;
    margin-bottom: var(--gap-lg);
}

.tab-panel__quote-icon {
    width: 50px;
    height: 50px;
    background: var(--azul-oscuro);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tab-panel__quote-icon i {
    font-size: 1.3rem;
    color: var(--blanco);
}

.tab-panel__quote-text {
    display: flex;
    flex-direction: column;
}

.tab-panel__quote-text strong {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gris-oscuro);
}

.tab-panel__quote-text span {
    font-size: 0.9rem;
    color: var(--gris-medio);
}

.tab-panel__list {
    list-style: none;
    margin-bottom: var(--gap-xl);
}

.tab-panel__list li {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
    font-size: 1rem;
    color: var(--gris-medio);
    margin-bottom: var(--gap-sm);
}

.tab-panel__list li i {
    color: var(--azul-medio);
    font-size: 0.8rem;
}

.tab-panel__btn {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: var(--azul-oscuro);
    color: var(--blanco);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 74, 152, 0.25);
}

.tab-panel__btn span,
.tab-panel__btn {
    padding: 1rem 1.5rem;
}

.tab-panel__btn i {
    background: var(--azul-medio);
    padding: 1rem 1.2rem;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.tab-panel__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 74, 152, 0.35);
}

.tab-panel__btn:hover i {
    background: var(--azul-claro);
    transform: translateX(5px);
}

/* Tab Panel Image */
.tab-panel__image {
    position: relative;
}

.tab-panel__image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 74, 152, 0.2);
    z-index: 2;
}

.tab-panel__image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/10;
}

.tab-panel__image-accent {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 60%;
    height: 80%;
    background: var(--gris-claro);
    border-radius: 20px;
    z-index: 1;
}

/* Ver más link */
.services-tabs__more {
    text-align: center;
    margin-top: var(--gap-2xl);
}

.services-tabs__link {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-sm);
    color: var(--azul-oscuro);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.services-tabs__link:hover {
    color: var(--azul-medio);
    gap: var(--gap-md);
}

.services-tabs__link i {
    transition: transform 0.3s ease;
}

.services-tabs__link:hover i {
    transform: translateX(5px);
}

/* Responsive Tabs */
@media screen and (max-width: 1024px) {
    .tabs-nav {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1 1 calc(33.333% - 1px);
        border-bottom: 1px solid var(--gris-claro);
    }
    
    .tab-btn:nth-child(4),
    .tab-btn:nth-child(5) {
        flex: 1 1 50%;
    }
    
    .tab-panel {
        grid-template-columns: 1fr;
        gap: var(--gap-xl);
    }
    
    .tab-panel__content {
        padding-right: 0;
        order: 2;
    }
    
    .tab-panel__image {
        order: 1;
    }
}

@media screen and (max-width: 768px) {
    .tabs-nav {
        flex-direction: column;
    }
    
    .tab-btn {
        flex: 1;
        border-right: none;
        border-bottom: 1px solid var(--gris-claro);
        padding: 1rem;
    }
    
    .tab-btn:last-child {
        border-bottom: none;
    }
    
    .tab-btn.active::after {
        display: none;
    }
    
    .tab-panel__title {
        font-size: 1.6rem;
    }
    
    .tab-panel__image-accent {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .tab-btn span {
        display: none;
    }
    
    .tabs-nav {
        flex-direction: row;
        flex-wrap: nowrap;
    }
    
    .tab-btn {
        flex: 1;
        padding: 1rem;
        border-bottom: none;
        border-right: 1px solid var(--gris-claro);
    }
    
    .tab-btn img {
        width: 35px;
        height: 35px;
    }
}
