* {
    font-family: 'Poppins', sans-serif;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

div::-webkit-scrollbar {
    display: none;
}

.hamburger-active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu-show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.mobile-dropdown-show {
    max-height: 300px !important;
}

.animate-scroll {
    animation: scroll 30s linear infinite;
}

.carousel-container {
    scroll-behavior: smooth;
}

.carousel-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.nav-button {
    transition: all 0.3s ease;
    background-color: rgba(219, 36, 89, 0.40);
}

.nav-button:hover {
    background-color: rgba(219, 36, 89, 0.40);
}

.nav-button:disabled {
    background-color: rgba(219, 36, 89, 0.40);
    cursor: not-allowed;
}

.footer-bg {
    background: linear-gradient(#ffffff, #D3D1D1);
}

/* Infraestructura */
.soluciones-carousel-container {
    overflow: hidden;
    position: relative;
}

.soluciones-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.soluciones-carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.soluciones-icon-item {
    transition: all 0.3s ease;
}

.soluciones-icon-bg {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.soluciones-icon-bg:hover {
    border-color: #962556;
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.15);
}

.soluciones-dot {
    transition: all 0.3s ease;
}

.soluciones-dot.active {
    background-color: #962556;
    transform: scale(1.2);
}

.soluciones-nav-button {
    transition: all 0.3s ease;
}

.soluciones-nav-button:hover {
    background-color: #962556;
    transform: scale(1.1);
}

.soluciones-nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.soluciones-nav-button:disabled:hover {
    background-color: #94a3b8;
    transform: none;
}

.cctv-carousel-container {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.cctv-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.cctv-carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
    padding: 0 10px;
    box-sizing: border-box;
}

.cctv-dot.active {
    background-color: white !important;
    opacity: 1 !important;
    transform: scale(1.2);
}

/* Modal fade in animation */
#cctvModal.show {
    display: flex !important;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cctv-carousel-slide {
        padding: 0 5px;
    }
    
    #cctvModal .grid {
        gap: 1rem;
    }
    
    #cctvModal img {
        height: 250px;
    }
}

/* Hover effects for images */
#cctvModal img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#cctvModal img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.aire-carousel-container {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.aire-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.aire-carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
    padding: 0 10px;
    box-sizing: border-box;
}

/* Modal fade in animation */
#aireModal.show {
    display: flex !important;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .aire-carousel-slide {
        padding: 0 5px;
    }
    
    #aireModal .grid {
        gap: 1rem;
    }
    
    #aireModal img {
        height: 250px;
    }
}

/* Hover effects for images */
#aireModal img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#aireModal img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes fadein {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in {
    animation: fadein 1s ease-in-out forwards;
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.animate-slide-in-left {
    animation: slideInLeft 1s ease-out forwards;
}

@keyframes slideInBottom {
    from { transform: translatey(100%); }
    to { transform: translatey(0); }
}

.animate-slide-in-bottom {
    animation: slideInBottom 0.6s ease-out forwards;
}

@keyframes slideInWithMotionBlur {
    0% { 
        transform: translateX(-100%); 
        filter: blur(0px) drop-shadow(10px 0 15px rgba(0,0,0,0.3));
    }
    50% { 
        transform: translateX(-25%); 
        filter: blur(4px) drop-shadow(6px 0 10px rgba(0,0,0,0.15));
    }
    100% { 
        transform: translateX(0); 
        filter: blur(0px) drop-shadow(0 0 0 rgba(0,0,0,0));
    }
}

.animate-motion-blur {
    animation: slideInWithMotionBlur 1s ease-out forwards;
}

[data-animation] {
    opacity: 0 !important;
    visibility: hidden;
}

[data-animation].animate-fade-in {
    transform: translateX(0);
}

[data-animation].animate-slide-in-left {
    transform: translateX(-100%);
}

[data-animation].animate-motion-blur {
    transform: translateX(-100%);
}

[data-animation].animate-slide-in-bottom {
    transform: translateY(100%);
}

/* Show elements when animation class is added */
[data-animation].animate-fade-in,
[data-animation].animate-slide-in-left,
[data-animation].animate-motion-blur,
[data-animation].animate-zoom-in,
[data-animation].animate-slide-in-bottom {
    opacity: 1 !important;
    visibility: visible;
}

@keyframes zoomIn {
    from { 
        transform: scale(0);
        opacity: 0;
    }
    to { 
        transform: scale(1);
        opacity: 1;
    }
}

.animate-zoom-in {
    animation: zoomIn 0.7s ease-out forwards;
}


/* Certificate modal */
.modal-overlay {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    backdrop-filter: blur(4px);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    transform: scale(0.7) translateY(-50px);
    transition: all 0.3s ease-in-out;
}

.modal-overlay.show .modal-content {
    transform: scale(1) translateY(0);
}

.carousel-slide {
    transition: transform 0.5s ease-in-out;
}

.thumbnail-container {
    scroll-behavior: smooth;
}

/* Mapa */
#map {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
}

.map-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

#map svg {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
}

@media (max-width: 640px) {
    .map-container {
        padding: 0 8px;
    }
    #map svg {
        min-height: 250px;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .map-container {
        padding: 0 16px;
    }
    #map svg {
        min-height: 350px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #map svg {
        min-height: 450px;
    }
}

@media (min-width: 1025px) {
    #map svg {
        min-height: 500px;
    }
}

#map * {
    max-width: 100% !important;
}

.carousel-hero-item {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    position: absolute;
    inset: 0;
}

.carousel-hero-item.active {
    opacity: 1;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInBottom {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-in-bottom {
    animation: slideInBottom 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.4s;
}

.animate-motion-blur {
    animation-delay: 0.1s;
}

.text-srm-purple {
    color: #6B46C1;
}

.bg-srm-purple {
    background-color: #6B46C1;
}

/* Indicadores del carousel hero */
.carousel-hero-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(79, 79, 79, 0.4);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hero-indicator.active {
    background-color: rgba(151, 151, 151, 0.9);
}


/* Hover effects para las cards */
.solution-card {
    transition: all 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-8px);
}

.solution-card:hover .solution-image {
    transform: scale(1.05);
}

.solution-image {
    transition: transform 0.3s ease;
}

.animate-scroll {
    animation: scroll 15s linear infinite;
}