/* by GEA.TECH - Estilos generales */
:root {
    --primary: #063569;
    --secondary: #9ac7db;
    --accent: #e74c3c;
    --light: #f9f9f9;
    --dark: #333;
    --gray: #777;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* by GEA.TECH - Prevenir scroll horizontal */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background-color: #f5f5f5;
    color: var(--dark);
    line-height: 1.6;
    width: 100%;
    position: relative;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* by GEA.TECH - Header y navegación */
header {
    background-color: var(--primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: relative;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    max-width: 100%;
}

.logo img {
    height: 60px;
    margin-right: 10px;
    max-width: 100%;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #e4f0f6;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* by GEA.TECH - Banner principal */
.banner {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/Banner001.jpg') no-repeat center center/cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
    width: 100%;
}

.banner h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    word-wrap: break-word;
}

.banner p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    word-wrap: break-word;
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn:hover {
    background-color: #9ac7db;
}

/* by GEA.TECH - Contador */
.counter-section {
    background-color: #e4f0f6;
    padding: 60px 0;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    width: 100%;
}

.counter-section h2 {
    color: var(--primary);
    margin-bottom: 40px;
}

.counter-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    width: 100%;
}

.counter-item {
    margin: 15px;
    padding: 20px;
    border-radius: 10px;
    background-color: var(--primary);
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    min-width: 200px;
    flex: 1;
    max-width: 250px;
    box-shadow: #00000033 0px 4px 6px -1px, #0000001a 0px 2px 4px -1px;
}

.counter-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e4f0f6;
    margin-bottom: 10px;
}

.counter-text {
    color: #e4f0f6;
    font-weight: 500;
}

/* by GEA.TECH - Sección de servicios */
.services {
    padding: 80px 0;
    width: 100%;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    width: 100%;
}

.section-title h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    width: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-img {
    height: 200px;
    background-color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    width: 100%;
}

.service-content {
    padding: 25px;
    width: 100%;
}

.service-content h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

/* by GEA.TECH - Galería */
.gallery {
    padding: 80px 0;
    background-color: #9ac7db;;
    width: 100%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    height: 200px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-weight: 500;
    width: 100%;
}

/* by GEA.TECH - Estilos para Galería con Lightbox */
.gallery {
    padding: 80px 0;
    background: #e4f0f6;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    aspect-ratio: 1;
    background: var(--light);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 100%;
    height: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10002;
    transition: color 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.lightbox-close:hover {
    color: #ff6b6b;
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    backdrop-filter: blur(10px);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-image-container {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-image-container img.loaded {
    opacity: 1;
}

.lightbox-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    border-radius: 0 0 8px 8px;
}

.lightbox-caption span {
    display: block;
    margin-bottom: 5px;
}

#lightboxCounter {
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
}

#lightboxText {
    font-size: 1rem;
    opacity: 0.9;
}

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

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

.lightbox-image-container img {
    animation: zoomIn 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 10px;
    }
    
    .lightbox-content {
        padding: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
    
    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .lightbox-prev {
        left: 15px;
    }
    
    .lightbox-next {
        right: 15px;
    }
    
    .lightbox-image-container {
        max-width: 95%;
        max-height: 70vh;
    }
    
    .lightbox-caption {
        bottom: 15px;
        padding: 15px;
    }
    
    #lightboxCounter {
        font-size: 1rem;
    }
    
    #lightboxText {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .gallery {
        padding: 60px 0;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 8px;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .lightbox-image-container {
        max-height: 60vh;
    }
}

/* Efectos de carga */
.lightbox-loader {
    display: none;
}

.lightbox-loader.show {
    display: block;
}

/* Navegación con teclado - feedback visual */
.lightbox-nav:active {
    transform: translateY(-50%) scale(0.95);
}

/* by GEA.TECH - Videos */
.videos {
    padding: 80px 0;
    width: 100%;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
}

.video-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    width: 100%;
}

.video-placeholder {
    height: 200px;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    width: 100%;
}

.video-content {
    padding: 20px;
    width: 100%;
}

.video-content h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

/* by GEA.TECH - Estilos para Videos con Lightbox */
.videos {
    padding: 80px 0;
    background: var(--prim);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.video-item {
    background: #e4f0f6;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.video-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #000;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-item:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #9ac8db77, #0634698a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    transition: all 0.3s ease;
}

.video-item:hover .video-play-overlay {
    background: (--primary);
    font-size: 4.5rem;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.video-content {
    padding: 20px;
}

.video-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.video-content p {
    color: var(--gray);
    line-height: 1.5;
    margin: 0;
}

/* Video Lightbox Modal */
.video-lightbox-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(10px);
}

.video-lightbox-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 100%;
    height: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.video-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10002;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.video-lightbox-close:hover {
    color: #ff6b6b;
    background: rgba(255, 255, 255, 0.2);
}

.video-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    backdrop-filter: blur(10px);
}

.video-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.video-lightbox-prev {
    left: 30px;
}

.video-lightbox-next {
    right: 30px;
}

.video-lightbox-player {
    position: relative;
    width: 100%;
    max-width: 800px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

#videoPlayerContainer {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* Relación 16:9 */
    position: relative;
}

#videoPlayerContainer video,
#videoPlayerContainer iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

.video-lightbox-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    display: none;
}

.video-lightbox-loader.show {
    display: block;
}

.video-lightbox-loader i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.video-lightbox-loader p {
    margin: 0;
    font-size: 1.1rem;
}

.video-lightbox-info {
    margin-top: 20px;
    text-align: center;
    color: white;
    max-width: 800px;
    width: 100%;
}

.video-lightbox-info h3 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.video-lightbox-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    line-height: 1.5;
}

.video-lightbox-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

#videoLightboxCounter {
    font-weight: 600;
    color: #fff
}

/* Responsive */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .video-thumbnail {
        height: 180px;
    }
    
    .video-play-overlay {
        font-size: 3.5rem;
    }
    
    .video-lightbox-content {
        padding: 10px;
    }
    
    .video-lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
    
    .video-lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .video-lightbox-prev {
        left: 15px;
    }
    
    .video-lightbox-next {
        right: 15px;
    }
    
    .video-lightbox-player {
        max-width: 95%;
    }
    
    .video-lightbox-info h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .videos {
        padding: 60px 0;
    }
    
    .video-thumbnail {
        height: 160px;
    }
    
    .video-play-overlay {
        font-size: 3rem;
    }
    
    .video-content {
        padding: 15px;
    }
    
    .video-lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .video-lightbox-info h3 {
        font-size: 1.1rem;
    }
}

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

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

.video-lightbox-player {
    animation: slideUp 0.3s ease;
}

/* by GEA.TECH - Footer */
footer {
    background-color: var(--primary);
    color: white;
    padding-top: 60px;
    width: 100%;
    text-align: center;
    align-items: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    width: 100%;
}

.footer-column h3 {
    color: #9ac7db;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-column p, .footer-column a {
    color: #ccc;
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
}

.footer-column a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.wa:hover {
    color: #9ac6dc;
    font-weight: 700;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background-color: #61a5c2;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
    width: 100%;
}

.credits {
    margin-top: 10px;
    font-size: 0.8rem;
}

.credits a {
    color: #9ac6dc;
    text-decoration: none;
}

.credits a:hover {
    color: #f40c5a;
}

/* by GEA.TECH - Botón Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    border: 2px solid white;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #9ac7db;
    transform: translateY(-3px);
}

/* by GEA.TECH - Responsive */
@media (max-width: 768px) {
    /* Prevenir scroll horizontal */
    html, body {
        overflow-x: hidden;
        position: relative;
    }
    
    .header-container {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }
    
    .logo {
        margin-bottom: 0;
        flex: 1;
        min-width: 0;
    }
    
    .logo-text {
        font-size: 1.3rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    nav {
        width: 100%;
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        width: 100%;
        padding: 0;
    }
    
    nav ul li {
        margin: 0;
        border-bottom: 1px solid #eee;
    }
    
    nav ul li:last-child {
        border-bottom: none;
    }
    
    nav ul li a {
        display: block;
        padding: 15px 20px;
        transition: all 0.3s ease;
    }
    
    nav ul li a:hover {
        background-color: var(--light);
        color: var(--primary);
    }
    
    .mobile-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }
    
    .banner {
        padding: 80px 15px;
    }
    
    .banner h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .banner p {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .counter-container {
        flex-direction: column;
        align-items: center;
    }
    
    .counter-item {
        min-width: 200px;
        margin: 10px 0;
        width: 100%;
        max-width: 300px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* by GEA.TECH - Botón Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    border: 2px solid white;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #2512a1;
    transform: translateY(-3px);
}

/* by GEA.TECH - Responsive para Back to Top */
@media (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1rem;
        opacity: 0.9 !important;
        visibility: visible !important;
    }
    
    .back-to-top.show {
        opacity: 0.9 !important;
        visibility: visible !important;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
        font-size: 0.9rem;
    }
}

/* by GEA.TECH - Asegurar que el botón sea siempre visible en móvil */
@media (max-width: 768px) {
    .back-to-top {
        opacity: 0.9 !important;
        visibility: visible !important;
        display: flex !important;
    }
}
    
    /* by GEA.TECH - Botón Back to Top en móvil */
    .back-to-top {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 1.2rem;
        opacity: 0.9 !important;
        visibility: visible !important;
        z-index: 9999;
    }
    
    .back-to-top.show {
        opacity: 0.9 !important;
        visibility: visible !important;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    .banner h1 {
        font-size: 1.5rem;
    }
    
    .banner p {
        font-size: 0.9rem;
    }
    
    .logo img {
        height: 50px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .counter-item {
        min-width: 100%;
        margin: 8px 0;
        padding: 15px;
    }
    
    .counter-number {
        font-size: 2rem;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
}

/* by GEA.TECH - Asegurar que ningún elemento exceda el ancho */
img, video, iframe, object, embed {
    max-width: 100%;
    height: auto;
}

/* by GEA.TECH - Forzar que el botón back to top sea siempre visible en móvil */
@media (max-width: 768px) {
    .back-to-top {
        opacity: 0.9 !important;
        visibility: visible !important;
        display: flex !important;
    }
}

/* by GEA.TECH - Estilos del Formulario de Contacto */
.contact-section {
    padding: 80px 0;
    background-color: #9ac7db;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    color: var(--primary);
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-details h4 {
    color: var(--dark);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-details p {
    color: var(--gray);
    margin: 0;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(48, 25, 182, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.btn-full {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-full i {
    font-size: 1rem;
}

/* Estados del formulario */
.form-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.form-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

/* by GEA.TECH - Responsive para Formulario */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .contact-item {
        padding: 15px;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
    }
}

/* by GEA.TECH - Estilos específicos para Donaciones */
        .donations-banner {
            background: linear-gradient(#9ac8db77, #0634698a), url('img/donations-banner.jpg');
            background-size: cover;
            background-position: center;
        }

        .donation-options {
            padding: 80px 0;
            background: white;
        }

        .donation-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin-top: 50px;
        }

        .donation-card {
            background: white;
            padding: 40px 30px;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            text-align: center;
            border: 2px solid transparent;
            transition: all 0.3s ease;
        }

        .donation-card.featured {
            border-color: var(--primary);
            transform: scale(1.05);
            position: relative;
        }

        .donation-card.featured::before {
            content: 'Más Popular';
            position: absolute;
            top: -10px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--primary);
            color: white;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
        }

        .donation-icon {
            width: 80px;
            height: 80px;
            background: var(--primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            color: white;
            font-size: 2rem;
        }

        .donation-card h3 {
            color: var(--dark);
            margin-bottom: 15px;
            font-size: 1.4rem;
        }

        .donation-card p {
            color: var(--gray);
            margin-bottom: 25px;
        }

        .amount-options {
            margin-bottom: 25px;
        }

        .amount-btn {
            background: #f8f9fa;
            border: 2px solid #e9ecef;
            padding: 10px 15px;
            margin: 5px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 600;
        }

        .amount-btn:hover, .amount-btn.active {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        .custom-amount {
            position: relative;
            margin-top: 10px;
        }

        .custom-amount input {
            width: 100%;
            padding: 12px 60px 12px 15px;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            font-size: 1rem;
        }

        .custom-amount span {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--gray);
            font-weight: 600;
        }

        .in-kind-options {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-bottom: 25px;
        }

        .kind-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 15px 10px;
            background: #f8f9fa;
            border-radius: 8px;
            transition: all 0.3s ease;
        }

        .kind-item:hover {
            background: var(--primary);
            color: white;
        }

        .kind-item i {
            font-size: 1.5rem;
            margin-bottom: 5px;
        }

        .kind-item span {
            font-size: 0.9rem;
            font-weight: 600;
        }

        .btn-donate {
            width: 100%;
            padding: 15px;
            font-size: 1.1rem;
        }

        .volunteer-cta {
            background: var(--light);
            padding: 60px 0;
            text-align: center;
        }

        .volunteer-content {
            max-width: 600px;
            margin: 0 auto;
        }

        .volunteer-text h2 {
            color: var(--primary);
            margin-bottom: 15px;
        }

        .volunteer-text p {
            color: var(--gray);
            margin-bottom: 30px;
            font-size: 1.1rem;
        }

        .btn-volunteer {
            background: var(--secondary);
            padding: 15px 30px;
            font-size: 1.1rem;
        }

        .btn-volunteer:hover {
            background: #2980b9;
        }

        .impact-section {
            padding: 80px 0;
            background: white;
        }

        .impact-point {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 50px;
            align-items: center;
            margin-bottom: 80px;
        }

        .impact-point.reverse {
            direction: rtl;
        }

        .impact-point.reverse > * {
            direction: ltr;
        }

        .impact-content {
            display: flex;
            gap: 30px;
        }

        .impact-number {
            width: 60px;
            height: 60px;
            background: var(--primary);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            font-weight: 700;
            flex-shrink: 0;
        }

        .impact-text h3 {
            color: var(--primary);
            margin-bottom: 15px;
            font-size: 1.5rem;
        }

        .impact-text p {
            color: var(--dark);
            margin-bottom: 20px;
            line-height: 1.6;
        }

        .impact-list {
            list-style: none;
            padding: 0;
        }

        .impact-list li {
            margin-bottom: 10px;
            color: var(--gray);
        }

        .impact-list i {
            color: var(--primary);
            margin-right: 10px;
        }

        .impact-images {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .impact-img {
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

        .impact-img img {
            width: 100%;
            height: 250px;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .impact-img:hover img {
            transform: scale(1.05);
        }

        /* Responsive */
        @media (max-width: 768px) {
            .donation-cards {
                grid-template-columns: 1fr;
            }

            .donation-card.featured {
                transform: none;
            }

            .impact-point,
            .impact-point.reverse {
                grid-template-columns: 1fr;
                gap: 30px;
                direction: ltr;
            }

            .impact-images {
                grid-template-columns: 1fr;
            }

            .impact-content {
                flex-direction: column;
                text-align: center;
            }

            .in-kind-options {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 480px) {
            .donation-card {
                padding: 30px 20px;
            }

            .impact-number {
                width: 50px;
                height: 50px;
                font-size: 1.2rem;
            }
        }

        /* by GEA.TECH - Estilos para Modales de Pago COMPACTOS */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
    overflow-y: auto;
    padding: 20px 0;
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 420px; /* Más compacto */
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: slideIn 0.3s;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: white;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    color: var(--primary);
    margin: 0;
    font-size: 1.2rem;
}

.close {
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: var(--dark);
}

.modal-body {
    padding: 20px;
}

.donation-summary {
    background: var(--light);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.summary-item:last-child {
    margin-bottom: 0;
}

.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}

.payment-method {
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    min-height: 60px;
    justify-content: center;
}

.payment-method:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.payment-method.active {
    border-color: var(--primary);
    background: rgba(48, 25, 182, 0.05);
    box-shadow: 0 2px 8px rgba(48, 25, 182, 0.2);
}

.payment-method img {
    height: 20px;
    width: auto;
    max-width: 60px;
}

.payment-method i {
    font-size: 1.2rem;
    color: var(--primary);
}

.payment-instructions {
    background: var(--light);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    display: none;
    font-size: 0.85rem;
}

.payment-instructions.active {
    display: block;
}

.payment-instructions h4 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.payment-instructions p {
    margin-bottom: 8px;
    line-height: 1.4;
}

.payment-instructions p:last-child {
    margin-bottom: 0;
}

.card-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-process-payment {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    margin-top: 15px;
}

/* Formularios más compactos */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    font-size: 0.9rem;
    border-radius: 6px;
}

.in-kind-form textarea {
    resize: vertical;
    min-height: 60px;
    font-size: 0.9rem;
}

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

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

/* Scroll personalizado */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 12px 12px 0;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

/* Responsive para móviles pequeños */
@media (max-width: 480px) {
    .modal {
        padding: 10px 0;
    }
    
    .modal-content {
        margin: 1% auto;
        width: 95%;
        max-width: 380px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .payment-methods {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .payment-method {
        padding: 10px 8px;
        min-height: 55px;
        font-size: 0.75rem;
    }
    
    .payment-method img {
        height: 18px;
    }
    
    .card-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .donation-summary {
        padding: 12px;
        font-size: 0.85rem;
    }
}

/* Para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .modal-content {
        max-width: 450px;
    }
}

/* Asegurar que el modal siempre sea visible */
@media (max-height: 600px) {
    .modal-content {
        margin: 1% auto;
        max-height: 98vh;
    }
}



        /* by GEA.TECH - Estilos para Sección Quiénes Somos */
        .about-banner {
            background: linear-gradient(#9ac8db77, #0634698a), url('img/about-banner.jpg');
            background-size: cover;
            background-position: center;
        }

        .about-section {
            padding: 80px 0;
            background: #e4f0f6;
        }

        .about-point {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 50px;
            align-items: center;
            margin-bottom: 80px;
        }

        .about-point.reverse {
            direction: rtl;
        }

        .about-point.reverse > * {
            direction: ltr;
        }

        .about-point.patron-section {
            background: var(--light);
            padding: 50px;
            border-radius: 15px;
            margin: 80px 0;
        }

        .about-content {
            display: flex;
            gap: 25px;
        }

        .about-icon {
            width: 70px;
            height: 70px;
            background: var(--primary);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            flex-shrink: 0;
            margin-top: 10px;
        }

        .about-text h2 {
            color: var(--primary);
            margin-bottom: 20px;
            font-size: 1.8rem;
        }

        .about-text p {
            color: var(--dark);
            margin-bottom: 20px;
            line-height: 1.7;
            font-size: 1.05rem;
        }

        .about-list {
            list-style: none;
            padding: 0;
            margin: 20px 0;
        }

        .about-list li {
            margin-bottom: 12px;
            color: var(--gray);
            display: flex;
            align-items: flex-start;
            gap: 12px;
        }

        .about-list i {
            color: var(--primary);
            margin-top: 3px;
            flex-shrink: 0;
        }

        .about-list i.fa-star {
            color: #ffd700;
        }

        .about-images {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .about-img {
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 8px 25px rgba(0,0,0,0.1);
        }

        .about-img img {
            width: 100%;
            height: 250px;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .about-img:hover img {
            transform: scale(1.05);
        }

        /* Valores Grid */
        .values-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-top: 25px;
        }

        .value-item {
            background: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
            text-align: center;
            transition: transform 0.3s ease;
        }

        .value-item:hover {
            transform: translateY(-5px);
        }

        .value-icon {
            width: 50px;
            height: 50px;
            background: var(--primary);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 15px;
            font-size: 1.3rem;
        }

        .value-item h4 {
            color: var(--primary);
            margin-bottom: 10px;
            font-size: 1.1rem;
        }

        .value-item p {
            font-size: 0.9rem;
            margin: 0;
            line-height: 1.5;
        }

        /* Sección del Patrono */
        .patron-images {
            grid-template-columns: 1fr;
        }

        .patron-main-img {
            position: relative;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        }

        .patron-main-img img {
            width: 100%;
            height: 400px;
            object-fit: cover;
        }

        .patron-caption {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0,0,0,0.8));
            color: white;
            padding: 20px;
            text-align: center;
        }

        .patron-caption p {
            margin: 0;
            color: white;
        }

        .patron-info {
            margin-top: 25px;
        }

        .patron-quote {
            background: rgba(48, 25, 182, 0.05);
            padding: 20px;
            border-left: 4px solid var(--primary);
            border-radius: 0 8px 8px 0;
            margin-bottom: 25px;
            position: relative;
        }

        .patron-quote i.fa-quote-left {
            color: var(--primary);
            font-size: 1.5rem;
            margin-right: 10px;
            opacity: 0.7;
        }

        .patron-quote p {
            margin: 0;
            font-style: italic;
            color: var(--dark);
        }

        .patron-info h4 {
            color: var(--primary);
            margin-bottom: 15px;
            font-size: 1.2rem;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .about-point,
            .about-point.reverse {
                grid-template-columns: 1fr;
                gap: 30px;
                direction: ltr;
            }

            .about-content {
                flex-direction: column;
                text-align: center;
            }

            .about-icon {
                margin: 0 auto 20px;
            }

            .about-images {
                grid-template-columns: 1fr;
            }

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

            .about-point.patron-section {
                padding: 30px 20px;
                margin: 50px 0;
            }

            .patron-main-img img {
                height: 300px;
            }
        }

        @media (max-width: 480px) {
            .about-section {
                padding: 60px 0;
            }

            .about-point {
                margin-bottom: 60px;
            }

            .about-icon {
                width: 60px;
                height: 60px;
                font-size: 1.5rem;
            }

            .about-text h2 {
                font-size: 1.5rem;
            }
        }

                /* Animaciones para San Chárbel */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        @keyframes shimmer {
            0% {
                background-position: -200px 0;
            }
            100% {
                background-position: 200px 0;
            }
        }
        
        .patron-card, .timeline-item, .feature-item {
            animation: fadeInUp 0.6s ease forwards;
            opacity: 0;
        }
        
        .patron-card:nth-child(1) { animation-delay: 0.1s; }
        .patron-card:nth-child(2) { animation-delay: 0.2s; }
        .patron-card:nth-child(3) { animation-delay: 0.3s; }
        
        .timeline-item:nth-child(1) { animation-delay: 0.4s; }
        .timeline-item:nth-child(2) { animation-delay: 0.5s; }
        .timeline-item:nth-child(3) { animation-delay: 0.6s; }
        .timeline-item:nth-child(4) { animation-delay: 0.7s; }
        .timeline-item:nth-child(5) { animation-delay: 0.8s; }
        
        .prayer-btn:hover {
            background: linear-gradient(135deg, #052a52, #7ab3d0) !important;
            transform: translateY(-2px) !important;
            box-shadow: 0 8px 20px rgba(6, 53, 105, 0.4) !important;
        }
        
        .miracle-header:hover {
            background: #052a52 !important;
        }
        
        .miracle-body {
            animation: fadeInUp 0.3s ease;
        }
        
        /* Efecto de brillo en el botón principal */
        #prayWithSaint {
            position: relative;
            overflow: hidden;
        }
        
        #prayWithSaint::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            animation: shimmer 2s infinite;
        }
        
        /* Responsive para móviles */
        @media (max-width: 768px) {
            .patron-tabs {
                flex-direction: column;
                align-items: stretch;
            }
            
            .patron-tab {
                width: 100%;
                margin-bottom: 10px;
            }
            
            .timeline-items {
                grid-template-columns: 1fr !important;
            }
            
            .patron-cards {
                grid-template-columns: 1fr !important;
            }
            
            .features-grid {
                grid-template-columns: repeat(2, 1fr) !important;
            }
            
            .miracle-stats {
                grid-template-columns: 1fr !important;
            }
            
            .prayer-actions {
                flex-direction: column;
                align-items: stretch;
            }
            
            .prayer-btn {
                width: 100%;
                justify-content: center;
            }
        }
        
        @media (max-width: 480px) {
            .features-grid {
                grid-template-columns: 1fr !important;
            }
            
            .patron-main-img {
                max-width: 100% !important;
            }
        }


        /*/ by GEA.TECH - Notices */

        /* by GEA.TECH - Estilos para Noticias */
.news-banner {
    background: linear-gradient(rgba(6, 53, 105, 0.85), rgba(6, 53, 105, 0.95)), url('../img/news-banner.jpg') no-repeat center center/cover;
}

.filter-btn {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.filter-btn:hover, .filter-btn.active {
    background: white;
    color: var(--primary);
    border-color: white;
    transform: translateY(-2px);
}

/* Grid de Noticias */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.news-card.featured {
    border: 3px solid var(--primary);
    position: relative;
}

.news-card.featured::before {
    content: 'Destacado';
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.news-content {
    padding: 25px;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.news-title {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-card:hover .news-title {
    color: #052a52;
}

.news-excerpt {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.news-tag {
    background: #e4f0f6;
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.news-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.news-actions {
    display: flex;
    gap: 15px;
}

.news-action {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--gray);
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.news-action:hover {
    color: var(--primary);
}

/* Noticias Destacadas */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.featured-news-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.featured-news-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.featured-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-news-card:hover .featured-news-image img {
    transform: scale(1.05);
}

.featured-news-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(6, 53, 105, 0.9));
    color: white;
    padding: 30px;
    transform: translateY(30px);
    transition: transform 0.3s ease;
}

.featured-news-card:hover .featured-news-overlay {
    transform: translateY(0);
}

.featured-news-category {
    background: white;
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.featured-news-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Calendario */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

.calendar-day {
    text-align: center;
    font-weight: 600;
    color: var(--primary);
    padding: 10px 0;
    border-bottom: 2px solid #f0f0f0;
}

.calendar-date {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.calendar-date:hover {
    background: #e4f0f6;
}

.calendar-date.has-event {
    background: var(--primary);
    color: white;
}

.calendar-date.today {
    border: 2px solid var(--primary);
}

.event-dot {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.calendar-date.has-event .event-dot {
    background: white;
}

.event-item {
    background: white;
    border-left: 4px solid var(--primary);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.event-date {
    text-align: center;
    min-width: 60px;
}

.event-day {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.event-month {
    font-size: 0.8rem;
    color: var(--gray);
    text-transform: uppercase;
}

.event-info h4 {
    color: var(--primary);
    margin-bottom: 5px;
}

.event-time {
    color: var(--gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.stat-number {
    animation: countUp 0.5s ease forwards;
}

/* Modal de Noticia Completa */
.news-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    padding: 20px 0;
}

.news-modal-content {
    background: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-news-image {
    height: 400px;
    overflow: hidden;
}

.modal-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-news-body {
    padding: 40px;
}

.modal-news-date {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--gray);
    margin-bottom: 20px;
}

.modal-news-title {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.modal-news-content {
    line-height: 1.8;
    color: var(--dark);
    font-size: 1.05rem;
}

.modal-news-content h3 {
    color: var(--primary);
    margin: 30px 0 15px;
}

.modal-news-content p {
    margin-bottom: 20px;
}

.modal-news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

.modal-news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.news-share {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .news-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        min-width: 100% !important;
    }
    
    .sort-options {
        flex-direction: column;
        align-items: stretch;
        gap: 10px !important;
    }
    
    .news-stats {
        margin-left: 0 !important;
        justify-content: center;
    }
    
    .news-grid, .featured-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .calendar-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 5px;
    }
    
    .calendar-date {
        height: 35px;
        font-size: 0.9rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal-news-body {
        padding: 25px;
    }
    
    .modal-news-title {
        font-size: 1.5rem;
    }
    
    .newsletter-subscription {
        padding: 30px 20px !important;
    }
    
    #newsletterForm {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .news-filters {
        gap: 10px;
    }
    
    .calendar-date {
        height: 30px;
        font-size: 0.8rem;
    }
    
    .event-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .event-date {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .event-day {
        font-size: 1.2rem;
    }
}
        

/* by GEA.TECH Gallery modals //
/* by GEA.TECH - Animaciones Dinámicas para Galería */
.gallery-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

/* Animación escalonada para los items */
.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }
.gallery-item:nth-child(7) { animation-delay: 0.7s; }
.gallery-item:nth-child(8) { animation-delay: 0.8s; }
.gallery-item:nth-child(9) { animation-delay: 0.9s; }
.gallery-item:nth-child(10) { animation-delay: 1.0s; }
.gallery-item:nth-child(11) { animation-delay: 1.1s; }
.gallery-item:nth-child(12) { animation-delay: 1.2s; }
.gallery-item:nth-child(13) { animation-delay: 1.3s; }
.gallery-item:nth-child(14) { animation-delay: 1.4s; }
.gallery-item:nth-child(15) { animation-delay: 1.5s; }
.gallery-item:nth-child(16) { animation-delay: 1.6s; }
.gallery-item:nth-child(17) { animation-delay: 1.7s; }
.gallery-item:nth-child(18) { animation-delay: 1.8s; }
.gallery-item:nth-child(19) { animation-delay: 1.9s; }
.gallery-item:nth-child(20) { animation-delay: 2.0s; }
.gallery-item:nth-child(21) { animation-delay: 2.1s; }
.gallery-item:nth-child(22) { animation-delay: 2.2s; }
.gallery-item:nth-child(23) { animation-delay: 2.3s; }
.gallery-item:nth-child(24) { animation-delay: 2.4s; }

/* Efecto de zoom al pasar el cursor */
.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(9, 53, 105, 0.1), rgba(154, 199, 219, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
    border-radius: 12px;
}

.gallery-item:hover::before {
    opacity: 1;
}

/* Indicador de clic */
.gallery-item::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 2rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.gallery-item:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Efecto de brillo al hover */
.gallery-item:hover img {
    filter: brightness(1.1) contrast(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Animación de entrada para videos */
.video-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.video-item:nth-child(1) { animation-delay: 0.2s; }
.video-item:nth-child(2) { animation-delay: 0.4s; }

/* Animación de pulsación para botón de play */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.video-play-overlay i {
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
}

.video-item:hover .video-play-overlay i {
    animation: none;
    transform: scale(1.2);
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Filtro de categorías */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
}

.filter-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(6, 53, 105, 0.2);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
}

/* Contador de imágenes */
.gallery-counter {
    text-align: center;
    margin: 20px 0 40px;
    font-size: 1.1rem;
    color: var(--dark);
    font-weight: 500;
}

.gallery-counter span {
    color: var(--primary);
    font-weight: 700;
}

/* Animación de carga */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.gallery-item.loading img {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .gallery-item::after {
        font-size: 1.5rem;
    }
}

/* by GEA.TECH - Shop modals */

/* Efectos extra para tienda */
.product-image {
    position: relative;
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-card:hover .product-image::before {
    opacity: 1;
}

/* Efecto de precio */
.product-price {
    position: relative;
    display: inline-block;
}

.product-price::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: center;
}

.product-card:hover .product-price::after {
    transform: scaleX(1);
}

/* Efecto de icono en botón */
.btn-add-to-cart i {
    transition: transform 0.3s ease;
}

.btn-add-to-cart:hover i {
    transform: translateX(3px);
}

/* Efecto de carga en modal */
.modal-content.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content.loading::after {
    content: 'Cargando...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 101;
    color: var(--primary);
    font-weight: bold;
}

/* Efecto de éxito en compra */
.success-checkmark {
    animation: checkmarkPop 0.5s ease;
}

@keyframes checkmarkPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    70% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Efecto de scroll suave para productos */
.products-grid {
    scroll-behavior: smooth;
}

/* Efecto de sombra dinámica en productos */
@keyframes shadowFloat {
    0%, 100% {
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    50% {
        box-shadow: 0 8px 25px rgba(6, 53, 105, 0.15);
    }
}

.product-card {
    animation: shadowFloat 3s infinite ease-in-out;
}

/* Efecto de etiqueta "Nuevo" */
.new-badge {
    animation: newPulse 2s infinite;
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
}

@keyframes newPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    }
}

/* Efecto de contador de stock */
.stock-progress {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
}

.stock-progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    transition: width 1s ease;
    animation: progressGlow 2s infinite;
}

@keyframes progressGlow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* by GEA.TECH - Animaciones Dinámicas para Tienda Solidaria */
.shop-banner {
    position: relative;
    overflow: hidden;
}

.shop-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(6, 53, 105, 0.9), rgba(154, 199, 219, 0.8));
    animation: gradientShift 8s ease infinite alternate;
    z-index: 1;
}

.shop-banner .container {
    position: relative;
    z-index: 2;
}

@keyframes gradientShift {
    0% {
        background: linear-gradient(135deg, rgba(6, 53, 105, 0.9), rgba(154, 199, 219, 0.8));
    }
    50% {
        background: linear-gradient(135deg, rgba(9, 53, 105, 0.85), rgba(154, 199, 219, 0.85));
    }
    100% {
        background: linear-gradient(135deg, rgba(6, 53, 105, 0.95), rgba(154, 199, 219, 0.75));
    }
}

/* Animación de entrada para productos */
.product-card {
    animation: slideUpProduct 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(7) { animation-delay: 0.7s; }
.product-card:nth-child(8) { animation-delay: 0.8s; }
.product-card:nth-child(9) { animation-delay: 0.9s; }

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

/* Efectos hover mejorados */
.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(6, 53, 105, 0.2), rgba(154, 199, 219, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-card:hover .product-image::after {
    opacity: 1;
}

/* Badges animados */
.product-badge {
    animation: badgePulse 2s infinite;
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.3);
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 204, 0, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(255, 204, 0, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 204, 0, 0.3);
    }
}

/* Botón de añadir al carrito */
.btn-add-to-cart {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-add-to-cart::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-add-to-cart:hover::before {
    width: 300px;
    height: 300px;
}

.btn-add-to-cart:active {
    transform: scale(0.95);
}

/* Carrito flotante con animación */
.cart-floating {
    animation: floatIn 0.5s ease-out;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(100px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cart-icon {
    animation: cartBounce 2s infinite;
}

@keyframes cartBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.cart-count {
    animation: countPop 0.3s ease;
}

@keyframes countPop {
    0% {
        transform: scale(0);
    }
    70% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

/* Modal animations */
.modal {
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

.modal-content {
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* QR Code animation */
.qr-code {
    animation: qrGlow 3s infinite alternate;
    transition: transform 0.3s ease;
}

.qr-code:hover {
    transform: scale(1.05);
}

@keyframes qrGlow {
    from {
        box-shadow: 0 5px 20px rgba(6, 53, 105, 0.2);
    }
    to {
        box-shadow: 0 8px 30px rgba(6, 53, 105, 0.4);
    }
}

/* Loading skeleton para productos */
.product-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 10px;
}

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

/* Filtros con efecto ripple */
.category-btn {
    position: relative;
    overflow: hidden;
}

.category-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.category-btn:active::after {
    width: 200px;
    height: 200px;
}

/* Estrellas de valoración */
.rating-stars {
    display: flex;
    gap: 2px;
    margin: 10px 0;
}

.star {
    color: #ffd700;
    font-size: 0.9rem;
    animation: starTwinkle 2s infinite;
}

.star:nth-child(1) { animation-delay: 0.1s; }
.star:nth-child(2) { animation-delay: 0.2s; }
.star:nth-child(3) { animation-delay: 0.3s; }
.star:nth-child(4) { animation-delay: 0.4s; }
.star:nth-child(5) { animation-delay: 0.5s; }

@keyframes starTwinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.9);
    }
}

/* Contador de productos en stock */
.stock-counter {
    display: inline-block;
    padding: 4px 10px;
    background: #e4f0f6;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    animation: stockPulse 3s infinite;
}

@keyframes stockPulse {
    0%, 100% {
        background: #e4f0f6;
    }
    50% {
        background: #d0e4ed;
    }
}

/* Efecto de escasez */
.low-stock {
    animation: lowStockWarning 2s infinite;
}

@keyframes lowStockWarning {
    0%, 100% {
        color: #e74c3c;
    }
    50% {
        color: #ff6b6b;
    }
}

/* Scroll reveal para secciones */
.shop-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.shop-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-card {
        animation-duration: 0.4s;
    }
    
    .cart-icon {
        animation: none;
    }
    
    .modal-content {
        animation: modalSlideUpMobile 0.3s ease;
    }
    
    @keyframes modalSlideUpMobile {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media (max-width: 480px) {
    .product-card:hover {
        transform: translateY(-5px);
    }
    
    .category-btn:active::after {
        width: 100px;
        height: 100px;
    }
}