/*--------------------------------------------------------------------- 
   Farmagenius - Diseño Moderno
   Estilos completamente renovados
---------------------------------------------------------------------*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #2879BB;
    --primary-dark: #1e5a8a;
    --secondary-color: #081156;
    --accent-color: #00D4FF;
    --text-dark: #252525;
    --text-light: #666666;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 60px rgba(40, 121, 187, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 0;
    width: 100%;
    max-width: 100%;
}

/* Asegurar que todas las imágenes sean responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mejorar el comportamiento de los contenedores */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Asegurar que las filas sean responsive */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.row > * {
    padding-left: 15px;
    padding-right: 15px;
}

/*--------------------------------------------------------------------- Navigation Moderna ---------------------------------------------------------------------*/

.navbar-modern {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: auto;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.navbar-modern .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
}

.navbar-modern.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
    padding: 0.4rem 0;
}

.navbar-brand-modern {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    line-height: 1;
}

.navbar-brand-modern .logo-img {
    height: 45px;
    width: auto;
    max-width: 220px;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.navbar-brand-modern:hover .logo-img {
    transform: scale(1.03);
}

.navbar-nav-modern {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item-modern {
    margin: 0;
    padding: 0;
}

.nav-link-modern {
    color: var(--text-dark) !important;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
    padding: 0.75rem 1.2rem;
    display: block;
    white-space: nowrap;
}

.nav-link-modern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link-modern:hover::after,
.nav-link-modern.active::after {
    width: 100%;
}

.nav-link-modern:hover,
.nav-link-modern.active {
    color: var(--primary-color) !important;
}

.social-nav {
    font-size: 18px;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    background: var(--primary-color);
    color: white !important;
    margin-left: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.social-nav:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 121, 187, 0.3);
}

.social-nav::after {
    display: none;
}

.navbar-toggler-modern {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 1rem;
    outline: none;
}

.navbar-toggler-modern span {
    width: 25px;
    height: 2.5px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 2px;
    display: block;
}

.navbar-toggler-modern:hover span {
    background: var(--primary-dark);
}

/* Ajustes para el collapse */
.navbar-collapse {
    flex-grow: 0;
}

@media (max-width: 991px) {
    .navbar-toggler-modern {
        display: flex;
    }
    
    .navbar-nav-modern {
        flex-direction: column;
        width: 100%;
        padding: 1rem 0;
        gap: 0;
    }
    
    .nav-link-modern {
        padding: 0.75rem 1rem;
        width: 100%;
        text-align: left;
    }
    
    .social-nav {
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/*--------------------------------------------------------------------- Hero Carousel Section Moderna ---------------------------------------------------------------------*/

.hero-carousel-modern {
    position: relative;
    margin-top: 60px;
    overflow: hidden;
}

.hero-carousel-modern .carousel {
    position: relative;
}

.hero-carousel-modern .carousel-inner {
    position: relative;
    width: 100%;
    overflow: visible;
    min-height: calc(100vh - 60px);
}

@media (max-width: 768px) {
    .hero-carousel-modern .carousel-inner {
        min-height: auto;
    }
}

.hero-carousel-modern .carousel-item {
    position: relative;
    display: block;
    float: left;
    width: 100%;
    margin-right: -100%;
    backface-visibility: hidden;
    transition: opacity 0.8s ease-in-out;
    opacity: 0;
}

.hero-carousel-modern .carousel-item.active {
    opacity: 1;
    z-index: 2;
}

.hero-carousel-modern .carousel-fade .carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.hero-carousel-modern .carousel-fade .carousel-item.active,
.hero-carousel-modern .carousel-fade .carousel-item-next.carousel-item-start,
.hero-carousel-modern .carousel-fade .carousel-item-prev.carousel-item-end {
    position: relative;
    opacity: 1 !important;
    z-index: 2 !important;
}

.hero-carousel-modern .carousel-fade .active.carousel-item-start,
.hero-carousel-modern .carousel-fade .active.carousel-item-end {
    z-index: 1;
    opacity: 0;
}

.hero-slide-content {
    position: relative;
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    padding: 40px 0;
    width: 100%;
}

.hero-slide-content .container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/banner-bg.png') center/cover;
    opacity: 0.05;
    z-index: 0;
}

/* Carousel Controls Modernos */
.carousel-control-prev-modern,
.carousel-control-next-modern {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 20px;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.carousel-control-prev-modern {
    left: 30px;
}

.carousel-control-next-modern {
    right: 30px;
}

.carousel-control-prev-modern:hover,
.carousel-control-next-modern:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 30px rgba(40, 121, 187, 0.3);
    border-color: var(--primary-color);
}

.carousel-control-prev-modern:focus,
.carousel-control-next-modern:focus {
    outline: none;
}

/* Carousel Indicators Modernos */
.carousel-indicators-modern {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    list-style: none;
    padding: 0;
    margin: 0;
}

.carousel-indicators-modern li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
    opacity: 0.7;
}

.carousel-indicators-modern li.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 6px;
    opacity: 1;
    border-color: var(--primary-color);
}

.carousel-indicators-modern li:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.hero-image {
    position: relative;
    z-index: 2;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.hero-row {
    min-height: calc(100vh - 60px);
}

@media (max-width: 768px) {
    .hero-row {
        min-height: auto;
    }
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 35px;
    line-height: 1.8;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    z-index: 2;
    animation: fadeInRight 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hero-img-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-main-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    max-height: 550px;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 20px 60px rgba(40, 121, 187, 0.2));
    animation: float 6s ease-in-out infinite;
    display: block;
    margin: 0 auto;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-dark);
    animation: float 4s ease-in-out infinite;
}

.floating-card img {
    width: 30px;
    height: 30px;
}

.card-1 {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 20%;
    left: 5%;
    animation-delay: 2s;
}


@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/*--------------------------------------------------------------------- Buttons Modernos ---------------------------------------------------------------------*/

.btn-modern {
    display: inline-block;
    padding: 14px 35px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary-modern {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 5px 20px rgba(40, 121, 187, 0.3);
}

.btn-primary-modern:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(40, 121, 187, 0.4);
    color: white;
}

.btn-secondary-modern {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary-modern:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
}

.btn-arrow {
    width: 20px;
    height: auto;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.btn-modern:hover .btn-arrow {
    transform: translateX(5px);
}

/*--------------------------------------------------------------------- Section Headers ---------------------------------------------------------------------*/

.section-header {
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(40, 121, 187, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/*--------------------------------------------------------------------- Services Section ---------------------------------------------------------------------*/

.services-modern {
    padding: 100px 0;
    background: var(--white);
}

.services-grid {
    margin-top: 50px;
}

.service-card-modern {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.service-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, rgba(40, 121, 187, 0.1) 0%, rgba(40, 121, 187, 0.05) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-card-modern:hover .service-icon-wrapper {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    transform: scale(1.1) rotate(5deg);
}

.service-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(33%) sepia(95%) saturate(1234%) hue-rotate(186deg) brightness(95%) contrast(88%);
    transition: all 0.3s ease;
}

.service-card-modern:hover .service-icon {
    filter: brightness(0) invert(1);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.service-text {
    color: var(--text-light);
    line-height: 1.7;
    flex-grow: 1;
}

/*--------------------------------------------------------------------- Features Section ---------------------------------------------------------------------*/

.features-modern {
    padding: 100px 0;
    background: var(--bg-light);
}

.features-content {
    padding-right: 40px;
}

.features-list {
    margin-top: 40px;
}

.feature-item-modern {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.feature-item-modern:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow);
}

.feature-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(40, 121, 187, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon-box img {
    width: 35px;
    height: 35px;
}

.feature-content-box h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.feature-content-box p {
    color: var(--text-light);
    margin: 0;
}

.features-img-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    height: 500px;
    max-width: 100%;
}

.feature-img-large {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    height: 100%;
    background: #f0f0f0;
}

.feature-img-small {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    align-self: end;
    position: relative;
    height: 60%;
    background: #f0f0f0;
}

.features-img-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    display: block;
}

.feature-img-large img {
    min-height: 100%;
    width: 100%;
}

.feature-img-small img {
    min-height: 100%;
    width: 100%;
}

.features-img-grid img:hover {
    transform: scale(1.05);
}

/* Mejoras para imágenes en desktop */
@media (min-width: 992px) {
    .hero-row {
        align-items: center;
        min-height: calc(100vh - 60px);
    }
    
    .hero-content {
        padding: 40px 20px;
    }
    
    .hero-image {
        padding: 40px 20px;
        justify-content: center;
    }
    
    .hero-img-wrapper {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .hero-main-img {
        max-width: 550px;
        max-height: 600px;
    }
    
    .features-images {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }
    
    .features-img-grid {
        width: 100%;
        max-width: 100%;
        height: 500px;
    }
    
    .feature-img-large {
        height: 100%;
    }
    
    .feature-img-small {
        height: 60%;
        align-self: end;
    }
}

@media (min-width: 1400px) {
    .hero-main-img {
        max-width: 600px;
        max-height: 650px;
    }
    
    .hero-img-wrapper {
        max-width: 700px;
    }
    
    .features-img-grid {
        height: 550px;
    }
}

/*--------------------------------------------------------------------- Solutions Section ---------------------------------------------------------------------*/

.solutions-modern {
    padding: 100px 0;
    background: var(--white);
}

.solutions-grid {
    margin-top: 50px;
}

.solution-card-modern {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.solution-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(40, 121, 187, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.solution-card-modern:hover::before {
    opacity: 1;
}

.solution-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-left-width: 6px;
}

.solution-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(40, 121, 187, 0.1);
    margin-bottom: 15px;
    line-height: 1;
}

.solution-card-modern h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.solution-card-modern p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/*--------------------------------------------------------------------- Contact Section ---------------------------------------------------------------------*/

.contact-modern {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, white 100%);
}

.contact-services-list {
    margin-top: 40px;
    margin-bottom: 40px;
}

.contact-service-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-service-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow);
}

.contact-service-item .service-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(40, 121, 187, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-service-item:hover .service-icon-wrapper {
    background: var(--primary-color);
    transform: scale(1.1) rotate(5deg);
}

.contact-service-item .service-icon-wrapper img {
    width: 35px;
    height: 35px;
    filter: brightness(0) saturate(100%) invert(33%) sepia(95%) saturate(1234%) hue-rotate(186deg) brightness(95%) contrast(88%);
    transition: all 0.3s ease;
}

.contact-service-item:hover .service-icon-wrapper img {
    filter: brightness(0) invert(1);
}

.contact-service-item .service-content {
    flex: 1;
}

.contact-service-item .service-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.contact-service-item .service-content p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.form-description {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.6;
}

/*--------------------------------------------------------------------- Gallery Section Moderna ---------------------------------------------------------------------*/

.gallery-modern {
    padding: 100px 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.gallery-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(40, 121, 187, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(40, 121, 187, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.gallery-modern .container {
    position: relative;
    z-index: 1;
}

.gallery-grid-modern {
    margin-top: 60px;
}

.gallery-item-modern {
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item-modern:hover {
    transform: translateY(-10px);
}

.gallery-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* Aspect ratio 4:3 */
    overflow: hidden;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.gallery-item-modern:hover .gallery-image-wrapper {
    box-shadow: 0 20px 60px rgba(40, 121, 187, 0.3);
}

.gallery-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: brightness(1);
}

.gallery-item-modern:hover .gallery-img {
    transform: scale(1.15);
    filter: brightness(0.9);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(40, 121, 187, 0.9) 0%, rgba(30, 90, 138, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
    border-radius: 25px;
}

.gallery-item-modern:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    text-align: center;
    color: white;
    padding: 40px;
    transform: translateY(30px);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item-modern:hover .gallery-content {
    transform: translateY(0);
}

.gallery-content i {
    font-size: 50px;
    margin-bottom: 20px;
    display: block;
    animation: pulse 2s infinite;
}

.gallery-content h4 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.gallery-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

.gallery-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
    z-index: 3;
    pointer-events: none;
}

.gallery-item-modern:hover .gallery-shine {
    animation: shine 1.5s ease-in-out;
    opacity: 1;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes shine {
    0% {
        left: -50%;
        top: -50%;
    }
    100% {
        left: 150%;
        top: 150%;
    }
}

/* Efecto de partículas decorativas */
.gallery-item-modern::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 4;
    box-shadow: 0 0 30px rgba(40, 121, 187, 0.5);
}

.gallery-item-modern:hover::before {
    opacity: 0.2;
    transform: scale(1);
}

.gallery-item-modern::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 4;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.gallery-item-modern:hover::after {
    opacity: 0.3;
    transform: scale(1);
}

@media (max-width: 768px) {
    .gallery-modern {
        padding: 60px 0;
    }
    
    .gallery-grid-modern {
        margin-top: 40px;
    }
    
    .gallery-image-wrapper {
        padding-bottom: 80%;
    }
    
    .gallery-content {
        padding: 30px 20px;
    }
    
    .gallery-content i {
        font-size: 40px;
        margin-bottom: 15px;
    }
    
    .gallery-content h4 {
        font-size: 1.5rem;
    }
    
    .gallery-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .gallery-modern {
        padding: 40px 0;
    }
    
    .gallery-image-wrapper {
        padding-bottom: 90%;
        border-radius: 20px;
    }
    
    .gallery-content {
        padding: 25px 15px;
    }
    
    .gallery-content i {
        font-size: 35px;
        margin-bottom: 12px;
    }
    
    .gallery-content h4 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .gallery-content p {
        font-size: 0.85rem;
    }
}

/*--------------------------------------------------------------------- CV Section Moderno ---------------------------------------------------------------------*/

.cv-section-modern {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
}

.cv-viewer-wrapper {
    background: white;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid #e8e8e8;
}

.cv-viewer-wrapper:hover {
    box-shadow: 0 20px 60px rgba(40, 121, 187, 0.2);
    transform: translateY(-5px);
}

.cv-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 35px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    flex-wrap: wrap;
    gap: 20px;
}

.cv-viewer-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cv-viewer-title i {
    font-size: 28px;
    color: white;
}

.cv-viewer-title h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.cv-viewer-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-cv-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-cv-control:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-cv-control i {
    font-size: 16px;
}

.cv-viewer-container {
    position: relative;
    width: 100%;
    padding-bottom: 70%; /* Aspect ratio mejorado para el PDF */
    height: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.cv-viewer-container:fullscreen {
    padding-bottom: 0;
    height: 100vh;
    background: white;
}

.cv-viewer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.cv-viewer-loading {
    text-align: center;
}

.cv-viewer-loading i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.cv-viewer-loading p {
    color: var(--text-light);
    font-size: 16px;
    margin: 0;
}

.cv-pdf-viewer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: white;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.05);
}

.cv-viewer-container:fullscreen .cv-pdf-viewer {
    position: relative;
    height: 100vh;
    box-shadow: none;
}

.cv-viewer-container:fullscreen {
    background: white;
}

/* Decoración adicional para el visor */
.cv-viewer-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 50%, var(--primary-color) 100%);
    z-index: 1;
}

/* Mejoras visuales adicionales */
.cv-viewer-container {
    position: relative;
}

.cv-viewer-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.9), transparent);
    pointer-events: none;
    z-index: 5;
}

@media (max-width: 768px) {
    .cv-section-modern {
        padding: 60px 0;
    }
    
    .cv-viewer-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    
    .cv-viewer-title {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .cv-viewer-title h3 {
        font-size: 1.3rem;
    }
    
    .cv-viewer-controls {
        width: 100%;
        justify-content: center;
        gap: 10px;
    }
    
    .btn-cv-control {
        flex: 1;
        min-width: 120px;
        justify-content: center;
        font-size: 13px;
        padding: 10px 15px;
    }
    
    .btn-cv-control span {
        display: none;
    }
    
    .btn-cv-control i {
        font-size: 18px;
    }
    
    .cv-viewer-container {
        padding-bottom: 100%; /* Más alto en móviles */
    }
}

@media (max-width: 576px) {
    .cv-section-modern {
        padding: 40px 0;
    }
    
    .cv-viewer-header {
        padding: 15px;
    }
    
    .cv-viewer-title h3 {
        font-size: 1.2rem;
    }
    
    .cv-viewer-title i {
        font-size: 24px;
    }
    
    .cv-viewer-controls {
        width: 100%;
        gap: 8px;
    }
    
    .btn-cv-control {
        flex: 1;
        min-width: 100px;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .cv-viewer-container {
        padding-bottom: 120%; /* Aún más alto en móviles pequeños */
    }
}

/*--------------------------------------------------------------------- Map Section Moderno ---------------------------------------------------------------------*/

.map-section-modern {
    padding: 80px 0;
    background: var(--bg-light);
}

.map-wrapper-modern {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.map-wrapper-modern:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.map-iframe {
    width: 100%;
    height: 450px;
    border: none;
    display: block;
    border-radius: 20px;
}

@media (max-width: 768px) {
    .map-section-modern {
        padding: 60px 0;
    }
    
    .map-iframe {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .map-section-modern {
        padding: 40px 0;
    }
    
    .map-iframe {
        height: 300px;
    }
}

.contact-info-modern {
    padding-right: 40px;
}

.contact-details {
    margin-top: 40px;
}

.contact-detail-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-detail-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow);
}

.contact-detail-item img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.contact-detail-item h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.contact-detail-item p {
    color: var(--text-light);
    margin: 0;
}

.contact-detail-item p a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-detail-item p a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.contact-form-modern {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.contact-form-modern h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.form-modern {
    margin-top: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group-modern {
    margin-bottom: 20px;
}

.form-input-modern {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-input-modern:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(40, 121, 187, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/*--------------------------------------------------------------------- Footer Moderno ---------------------------------------------------------------------*/

.footer-modern {
    background: var(--text-dark);
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    margin-bottom: 50px;
}

.footer-brand {
    margin-bottom: 20px;
}

.footer-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-contact img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.footer-social img {
    width: 24px;
    height: 24px;
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/*--------------------------------------------------------------------- Page Header Moderno ---------------------------------------------------------------------*/

.page-header-modern {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 120px 0 80px;
    margin-top: 60px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-header-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/banner-bg.png') center/cover;
    opacity: 0.1;
    z-index: 0;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/*--------------------------------------------------------------------- Services Detailed Moderno ---------------------------------------------------------------------*/

.services-detailed-modern {
    padding: 100px 0;
    background: var(--white);
}

.service-category-modern {
    margin-bottom: 80px;
}

.service-category-modern:last-child {
    margin-bottom: 0;
}

.service-category-content {
    padding: 20px;
}

.service-category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(40, 121, 187, 0.1) 0%, rgba(40, 121, 187, 0.05) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.service-category-icon img {
    width: 50px;
    height: 50px;
}

.service-category-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.service-category-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.service-list-modern {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list-modern li {
    padding: 12px 0;
    font-size: 1rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.service-list-modern li:last-child {
    border-bottom: none;
}

.service-list-modern li:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.service-list-modern li i {
    color: var(--primary-color);
    font-size: 18px;
    flex-shrink: 0;
}

.service-category-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.service-category-image:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-category-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.service-category-image:hover img {
    transform: scale(1.05);
}

/*--------------------------------------------------------------------- Features Grid Moderno ---------------------------------------------------------------------*/

.features-grid-modern {
    padding: 100px 0;
    background: var(--bg-light);
}

.feature-box-modern {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid #f0f0f0;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.feature-box-modern:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.feature-box-modern .feature-icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, rgba(40, 121, 187, 0.1) 0%, rgba(40, 121, 187, 0.05) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature-box-modern:hover .feature-icon-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    transform: scale(1.1) rotate(5deg);
}

.feature-box-modern .feature-icon-box img {
    width: 50px;
    height: 50px;
    filter: brightness(0) saturate(100%) invert(33%) sepia(95%) saturate(1234%) hue-rotate(186deg) brightness(95%) contrast(88%);
    transition: all 0.3s ease;
}

.feature-box-modern:hover .feature-icon-box img {
    filter: brightness(0) invert(1);
}

.feature-box-modern h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.feature-box-modern p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/*--------------------------------------------------------------------- CTA Section Moderno ---------------------------------------------------------------------*/

.cta-modern {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/banner-bg.png') center/cover;
    opacity: 0.1;
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-modern .btn-secondary-modern {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.cta-modern .btn-secondary-modern:hover {
    background: transparent;
    color: white;
    border-color: white;
}

/*--------------------------------------------------------------------- Responsive Design ---------------------------------------------------------------------*/

/*--------------------------------------------------------------------- Desktop Optimizations ---------------------------------------------------------------------*/

@media (min-width: 1200px) {
    .hero-img-wrapper {
        max-width: 650px;
        padding: 30px;
    }
    
    .hero-main-img {
        max-width: 550px;
        max-height: 600px;
    }
    
    .features-img-grid {
        height: 550px;
        max-height: 600px;
    }
    
    .feature-img-large {
        min-height: 100%;
    }
    
    .feature-img-small {
        min-height: 55%;
    }
}

@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .page-title {
        font-size: 3rem;
    }
    
    .hero-slide-content {
        padding: 30px 0;
    }
    
    .hero-img-wrapper {
        max-width: 550px;
    }
    
    .hero-main-img {
        max-width: 450px;
    }
    
    .features-img-grid {
        height: 450px;
    }
    
    .service-category-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .hero-carousel-modern {
        margin-top: 55px;
    }
    
    .hero-slide-content {
        min-height: calc(100vh - 55px);
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-img-wrapper {
        max-width: 500px;
        padding: 15px;
    }
    
    .hero-main-img {
        max-width: 100%;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-description {
        font-size: 1.1rem;
    }
    
    .carousel-control-prev-modern,
    .carousel-control-next-modern {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .carousel-control-prev-modern {
        left: 20px;
    }
    
    .carousel-control-next-modern {
        right: 20px;
    }
    
    .features-content {
        padding-right: 0;
        margin-bottom: 50px;
    }
    
    .features-img-grid {
        height: 400px;
        grid-template-columns: 1.5fr 1fr;
    }
    
    .contact-info-modern {
        padding-right: 0;
        margin-bottom: 50px;
    }
    
    .contact-modern .row {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .service-category-modern .row {
        flex-direction: column;
    }
    
    .service-category-modern .row .col-lg-6.order-lg-1,
    .service-category-modern .row .col-lg-6.order-lg-2 {
        order: 0 !important;
    }
    
    .service-category-title {
        font-size: 2rem;
    }
    
    .solutions-grid .row {
        margin: 0;
    }
    
    .solutions-grid .col-lg-3 {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .navbar-modern {
        padding: 0.4rem 0;
    }
    
    .navbar-brand-modern .logo-img {
        height: 40px;
        max-width: 180px;
    }
    
    .page-header-modern {
        padding: 80px 0 50px;
        margin-top: 50px;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-description {
        font-size: 1rem;
    }
    
    .hero-carousel-modern {
        margin-top: 50px;
    }
    
    .hero-slide-content {
        min-height: auto;
        padding: 30px 0;
        text-align: center;
    }
    
    .hero-slide-content .row {
        min-height: auto !important;
    }
    
    .hero-content {
        padding: 20px 0;
        margin-bottom: 30px;
    }
    
    .hero-image {
        padding: 20px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-buttons .btn-modern {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-img-wrapper {
        padding: 20px;
    }
    
    .floating-card {
        display: none;
    }
    
    .carousel-control-prev-modern,
    .carousel-control-next-modern {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .carousel-control-prev-modern {
        left: 15px;
    }
    
    .carousel-control-next-modern {
        right: 15px;
    }
    
    .carousel-indicators-modern {
        bottom: 20px;
    }
    
    .services-detailed-modern {
        padding: 60px 0;
    }
    
    .service-category-modern {
        margin-bottom: 50px;
    }
    
    .service-category-title {
        font-size: 2rem;
    }
    
    .features-grid-modern {
        padding: 60px 0;
    }
    
    .cta-modern {
        padding: 60px 0;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn-modern {
        width: 100%;
        max-width: 300px;
    }
    
    .contact-modern {
        padding: 60px 0;
    }
    
    .contact-info-modern {
        margin-bottom: 40px;
    }
    
    .contact-services-list {
        margin-top: 30px;
        margin-bottom: 30px;
    }
    
    .contact-service-item {
        padding: 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Mejoras adicionales de responsividad */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .row {
        margin-left: -15px;
        margin-right: -15px;
    }
    
    .row > * {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Asegurar que las imágenes sean responsive */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Mejorar el espaciado en móviles */
    .mb-4, .mb-5 {
        margin-bottom: 1.5rem !important;
    }
    
    /* Ajustar padding en secciones */
    section {
        padding-left: 0;
        padding-right: 0;
    }
}
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-modern,
    .features-modern,
    .solutions-modern,
    .contact-modern {
        padding: 60px 0;
    }
    
    .contact-form-modern {
        padding: 30px 20px;
    }
    
    .features-img-grid {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .feature-img-small {
        align-self: stretch;
    }
    
    .floating-card {
        display: none;
    }
}

@media (max-width: 576px) {
    .navbar-modern {
        padding: 0.3rem 0;
    }
    
    .navbar-brand-modern .logo-img {
        height: 35px;
        max-width: 150px;
    }
    
    .page-header-modern {
        padding: 60px 0 40px;
        margin-top: 45px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-description {
        font-size: 0.95rem;
    }
    
    .hero-carousel-modern {
        margin-top: 45px;
    }
    
    .hero-slide-content {
        min-height: auto;
        padding: 25px 0;
    }
    
    .hero-slide-content .row {
        min-height: auto !important;
    }
    
    .hero-content {
        padding: 15px 0;
        margin-bottom: 25px;
    }
    
    .hero-image {
        padding: 15px 0;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    
    .hero-badge {
        font-size: 12px;
        padding: 6px 15px;
    }
    
    .hero-buttons {
        gap: 12px;
    }
    
    .hero-buttons .btn-modern {
        padding: 12px 25px;
        font-size: 14px;
        width: 100%;
        max-width: 280px;
    }
    
    .hero-img-wrapper {
        padding: 15px;
        max-width: 100%;
    }
    
    .hero-main-img {
        max-width: 100%;
        height: auto;
        max-height: 400px;
        object-fit: contain;
    }
    
    .features-img-grid {
        height: 300px;
    }
    
    .feature-img-large,
    .feature-img-small {
        height: 100%;
    }
    
    .feature-img-small {
        height: 150px;
    }
    
    .carousel-control-prev-modern,
    .carousel-control-next-modern {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .carousel-control-prev-modern {
        left: 10px;
    }
    
    .carousel-control-next-modern {
        right: 10px;
    }
    
    .carousel-indicators-modern {
        bottom: 15px;
        gap: 8px;
    }
    
    .carousel-indicators-modern li {
        width: 10px;
        height: 10px;
    }
    
    .carousel-indicators-modern li.active {
        width: 25px;
    }
    
    .services-detailed-modern {
        padding: 40px 0;
    }
    
    .service-category-modern {
        margin-bottom: 40px;
    }
    
    .service-category-title {
        font-size: 1.8rem;
    }
    
    .service-category-description {
        font-size: 1rem;
    }
    
    .features-grid-modern {
        padding: 40px 0;
    }
    
    .cta-modern {
        padding: 40px 0;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 0.95rem;
    }
    
    .contact-modern {
        padding: 40px 0;
    }
    
    .contact-info-modern {
        margin-bottom: 30px;
    }
    
    .contact-services-list {
        margin-top: 25px;
        margin-bottom: 25px;
    }
    
    .contact-service-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .contact-service-item .service-icon-wrapper {
        margin: 0 auto 15px;
    }
    
    .contact-service-item:hover {
        transform: translateY(-5px);
    }
    
    .btn-modern {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .service-card-modern,
    .solution-card-modern,
    .feature-box-modern {
        padding: 30px 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}
    
    .hero-title {
        font-size: 2rem;
    }
    
    .btn-modern {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .service-card-modern,
    .solution-card-modern {
        padding: 30px 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    /* Mejoras adicionales de responsividad para móviles */
    html {
        font-size: 14px;
    }
    
    /* Footer responsive */
    .footer-modern .row {
        text-align: center;
    }
    
    .footer-links,
    .footer-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* Mejorar espaciado en móviles */
    .mb-4, .mb-5 {
        margin-bottom: 1.5rem !important;
    }
}

/*--------------------------------------------------------------------- Responsive Global Improvements ---------------------------------------------------------------------*/

/* Asegurar que todos los elementos sean responsive */
@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .row > * {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .page-title,
    .hero-title,
    .section-title {
        font-size: 1.6rem;
    }
    
    .btn-modern {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Mejoras para tablets en modo landscape */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .hero-slide-content {
        min-height: auto;
        padding: 40px 0;
    }
    
    .page-header-modern {
        padding: 80px 0 60px;
    }
}

/*--------------------------------------------------------------------- WhatsApp Floating Button ---------------------------------------------------------------------*/

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    overflow: visible;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
    background: #20BA5A;
}

.whatsapp-float:active {
    transform: scale(0.95);
}

.whatsapp-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.whatsapp-icon svg {
    width: 32px;
    height: 32px;
    color: white;
    fill: white;
    z-index: 2;
    position: relative;
    display: block;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: #25D366;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
    animation: pulse-whatsapp 2s infinite;
    z-index: 0;
}

.whatsapp-float:hover::before {
    animation: pulse-whatsapp-hover 1s infinite;
}

@keyframes pulse-whatsapp {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
}

@keyframes pulse-whatsapp-hover {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background: #25D366;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid #25D366;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 25px;
        right: 25px;
    }
    
    .whatsapp-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .whatsapp-tooltip {
        font-size: 12px;
        padding: 8px 12px;
        right: 70px;
    }
    
    .whatsapp-float:hover .whatsapp-tooltip {
        right: 75px;
    }
}

@media (max-width: 576px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .whatsapp-tooltip {
        display: none; /* Ocultar tooltip en móviles muy pequeños */
    }
}
