:root {
    --primary-color: #9F3231;
    --primary-light: #b84743;
    --primary-dark: #7a2825;
    --secondary-color: #f8f9fa;
    --dark-bg: #2c3e50;
    --text-dark: #2d3748;
    --text-light: #718096;
    --gradient-red: linear-gradient(135deg, #9F3231 0%, #b84743 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(159, 50, 49, 0.9) 0%, rgba(184, 71, 67, 0.8) 100%);
}

@font-face {
    font-family: Geist;
    src: url(../fonts/Geist-Regular.ttf);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Geist', sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
}

.navbar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.navbar__logo {
    width: 45px;
    height: 45px;
    background: var(--gradient-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.navbar__logo img {
    width: 100%;
}

.navbar__title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 24px;
    margin: 0;
}

.navbar__subtitle {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(159, 50, 49, 0.1);
}

.btn--primary {
    background: var(--gradient-red);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: normal;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(159, 50, 49, 0.3);
    color: white;
}

.btn--primary.btn--whatsapp {
    background: #10B981;
}

.btn--primary.btn--whatsapp:hover {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);    
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Offset for fixed navbar */
section {
    scroll-margin-top: 60px;
}

/* Active nav link styling */
.nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(159, 50, 49, 0.1);
}

/* Hero Section */
.hero {
    background: var(--gradient-red);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('https://images.pexels.com/photos/5732461/pexels-photo-5732461.jpeg') center / cover;
    border-radius: 0 0 0 100px;
    opacity: 0.9;
    display: none;
}

.hero__content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero__badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 8px 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero__badge i {
    color: #ffd700;
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero__title--highlight {
    color: #ffd700;
}

.hero__description {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 600px;
}

.hero__stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.hero__stat {
    text-align: left;
}

.hero__stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #ffd700;
    display: block;
}

.hero__stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.hero__banner {
    width: 540px;
    height: 360px;
    align-self: center;
}

.hero__banner-image {
    width: 100%;
    object-fit: cover;
    border-radius: 1rem;
    height: 100%;
}

/* Hero Carousel Styles */
.hero-carousel {
    position: relative;
}

.hero--slide0 {
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    transform: scale(1);
    transform-origin: center center;
    transition: transform 2s;
    animation: zoom 15s ease-in-out infinite alternate;
}

.hero--slide1 {
    background-image: linear-gradient(
                    to right in oklab, 
                    color-mix(in oklab, #000 80%, transparent) 0%, 
                    color-mix(in oklab, #000 40%, transparent) 50%, transparent 100%), 
                    url('https://mcusercontent.com/b039ef2ccf35a54c465614d72/images/24e8b9ba-f344-ea64-a816-d03eae59b027.jpg');
    
}
.hero--slide2 {
    background-image: linear-gradient(
                    to top in oklab, 
                    color-mix(in oklab, #000 80%, transparent) 0%, 
                    color-mix(in oklab, #000 40%, transparent) 50%, transparent 100%), 
                    url('https://mcusercontent.com/b039ef2ccf35a54c465614d72/images/d4ca98e7-ec1f-63a6-b6b2-cf266d2b4589.jpg');
}
.hero--slide3 {
    background-image: linear-gradient(
                    to top in oklab, 
                    color-mix(in oklab, #000 80%, transparent) 0%, 
                    color-mix(in oklab, #000 40%, transparent) 50%, transparent 100%), 
                    url('https://mcusercontent.com/b039ef2ccf35a54c465614d72/images/d73eee34-e674-2153-9b9d-31eb76f2efce.jpg');
}

.hero--slide-ilegal {
    background-image: linear-gradient(
                    to top in oklab, 
                    color-mix(in oklab, #000 80%, transparent) 0%, 
                    color-mix(in oklab, #000 40%, transparent) 50%, transparent 100%), 
                    url('https://mcusercontent.com/b039ef2ccf35a54c465614d72/images/36109ebf-b77b-e177-e70e-e3cad3b1a7a4.png');
}

.hero--slide2::before {
    background: url('https://images.unsplash.com/photo-1551818255-e6e10975bc17?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80') center/cover;
}

.hero--slide3::before {
    background: url('https://images.unsplash.com/photo-1559757175-0eb30cd8c063?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80') center/cover;
}

.hero-carousel .swiper-button-next, .hero-carousel .swiper-button-prev {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 300ms;
}

.hero-carousel .swiper-button-next:active, .hero-carousel .swiper-button-prev:active {
    scale: 90%;
}

.hero-carousel .swiper-button-next::after, .hero-carousel .swiper-button-prev::after {
    color: white;
    font-size: 1.5rem;
}

.hero-carousel .autoplay-progress {
    color: white;
}

@keyframes zoom {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.carousel-indicators {
    bottom: 30px;
    margin-bottom: 0;
}

#heroCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background-color: transparent;
    opacity: 0.7;
}

#heroCarousel .carousel-indicators button.active {
    background-color: #ffd700;
    border-color: #ffd700;
    opacity: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 24px;
    height: 24px;
}

#heroCarousel .swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide-d-none {
    text-align: center;
    font-size: 18px;
    background: #444;
    display: flex;
    justify-content: center;
    align-items: center;
}

#heroCarousel .swiper-slide img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#heroCarousel .swiper-pagination.autoplay-progress {
    width: 100%;
}

#heroCarousel .autoplay-progress {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 10;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

#heroCarousel .autoplay-progress svg {
    --progress: 0;
    position: absolute;
    left: 0;
    top: 0px;
    z-index: 10;
    width: 100%;
    height: 100%;
    stroke-width: 4px;
    stroke: var(--swiper-theme-color);
    fill: none;
    stroke-dashoffset: calc(125.6px * (1 - var(--progress)));
    stroke-dasharray: 125.6;
    transform: rotate(-90deg);
}

#heroCarousel .swiper-pagination-bullet {
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    color: #000;
    opacity: 1;
    background: rgba(0, 0, 0, 0.2);
}

#heroCarousel .swiper-pagination-bullet-active {
    color: #fff;
    background: #007aff;
}

/* Quick Access Section */
.quick-access {
    padding: 80px 0;
    background: var(--secondary-color);
}

.section__header {
    text-align: center;
    margin-bottom: 4rem;
}

.section__badge {
    background: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    width: 160px;
    margin-inline: auto;
}

.section__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section__title > span {
    color: var(--primary-color);
}

.section__subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.quick-access__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.quick-access__card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    /* border: 1px solid rgba(159, 50, 49, 0.1); */
    color: #222;
}

.quick-access__card:hover {
    transform: translateY(-30px)! important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.quick-access__card--green {
    background: linear-gradient(136deg, #f3f4f6 0, #d0fae5 100%);
}

.quick-access__card--blue {
    background: linear-gradient(136deg,#fef2f2 0,#dbeafe 100%);
}

.quick-access__card--red {
    background: linear-gradient(136deg,#fef2f2 0,#ffe2e2 100%);
}

.quick-access__card--purple {
    background: linear-gradient(136deg,#f9fafb 0,#f3e8ff 100%);
}

.quick-access__icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.quick-access__card--green .quick-access__icon {
    background: linear-gradient(-135deg,#00bc7d 0,#009966 100%);
}

.quick-access__card--blue .quick-access__icon {
    background: linear-gradient(-135deg,#2b7fff 0,#155dfc 100%);
}

.quick-access__card--red .quick-access__icon {
    background: linear-gradient(-135deg,#fb2c36 0,#e7000b 100%);
}

.quick-access__card--purple .quick-access__icon {
    background: linear-gradient(-135deg,#ad46ff 0,#9810fa 100%);
}

.quick-access__card:not([class*="--"]) .quick-access__icon {
    background: rgba(159, 50, 49, 0.1);
    color: var(--primary-color);
}

.quick-access__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.quick-access__description {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* About Section */
.about {
    padding: 80px 0;
}

.about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about__text {
    max-width: 600px;
}

.about__text .section__badge {
    margin-inline: 0 auto;
    width: fit-content;
    background: linear-gradient(to right, rgba(159, 50, 49, 0.10) 0%, rgba(122, 38, 37, 0.10) 100%);
    border: 1px solid rgba(159, 50, 49, 0.20);
    color: var(--primary-color);
}

.about__description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.about__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.about__features > div:first-child {
    background: linear-gradient(45deg, rgba(159, 50, 49, 0.05) 0%, rgba(159, 50, 49, 0.10) 50%, rgba(159, 50, 49, 0.05) 100%);
    border: 1px solid rgb(159 50 49 / 10%);
}
.about__features > div:last-child {
    background: linear-gradient(45deg, #FEF2F2 0%, #DBEAFE 50%, #FEF2F2 100%);
    border: 1px solid #BEDBFF;
}

.about__feature {
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 300ms;
    /* border-left: 4px solid var(--primary-color); */
}

.about__feature > div:first-child {
    color: var(--primary-color);
}

.about__features > div:last-child > div:first-child {
    color: #2563eb;
}

.about__feature:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.about__feature:hover .about__feature-icon {
    font-size: 2.1rem;
    transition: all 300ms;
}

.about__feature-icon {
    width: 50px;
    height: 50px;
    /* background: rgba(159, 50, 49, 0.1); */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* color: var(--primary-color); */
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about__feature-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.about__feature-description {
    font-size: 0.9rem;
    color: var(--text-light);
}

.about__image {
    position: relative;
}

.about__image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.about__image-item {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1;
}

.about__image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* .about__image-item:first-child {
    grid-row: 1 / 3;
    aspect-ratio: 0.8;
} */

.about__buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn--secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inherit;
}

.btn--secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Specialties Section */
.specialties {
    padding: 80px 0;
    background: var(--dark-bg);
    color: white;
}

.specialties .section__badge {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.20);
}

.specialties .section__title {
    color: white;
}

.specialties__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.specialty__card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.specialty__card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

.specialty__icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.specialty__card--pink .specialty__icon {
    background: linear-gradient(135deg,#f6339a 0,#e60076 100%);
}

.specialty__card--orange .specialty__icon {
    background: linear-gradient(135deg,#fe9a00 0,#e17100 100%);
}

.specialty__card--green .specialty__icon {
    background: linear-gradient(135deg,#00c950 0,#00a63e 100%);
}

.specialty__card--blue .specialty__icon {
    background: linear-gradient(135deg,#2b7fff 0,#155dfc 100%);
}

.specialty__card--purple .specialty__icon {
    background: linear-gradient(135deg,#ad46ff 0,#9810fa 100%);
}

.specialty__card--red .specialty__icon {
    background: linear-gradient(135deg,#fb2c36 0,#e7000b 100%);
}

.specialty__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.specialty__description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--secondary-color);
}

.services .section__badge {
    background: linear-gradient(90deg,#f3e8ff 0,#e9d4ff 100%);
    color: #6E11B0;
}

.services__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.services__card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
}

.services__card--primary::before {
    content: "";
    width: 128px;
    height: 128px;
    position: absolute;
    background: rgb(255 255 255 / 10%);
    bottom: -60px;
    border-radius: 50%;
    left: -60px;
}

.services__card--primary::after {
    content: "";
    width: 128px;
    height: 128px;
    position: absolute;
    background: rgb(255 255 255 / 10%);
    top: -60px;
    border-radius: 50%;
    right: -60px;
}
.services__card--secondary::before {
    content: "";
    width: 128px;
    height: 128px;
    position: absolute;
    background: #DBEAFE;
    bottom: -60px;
    border-radius: 50%;
    left: -60px;
}

.services__card--secondary::after {
    content: "";
    width: 128px;
    height: 128px;
    position: absolute;
    background: #DBEAFE;
    top: -60px;
    border-radius: 50%;
    right: -60px;
}

.services__card--primary {
    background: var(--gradient-red);
    color: white;
    overflow: hidden;
}

.services__card--secondary {
    /* background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); */
    color: #222;
    overflow: hidden;
}

.services__card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.services__card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 10px -6px rgba(0,0,0,.1),0 20px 25px -5px rgba(0,0,0,.1);
}

.services__card--secondary .services__card-icon {
    background: linear-gradient(to right, #2B7FFF 0%, #155DFC 100%);
    color: white;
}

.services__card-title {
    font-size: 1.5rem;
}

.services__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.services__list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.1); */
    margin-bottom: 1rem;
    border-radius: 20px;
    padding-left: 1rem;
    background: rgb(255 255 255 / 10%);
    position: relative;
}

.services__card .services__list-item a {
    display: inherit;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
}

.services__card--primary .services__list-item a {
    color: white;
}

.services__card--secondary .services__list-item a {
    color: initial;
}

.services__card .services__list-item a:hover {
    padding-left: 8px;
}

.services__card--primary .services__list-item::before {
    content: '';
    background: #ffffff4a;
}

.services__list-item:last-child {
    border-bottom: none;
}

.services__list-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    /* background: rgba(255, 255, 255, 0.1); */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.services__card--primary .services__list-icon {
    color: #FFDF20;
}

.services__card--secondary .services__list-item {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #F3F4F6;
    position: relative;    
}

.services__card--primary .services__list-item:nth-child(3)::after {
    content: "";
    width: 96px;
    height: 96px;
    position: absolute;
    background: rgb(255 223 32 / 5%);
    bottom: -60px;
    border-radius: 50%;
    right: 20px;
}
.services__card--secondary .services__list-item:nth-child(3)::after {
    content: "";
    width: 96px;
    height: 96px;
    position: absolute;
    background: rgb(243 232 255 / 70%);
    bottom: -48px;
    border-radius: 50%;
    right: 20px;
    z-index: 1;
    clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
}

.services__card:not([class*="--"]) .services__list-icon {
    background: rgba(159, 50, 49, 0.1);
    color: var(--primary-color);
}

.services__card:not([class*="--"]) .services__card-icon {
    background: rgba(159, 50, 49, 0.1);
    color: var(--primary-color);
}

.services__list-icon--blue {
    color: #155DFC;
}

.services__list-icon--red {
    color: #E7000B;
}

.services__list-icon--purple {
    color: #9810FA;
}

.services__more-btn {
    margin-top: 2rem;
}

.services__more-btn > a {
    background: white;
    color: var(--primary-color);
}

.services__more-btn > a:hover {
    background: var(--primary-color);
}

.services__card--secondary .services__more-btn > a {
    background: var(--primary-color);
    color: white;
}

.services__card--secondary .services__more-btn > a:hover {
    color: white;
}

.services-flip__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Block: flip-card */
.flip-card {
    position: relative;
    height: auto;
    perspective: 1000px;
}

.flip-card__inner {
    position: relative;
    width: 496px;
    height: 600px;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card--flipped .flip-card__inner {
    transform: rotateY(180deg);
}

.flip-card--primary {
    margin: auto;
    width: 100%;
}

.flip-card--secondary {
    margin: auto;
    width: 100%;
}

.flip-card__side {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.flip-card__side--front {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    display: flex;
    flex-direction: column;
}

.flip-card--primary .flip-card__side--front {
    background-image: linear-gradient(
                    to top in oklab, 
                    color-mix(in oklab, #000 80%, transparent) 0%, 
                    color-mix(in oklab, #000 40%, transparent) 50%, transparent 100%), 
                    url('https://mcusercontent.com/b039ef2ccf35a54c465614d72/images/6467a130-bc40-501c-291c-20c58fe28551.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    justify-content: flex-end;
}

.flip-card--secondary .flip-card__side--front {
    background-image: linear-gradient(
                    to top in oklab, 
                    color-mix(in oklab, #000 80%, transparent) 0%, 
                    color-mix(in oklab, #000 40%, transparent) 50%, transparent 100%), 
                    url('https://mcusercontent.com/b039ef2ccf35a54c465614d72/images/6ffa6d21-d6fb-34ae-6ec9-6140282d9c12.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    justify-content: flex-end;
}

.flip-card__side--back {
    background: transparent;
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
}

.flip-card__side--back > div:first-child {
    background-image: linear-gradient(
        to right, 
        oklch(0.577 0.245 27.325) 0%, 
        oklch(0.505 0.213 27.518) 100%);
    padding: 1.5rem;
    border-radius: 1rem 1rem 0 0;
}
.flip-card__side--back > div:nth-child(2) {
    padding: 1.5rem;
    overflow-y: auto;
}

.flip-card--secondary .flip-card__side--back {
    /* background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%); */
    background: transparent;
}

.flip-card--secondary .flip-card__side--back > div:first-child {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
}

.flip-card__close-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.flip-card__close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.flip-card__close-btn-icon {
    font-size: 1.3rem;
    color: white;
}

.flip-card__header {
    margin: 0 2rem 1rem;
}

.flip-card__icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    border-radius: 1rem;
    background: color-mix(in oklab, white 20%, transparent);
    color: white;
    padding: .5rem 1rem;
    backdrop-filter: blur(12px);
    margin-bottom: 1rem;
}

.flip-card--secondary .flip-card__icon {
    /* background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%); */
}

.flip-card__title {
    font-size: 1.5rem;
    margin: 0;
    color: white;
}

.flip-card__description {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    display: none;
}

.flip-card__services {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    flex: 1;
}

.flip-card__service-item {
    margin-bottom: 1rem;
    border-radius: 1rem;
    background: white;
    box-shadow: 0 0 #0000, 0 0 #0000, 0 0 #0000, 0 0 #0000, 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.flip-card__service-item:last-child {
    margin-bottom: 0;
}

.flip-card__service-link {
    display: flex;
    border: 1px solid #f6f3f4;
    align-items: center;
    padding: 1.2rem 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.flip-card__service-link:hover {
    background: #e9ecef;
    /* transform: translateX(5px); */    
    border: 1px solid #ffc9c9;
}

.flip-card--secondary .flip-card__service-link:hover {
    background: #e9ecef;  
    border: 1px solid #bedbff;
}

.flip-card__service-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e7000b;
    border-radius: 8px;
    margin-right: 1rem;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.flip-card--secondary .flip-card__side--back .flip-card__service-icon {
    background: #eff6ff;
    color: #155dfc;
}

.flip-card__service-icon--blue {
    background: #0d6efd;
}

.flip-card__service-icon--red {
    background: #dc3545;
}

.flip-card__service-icon--purple {
    background: #6f42c1;
}

.flip-card__service-text {
    flex: 1;
    display: flex;    
    flex-direction: column;
}

.flip-card__service-text > span:first-child {
    font-weight: 600;
}

.flip-card__service-item:hover .flip-card__service-icon {
    background: #ffe2e2;
}

.flip-card--secondary .flip-card__service-item:hover .flip-card__service-icon {
    background: #dbeafe;
}

.flip-card__service-item:hover .flip-card__service-text > span:first-child {
    color: #e7000b;
}

.flip-card--secondary .flip-card__service-item:hover .flip-card__service-text > span:first-child {
    color: #155dfc;
}

.flip-card__service-text > span:last-child {
    font-size: .875rem;
    color: #4a5565;
}

.flip-card__actions {
    margin: 0 2rem 2rem;
}

.flip-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    color: white;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: none;
    justify-content: center;
    width: auto;
}

.flip-card--secondary .flip-card__btn {
    background: white;
}

.flip-card__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.flip-card__btn--outline {
    background: white;
    border: none;
    color: black;
}

.flip-card--secondary .flip-card__btn--outline {
    border-color: none;
    color: black;
}

.flip-card__btn--outline:hover {
    background: #dc3545;
    color: white;
}

.flip-card--secondary .flip-card__btn--outline:hover {
    background: #0d6efd;
    color: white;
}

.flip-card__side--back .flip-card__btn--inverse {
    background: white;
    color: #dc3545;
}

.flip-card--secondary .flip-card__side--back .flip-card__btn--inverse {
    color: #0d6efd;
}

.flip-card__side--back .flip-card__title {
    color: white;
    font-size: 1.3rem;
}

.flip-card__side--back .flip-card__services {
    margin-bottom: 0;
}

.flip-card__side--back .flip-card__service-link {
    background: rgba(255, 255, 255, 0.15);
    color: black;
    backdrop-filter: blur(10px);
}

.flip-card__side--back .flip-card__service-link:hover {
    background: rgba(255, 255, 255, 0.25);
}

.flip-card__side--back .flip-card__service-icon {
    background: #fef2f2;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.fade-in:nth-child(1) {
    animation-delay: 0.1s;
}

.fade-in:nth-child(2) {
    animation-delay: 0.2s;
}

/* Patrocinadores */
.sponsors-section {
    padding: 4rem 0;
    /* background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%); */
    background: white;
    position: relative;
    overflow: hidden;
}

/* Header de sección (mismo estilo que noticias) */
.section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.sponsors-section .section__badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50px;
    /* font-weight: 600; */
    /* font-size: 0.9rem; */
    /* text-transform: uppercase; */
    /* letter-spacing: 1px; */
    margin-bottom: 1rem;
}

.section__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1rem;
}

.section__subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Carrusel de publicidad */
.sponsors-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.sponsors-carousel .carousel-item {
    position: relative;
    transition: transform 0.8s ease-in-out;
}

.sponsors-carousel img {
    width: 100%;
    height: auto;
    display: block;
}

/* Overlay con información */
.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    padding: 3rem 2rem 2rem;
    color: white;
}

.carousel-overlay__company {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 215, 0, 0.9);
    color: #212529;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.carousel-overlay__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    display: none;
}

.carousel-overlay__description {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 700px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    display: none;
}

.carousel-overlay__cta {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: white;
    color: var(--cmvl-primary);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255,255,255,0.3);
}

.carousel-overlay__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,255,255,0.4);
    color: var(--cmvl-primary-dark);
}

.carousel-overlay__cta i {
    font-size: 1.2rem;
}

/* Controles del carrusel */
.sponsors-carousel .carousel-control-prev,
.sponsors-carousel .carousel-control-next {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.sponsors-carousel .carousel-control-prev:hover,
.sponsors-carousel .carousel-control-next:hover {
    opacity: 1;
    background: var(--cmvl-primary);
}

.sponsors-carousel .carousel-control-prev {
    left: 20px;
}

.sponsors-carousel .carousel-control-next {
    right: 20px;
}

.sponsors-carousel .carousel-control-prev-icon,
.sponsors-carousel .carousel-control-next-icon {
    filter: invert(1);
    width: 24px;
    height: 24px;
}

.sponsors-carousel .carousel-control-prev:hover .carousel-control-prev-icon,
.sponsors-carousel .carousel-control-next:hover .carousel-control-next-icon {
    filter: invert(0);
}

/* Indicadores */
.sponsors-carousel .carousel-indicators {
    bottom: 20px;
    z-index: 10;
}

.sponsors-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    opacity: 0.6;
    border: none;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.sponsors-carousel .carousel-indicators button.active {
    opacity: 1;
    width: 40px;
    border-radius: 6px;
    background: #ffd700;
}

/* Info adicional debajo del carrusel */
.sponsors-info {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.sponsors-info__text {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.sponsors-info__text a {
    color: inherit;
    text-decoration: none;
}

.sponsors-info__text a:hover {
    color: initial;
    text-decoration: underline;
}

.sponsors-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.sponsors-logos__item {
    text-align: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.sponsors-logos__item:hover {
    opacity: 1;
}

.sponsors-logos__name {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--cmvl-primary);
    margin: 0;
}

.sponsors-logos__tagline {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0;
}

/* News Section */
.news {
    padding: 80px 0;
    background: var(--dark-bg);
    color: white;
}

.news .section__title {
    color: white;
}

.news .section__badge {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.20);
}

.news__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.news__card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news__card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

.news__image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.news__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news__content {
    padding: 2rem;
}

.news__badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    /* font-weight: 600; */
    margin-bottom: 1rem;
    position: absolute;
    top: 2rem;
}

.news__badge--comunication {
    background: #10b981;
}

.news__badge--event {
    background: #3b82f6;
}

.news__badge--alert {
    background: #ef4444;
}

.news__title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news__description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.news__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.news__more {
    text-align: center;
    margin-top: 3rem;
}

.news__more .btn--primary {
    width: fit-content;
}

/* Events Section */
.events {
    padding: 80px 0;
    background: white;
}

.events .section__badge {
    background: linear-gradient(-90deg,#e9d4ff 0,#ffd6a7 100%);
    color: var(--primary-color);
}

.events__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.event__card {
    border-radius: 25px;
    overflow: hidden;
    padding: 3rem;
    position: relative;
}

.event__card--green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border: 2px solid rgba(16, 185, 129, 0.2);
}

.event__card--blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
    border: 2px solid rgba(59, 130, 246, 0.2);
}

.event__icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.event__card--green .event__icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.event__card--blue .event__icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.event__title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.event__meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.event__date {
    background: var(--primary-color);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.event__card--green .event__date {
    background: #10b981;
}

.event__card--blue .event__date {
    background: #3b82f6;
}

.event__type {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.event__description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.event__cta {
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.event__card--green .event__cta {
    background: #10b981;
}

.event__card--blue .event__cta {
    background: #3b82f6;
}

.event__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: white;
}

/* Beneficios */
.laboratorios-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.laboratorios-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cmvl-primary) 0%, var(--cmvl-primary-dark) 100%);
}

.laboratorios-section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.laboratorios-section__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--cmvl-primary);
    margin-bottom: 1rem;
}

.laboratorios-section__subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Carrusel de banners */
.laboratorios-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-item {
    transition: transform 0.6s ease-in-out;
}

/* Banner de laboratorio */
.lab-banner {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    min-height: 400px;
    position: relative;
}

.lab-banner__image {
    flex: 1;
    background-size: cover;
    background-position: center;
    min-height: 400px;
    position: relative;
    border-radius: 0 1rem 1rem 0;
}

.lab-banner__image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.3) 0%, transparent 100%);
}

.lab-banner__content {
    flex: 1;
    padding: 3rem;
    position: relative;
    z-index: 2;
}

.lab-banner__logo {
    max-width: 180px;
    margin-bottom: 1.5rem;
}

.lab-banner__name {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 1rem;
}

.lab-banner__description {
    font-size: 1.05rem;
    color: #495057;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.lab-banner__benefits {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.lab-banner__benefits-title {
    font-weight: 700;
    color: var(--cmvl-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.lab-banner__benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lab-banner__benefits-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    font-size: 0.95rem;
    color: #495057;
}

.lab-banner__benefits-list li i {
    color: #28a745;
    font-size: 1.1rem;
}

/* Alert de verificación */
.lab-banner__alert {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 4px solid #ffc107;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: start;
    gap: 0.75rem;
}

.lab-banner__alert i {
    color: #ffc107;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.lab-banner__alert-text {
    font-size: 0.9rem;
    color: #856404;
    line-height: 1.5;
    margin: 0;
}

.lab-banner__alert-text strong {
    color: #533f03;
}

/* Botón de acción */
.lab-banner__button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: .65rem 2rem;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(159, 50, 49, 0.3);
    cursor: pointer;
}

.lab-banner__button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(159, 50, 49, 0.4);
    color: white;
}

.lab-banner__button i {
    font-size: 1.2rem;
}

.lab-banner__button--disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.lab-banner__button--disabled:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Badge de descuento */
.lab-banner__discount {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    z-index: 3;
}

/* Controles del carrusel */
.laboratorios-section .carousel-control-prev,
.laboratorios-section .carousel-control-next {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 1;
    z-index: 100;
}

.laboratorios-section .carousel-control-prev {
    left: -30px;
}

.laboratorios-section .carousel-control-next {
    right: -30px;
}

.laboratorios-section .carousel-control-prev-icon,
.laboratorios-section .carousel-control-next-icon {
    filter: invert(1);
    width: 24px;
    height: 24px;
}

.laboratorios-section .carousel-control-prev:hover,
.laboratorios-section .carousel-control-next:hover {
    background: var(--cmvl-primary);
    opacity: 1;
}

.laboratorios-section .carousel-control-prev:hover .carousel-control-prev-icon,
.laboratorios-section .carousel-control-next:hover .carousel-control-next-icon {
    filter: invert(0);
}

/* Indicadores */
.laboratorios-section .carousel-indicators {
    margin-bottom: -3rem;
}

.laboratorios-section .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--cmvl-primary);
    opacity: 0.5;
    border: none;
}

.laboratorios-section .carousel-indicators button.active {
    opacity: 1;
    width: 32px;
    border-radius: 6px;
}

/* Info adicional */
.laboratorios-section__footer {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid #dee2e6;
}

.laboratorios-section__footer-text {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}

.laboratorios-section__footer-link {
    color: var(--cmvl-primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.laboratorios-section__footer-link:hover {
    gap: 0.75rem;
    color: var(--cmvl-primary-dark);
}


/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--secondary-color);
}

.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact__info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact__card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.contact__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.contact__icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
    color: white;
}

.contact__icon--green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.contact__icon--blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.contact__icon--red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.contact__icon--primary {
    background: var(--gradient-red);
}

.contact__title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact__details p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.contact__form-container {
    background: white;
    border-radius: 25px;
    padding: 3rem;
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.1);
}

.contact__form-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact__form-subtitle {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.form__group {
    margin-bottom: 1.5rem;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form__field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form__field input,
.form__field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form__field input:focus,
.form__field textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(159, 50, 49, 0.1);
}

.contact__submit {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}

.whatsapp-home {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    width: 55px;
    height: 55px;
    bottom: 1%;
    right: 2%;
    z-index: 50;
    font-size: 2rem;
    background: #25D366;
    padding: 0px 11px;
    color: #fff;
    border: 0px solid #128C7E;
    border-radius: 50%;
}

.whatsapp-home i {
    font-size: 1.8rem;
}
.whatsapp-home:hover {
    color: inherit;
}
.whatsapp-home .onda,
.whatsapp-home .onda:before,
.whatsapp-home .onda:after {
  -webkit-animation:onda 3s infinite;
  animation:onda 3s infinite;
  border-radius:50%;
  box-shadow:0 0 0 0 rgba(27,215,65,.3);
  top:0;
  height:55px;
  position:absolute;
  width:55px
}
.whatsapp-home .onda:before {
  -webkit-animation-delay:.9s;
  animation-delay:.9s;
  content:"";
  position:absolute;
  top:0
}
.whatsapp-home .onda:after {
  -webkit-animation-delay:.6s;
  animation-delay:.6s;
  content:"";
  position:absolute;
  top:0
}


@keyframes onda{70%{box-shadow:0 0 0 50px rgba(27,215,65,0)}100%{box-shadow:0 0 0 0 rgba(27,215,65,0)}}


/* Footer */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 60px 0 20px;
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.footer__logo {
    width: 50px;
    height: 50px;
    background: var(--gradient-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
}

.footer__brand-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.footer__brand-text p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer__description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer__section h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer__link {
    margin-bottom: 0.75rem;
}

.footer__link a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer__link a:hover {
    color: white;
    padding-left: 8px;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.footer__social {
    display: flex;
    /* gap: 1rem; */
    /* margin-top: 0.5rem; */
    margin-left: 1rem;
}

.footer__social-link {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    /* border: 2px solid transparent; */                                
}

.footer__social-link:hover {
    transform: translateY(-3px);
    border-color: white;
    color: white;
}

.footer__social-link.facebook {
    color: #1877f2;
    border-color: #1877f2;
}

.footer__social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    border-color: #e1306c;
    color: transparent;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-out {
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.8s ease;
}

.fade-out.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero__stats {
        gap: 2rem;
    }
    
    .about__content {
        gap: 3rem;
    }

    .flip-card__inner {
        width: 450px;
    }
}

@media (max-width: 992px) {
    .hero::before {
        width: 50%;
    }
    
    .about__content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about__image {
        order: -1;
    }
    
    .services__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .carousel-overlay {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .carousel-overlay__title {
        font-size: 1.5rem;
    }
    
    .carousel-overlay__description {
        font-size: 0.95rem;
    }

    .flip-card__inner {
        width: 336px;
    }
    
    .sponsors-carousel .carousel-control-prev,
    .sponsors-carousel .carousel-control-next {
        width: 50px;
        height: 50px;
    }
    
    .sponsors-carousel .carousel-control-prev {
        left: 10px;
    }
    
    .sponsors-carousel .carousel-control-next {
        right: 10px;
    }

    .lab-banner {
        flex-direction: column;
        min-height: auto;
    }
    
    .lab-banner__image {
        min-height: 250px;
        width: 100%;
    }
    
    .lab-banner__content {
        padding: 2rem;
    }
    
    .lab-banner__discount {
        top: 1rem;
        right: 1rem;
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
    
    .footer__content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .events__grid {
        grid-template-columns: 1fr;
    }

    .contact__content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact__info {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .hero {
        min-height: 90vh;
        text-align: center;
    }
    
    .hero::before {
        display: none;
    }
    
    .hero__stats {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .quick-access__grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .about__features {
        grid-template-columns: 1fr;
    }
    
    .about__buttons {
        flex-direction: row;
    }

    .services-flip__content {
        grid-template-columns: 1fr;
    }

    .flip-card__inner {
        width: 100%;
        height: 100%;
    }
    
    .flip-card {
        height: 550px;
    }
    
    .flip-card__title {
        font-size: 1.25rem;
    }
    
    .flip-card__icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .specialties__grid {
        grid-template-columns: 1fr;
    }
    
    .news__grid {
        grid-template-columns: 1fr;
    }

    .contact__info {
        grid-template-columns: 1fr;
    }
    
    .form__row {
        grid-template-columns: 1fr;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
    }
    
    .navbar__title {
        font-size: 20px;
    }
    
    .navbar__subtitle {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .hero__stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .section__title {
        font-size: 2rem;
    }
    
    .btn--primary, .btn--secondary {
        width: 100%;
        justify-content: center;
    }

    .section__title {
            font-size: 2rem;
        }
        
    .carousel-overlay {
        padding: 1.5rem 1rem;
    }
    
    .carousel-overlay__title {
        font-size: 1.25rem;
    }
    
    .carousel-overlay__description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .carousel-overlay__cta {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .sponsors-logos {
        gap: 2rem;
    }

    .laboratorios-section__title {
        font-size: 2rem;
    }
    
    .lab-banner__name {
        font-size: 1.5rem;
    }
    
    .lab-banner__content {
        padding: 1.5rem;
    }
    
    .lab-banner__button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    /* .flip-card__side {
        padding: 1.5rem;
    } */
    
    .flip-card__service-link {
        padding: 0.75rem;
    }
    
    .flip-card__service-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}