/* Color verde original sólido */
.cafescor-gradient {
    background-color: #087c47;
}

/* Color verde original sólido para elementos estáticos */
.cafescor-gradient-static {
    background-color: #087c47;
}

body {
    font-family: 'League Spartan', Arial, sans-serif !important;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1)), linear-gradient(rgba(255, 255, 255, 0.9), rgba(209, 250, 229, 0.8)), url('../img/fondo-caf.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-sans {
    font-family: 'League Spartan', Arial, sans-serif !important;
}

/* Clase específica para la página de inicio (sin fondo) */
body.index-page {
    background: #f0fdf4;
    background-size: auto;
    background-position: auto;
    background-repeat: auto;
}

.card {
    background-color: #f0fdf4;
    border: 1.5px solid #10b981;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.3);
    transform: translateY(-4px);
}

a:hover {
    color: #7a4f28;
}

/* Header y Footer con color verde original */
header,
footer {
    background-color: #087c47;
}

header a,
footer a {
    color: #ffffff;
}

header a:hover,
footer a:hover {
    color: #d1fae5;
}

/* ===== NUEVOS ESTILOS PARA ELEMENTOS VISUALES ===== */

/* Iconos decorativos para títulos */
.title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #f2c67a, #e6b85c);
    border-radius: 50%;
    margin-right: 1rem;
    box-shadow: 0 4px 15px rgba(242, 198, 122, 0.4);
    transition: all 0.3s ease;
}

.title-icon i {
    font-size: 1.5rem;
    color: #4b342e;
    transition: all 0.3s ease;
}

.title-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(242, 198, 122, 0.6);
}

.title-icon:hover i {
    transform: scale(1.2);
}

/* Títulos con iconos */
.title-with-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.title-with-icon h2 {
    margin: 0;
    background: linear-gradient(135deg, #4b342e, #7a4f28);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Tarjetas con iconos destacados */
.feature-card {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border: 2px solid #10b981;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(242, 198, 122, 0.1), transparent);
    transition: left 0.6s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.25);
    border-color: #059669;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #f2c67a, #e6b85c);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 20px rgba(242, 198, 122, 0.4);
    transition: all 0.4s ease;
    position: relative;
}

.feature-icon i {
    font-size: 2rem;
    color: #4b342e;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 8px 25px rgba(242, 198, 122, 0.6);
}

.feature-card:hover .feature-icon i {
    transform: scale(1.2);
    animation: icon-pulse 1s ease infinite;
}

@keyframes icon-pulse {

    0%,
    100% {
        transform: scale(1.2);
    }

    50% {
        transform: scale(1.3);
    }
}

/* Efecto de resplandor para iconos */
.feature-icon::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #f2c67a, #e6b85c, #f8d08a);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover .feature-icon::after {
    opacity: 0.6;
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Grid de características */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

/* Badges informativos */
.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #f2c67a, #e6b85c);
    color: #4b342e;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(242, 198, 122, 0.3);
    transition: all 0.3s ease;
}

.info-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(242, 198, 122, 0.4);
}

.info-badge i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.info-badge:hover i {
    transform: scale(1.2);
}

/* Separadores decorativos */
.decorative-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    gap: 1rem;
}

.decorative-divider::before,
.decorative-divider::after {
    content: '';
    height: 2px;
    flex: 1;
    background: linear-gradient(90deg, transparent, #d7b89d, transparent);
}

.decorative-divider i {
    color: #7a4f28;
    font-size: 1.5rem;
    animation: divider-bounce 2s ease-in-out infinite;
}

@keyframes divider-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Mejoras en las tarjetas de servicios existentes */
.servicios-card {
    position: relative;
    overflow: hidden;
}

.servicios-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(242, 198, 122, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.servicios-card:hover::before {
    left: 100%;
}

.servicios-contenido {
    position: relative;
    z-index: 2;
}

/* Iconos para las tarjetas de servicios */
.servicios-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #f2c67a, #e6b85c);
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(242, 198, 122, 0.4);
    transition: all 0.3s ease;
    z-index: 3;
}

.servicios-icon i {
    font-size: 1.2rem;
    color: #4b342e;
    transition: all 0.3s ease;
}

.servicios-card:hover .servicios-icon {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 5px 15px rgba(242, 198, 122, 0.6);
}

.servicios-card:hover .servicios-icon i {
    transform: scale(1.3);
}

/* Estilos para listas con iconos */
.icon-list {
    list-style: none;
    padding: 0;
}

.icon-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(215, 184, 157, 0.3);
    transition: all 0.3s ease;
}

.icon-list li:last-child {
    border-bottom: none;
}

.icon-list li:hover {
    background: rgba(242, 198, 122, 0.1);
    padding-left: 1rem;
    border-radius: 0.5rem;
}

.icon-list i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #f2c67a, #e6b85c);
    border-radius: 50%;
    color: #4b342e;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.icon-list li:hover i {
    transform: scale(1.2) rotate(5deg);
    box-shadow: 0 3px 10px rgba(242, 198, 122, 0.4);
}

/* Estilos profesionales para los botones de navegación */
.nav-button {
    position: relative;
    padding: 0.5rem 1rem;
    font-weight: 600;
    color: #f3e6d6;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
}

/* Estilos mejorados para los iconos de navegación */
.nav-button i {
    font-size: 0.9em;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-block;
}

.nav-button:hover i {
    transform: scale(1.2) rotate(5deg);
    color: #f2c67a;
    text-shadow: 0 0 8px rgba(242, 198, 122, 0.6);
}

.nav-button.active i {
    transform: scale(1.1);
    color: #4b342e;
    text-shadow: 0 0 6px rgba(75, 52, 46, 0.4);
}

/* Efectos específicos para diferentes iconos */
.nav-button .fa-home:hover {
    animation: home-bounce 0.8s ease infinite;
}

.nav-button .fa-users:hover {
    animation: users-group 1s ease infinite;
}

.nav-button .fa-cogs:hover {
    animation: cogs-spin 1.2s ease infinite;
}

.nav-button .fa-seedling:hover {
    animation: seedling-grow 1.2s ease infinite;
}

.nav-button .fa-leaf:hover {
    animation: leaf-grow 1.2s ease infinite;
}

.nav-button .fa-newspaper:hover {
    animation: newspaper-flip 0.8s ease infinite;
}

.nav-button .fa-envelope:hover {
    animation: envelope-bounce 0.6s ease infinite;
}

@keyframes seedling-grow {

    0%,
    100% {
        transform: scale(1.2) rotate(5deg);
    }

    25% {
        transform: scale(1.3) rotate(8deg) translateY(-2px);
    }

    50% {
        transform: scale(1.4) rotate(10deg) translateY(-4px);
    }

    75% {
        transform: scale(1.3) rotate(8deg) translateY(-2px);
    }
}

@keyframes leaf-grow {
    0% {
        transform: scale(1.2) rotate(5deg);
    }

    25% {
        transform: scale(1.3) rotate(10deg);
    }

    50% {
        transform: scale(1.4) rotate(15deg);
    }

    75% {
        transform: scale(1.3) rotate(10deg);
    }

    100% {
        transform: scale(1.2) rotate(5deg);
    }
}

/* Animaciones mejoradas para los iconos */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: scale(1.2) rotate(5deg) translateY(0);
    }

    40% {
        transform: scale(1.2) rotate(5deg) translateY(-4px);
    }

    60% {
        transform: scale(1.2) rotate(5deg) translateY(-2px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1.2) rotate(5deg);
    }

    50% {
        transform: scale(1.4) rotate(5deg);
    }

    100% {
        transform: scale(1.2) rotate(5deg);
    }
}

@keyframes spin {
    from {
        transform: scale(1.2) rotate(5deg) rotate(0deg);
    }

    to {
        transform: scale(1.2) rotate(5deg) rotate(360deg);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: scale(1.2) rotate(5deg) translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: scale(1.2) rotate(5deg) translateX(-3px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: scale(1.2) rotate(5deg) translateX(3px);
    }
}

@keyframes flip {
    0% {
        transform: scale(1.2) rotate(5deg) rotateY(0deg);
    }

    50% {
        transform: scale(1.2) rotate(5deg) rotateY(180deg);
    }

    100% {
        transform: scale(1.2) rotate(5deg) rotateY(360deg);
    }
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.nav-button:hover::before {
    left: 100%;
}

.nav-button:hover {
    color: #f2c67a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    border-color: rgba(242, 198, 122, 0.3);
}

.nav-button.active {
    background: linear-gradient(135deg, #f2c67a, #e6b85c);
    color: #4b342e;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(242, 198, 122, 0.3);
}

.nav-button.active:hover {
    background: linear-gradient(135deg, #f8d08a, #e6b85c);
    transform: translateY(-1px);
}

/* Efecto de resplandor para el botón activo */
.nav-button.active::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #f2c67a, #e6b85c, #f2c67a);
    border-radius: 10px;
    z-index: -1;
    opacity: 0.7;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        opacity: 0.7;
    }

    to {
        opacity: 1;
    }
}

/* Responsive para los botones */
@media (max-width: 768px) {
    .nav-button {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    /* Logo responsivo para móviles */
    .logo-link {
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .logo-link img {
        height: 2rem;
    }

    .logo-link span {
        font-size: 0.875rem;
    }
}

/* Estilos para el contenedor de navegación */
.nav-container {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

/* Efecto de hover para el logo */
/* Estilos profesionales para el logo */
.logo-link {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.logo-link:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 255, 255, 0.2);
}

.logo-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
    border-radius: 12px;
}

.logo-link:hover::before {
    left: 100%;
}

/* Estilos específicos para la imagen del logo */
.logo-link img {
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-link:hover img {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2)) brightness(1.1);
    transform: scale(1.05);
}

/* Estilos para el texto del logo */
.logo-link span {
    font-weight: 700;
    background: linear-gradient(135deg, #f3e6d6, #f2c67a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.logo-link:hover span {
    background: linear-gradient(135deg, #f8d08a, #f2c67a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Estilos para el botón CTA principal */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #4b342e;
    text-decoration: none;
    background: linear-gradient(135deg, #f2c67a, #e6b85c);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(242, 198, 122, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cta-button i {
    font-size: 1.1em;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-block;
}

.cta-button:hover i {
    transform: scale(1.3) rotate(10deg);
    animation: handshake 1.2s ease infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@keyframes handshake {

    0%,
    100% {
        transform: scale(1.3) rotate(10deg);
    }

    25% {
        transform: scale(1.3) rotate(-5deg);
    }

    50% {
        transform: scale(1.3) rotate(15deg);
    }

    75% {
        transform: scale(1.3) rotate(-10deg);
    }
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(242, 198, 122, 0.6);
    background: linear-gradient(135deg, #f8d08a, #f2c67a);
    color: #3d2a1f;
}

.cta-button:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(242, 198, 122, 0.5);
}

/* Efecto de resplandor para el botón CTA */
.cta-button::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #f2c67a, #e6b85c, #f8d08a, #f2c67a);
    border-radius: 15px;
    z-index: -1;
    opacity: 0.8;
    animation: cta-glow 3s ease-in-out infinite;
}

@keyframes cta-glow {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }
}

/* Estilos para el grid de tarjetas - 2x2 layout */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    padding: 1rem 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .servicios-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

/* Estilo general de cada tarjeta */
.servicios-card {
    background-color: #fff8f1;
    border: 1.5px solid #d7b89d;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(143, 101, 64, 0.15);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

/* Efecto hover en tarjeta */
.servicios-card:hover {
    box-shadow: 0 8px 30px rgba(143, 101, 64, 0.3);
    transform: translateY(-4px);
}

/* Imagen dentro de tarjeta */
.servicios-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1.5px solid #d7b89d;
}

/* Contenido de texto */
.servicios-contenido {
    padding: 1rem;
    text-align: center;
}

/* Título de servicio */
.servicios-titulo {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0.5rem 0;
    color: #4b342e;
}

/* Descripción */
.servicios-descripcion {
    font-size: 1rem;
    color: #6f4e37;
}

/* Animaciones para iconos de botones "Ver más" y "Volver" */
.ver-mas-button i,
.back-link i {
    transition: all 0.3s ease;
}

.ver-mas-button:hover i,
.back-link:hover i {
    transform: translateX(3px);
}

/* Animaciones específicas para diferentes iconos */
.ver-mas-button .fa-trophy:hover {
    animation: trophy-shine 0.8s ease infinite;
}

.ver-mas-button .fa-medal:hover {
    animation: medal-spin 1s ease infinite;
}

.ver-mas-button .fa-child:hover {
    animation: child-bounce 0.6s ease infinite;
}

.ver-mas-button .fa-graduation-cap:hover {
    animation: graduation-toss 0.8s ease infinite;
}

.ver-mas-button .fa-users:hover {
    animation: users-pulse 1s ease infinite;
}

.ver-mas-button .fa-eye:hover {
    animation: eye-look 0.8s ease infinite;
}

.back-link .fa-undo:hover {
    animation: undo-rotate 0.8s ease infinite;
}

/* Keyframes para las animaciones */
@keyframes trophy-shine {

    0%,
    100% {
        transform: translateX(3px) scale(1);
    }

    50% {
        transform: translateX(3px) scale(1.2);
    }
}

@keyframes medal-spin {
    0% {
        transform: translateX(3px) rotate(0deg);
    }

    100% {
        transform: translateX(3px) rotate(360deg);
    }
}

@keyframes child-bounce {

    0%,
    100% {
        transform: translateX(3px) translateY(0);
    }

    50% {
        transform: translateX(3px) translateY(-3px);
    }
}

@keyframes graduation-toss {

    0%,
    100% {
        transform: translateX(3px) rotate(0deg);
    }

    50% {
        transform: translateX(3px) rotate(15deg);
    }
}

@keyframes users-pulse {

    0%,
    100% {
        transform: translateX(3px) scale(1);
    }

    50% {
        transform: translateX(3px) scale(1.1);
    }
}

@keyframes eye-look {

    0%,
    100% {
        transform: translateX(3px) scale(1);
    }

    50% {
        transform: translateX(6px) scale(1.1);
    }
}

@keyframes undo-rotate {

    0%,
    100% {
        transform: translateX(-3px) rotate(0deg);
    }

    50% {
        transform: translateX(-6px) rotate(-15deg);
    }
}

/* Keyframes para animaciones de navegación */
@keyframes home-bounce {

    0%,
    100% {
        transform: scale(1.2) rotate(5deg);
    }

    50% {
        transform: scale(1.3) rotate(-5deg);
    }
}

@keyframes users-group {

    0%,
    100% {
        transform: scale(1.2) rotate(5deg);
    }

    25% {
        transform: scale(1.3) rotate(10deg);
    }

    50% {
        transform: scale(1.4) rotate(15deg);
    }

    75% {
        transform: scale(1.3) rotate(10deg);
    }
}

@keyframes cogs-spin {
    0% {
        transform: scale(1.2) rotate(5deg);
    }

    100% {
        transform: scale(1.2) rotate(365deg);
    }
}

@keyframes newspaper-flip {

    0%,
    100% {
        transform: scale(1.2) rotate(5deg);
    }

    50% {
        transform: scale(1.3) rotate(-5deg);
    }
}

@keyframes envelope-bounce {

    0%,
    100% {
        transform: scale(1.2) rotate(5deg);
    }

    50% {
        transform: scale(1.3) translateY(-3px);
    }
}

/* Estilos para Instagram Feed compacto */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== OPTIMIZACIONES PARA HEADER EN MÓVILES ===== */

/* Header más compacto en móviles */
@media (max-width: 768px) {
    header {
        padding: 0.5rem 0;
    }

    header nav {
        padding: 0.25rem 0.5rem;
    }

    /* Logo más pequeño en móviles */
    .logo-link {
        padding: 0.25rem 0.5rem;
        gap: 0.25rem;
    }

    .logo-link img {
        height: 1.75rem;
    }

    .logo-link span {
        font-size: 0.75rem;
    }

    /* Navegación más compacta */
    .nav-container {
        gap: 0.2rem;
        margin-top: 0.5rem;
    }

    .nav-button {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
        min-width: auto;
    }

    .nav-button i {
        font-size: 0.7rem;
        margin-right: 0.25rem;
    }

    /* Reducir espaciado general del header */
    header.sticky {
        min-height: auto;
    }
}

/* Header ultra compacto para pantallas muy pequeñas */
@media (max-width: 480px) {
    header nav {
        padding: 0.125rem 0.25rem;
    }

    .logo-link {
        padding: 0.125rem 0.25rem;
    }

    .logo-link img {
        height: 1.5rem;
    }

    .logo-link span {
        font-size: 0.65rem;
    }

    .nav-container {
        margin-top: 0.25rem;
        gap: 0.1rem;
    }

    .nav-button {
        padding: 0.125rem 0.25rem;
        font-size: 0.6rem;
    }

    .nav-button i {
        font-size: 0.6rem;
        margin-right: 0.125rem;
    }
}

/* Optimización para orientación landscape en móviles */
@media (max-width: 768px) and (orientation: landscape) {
    header {
        padding: 0.25rem 0;
    }

    header nav {
        padding: 0.125rem 0.25rem;
    }

    .nav-container {
        margin-top: 0.25rem;
    }
}

/* ===== MENÚ DESPLEGABLE PARA MÓVILES ===== */

/* Botón hamburger */
.hamburger-button {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
    position: relative;
}

.hamburger-button span {
    width: 2rem;
    height: 0.25rem;
    background: #ffffff;
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* Animación del botón hamburger */
.hamburger-button.active span:first-child {
    transform: rotate(45deg);
}

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

.hamburger-button.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Menú desplegable */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #087c47;
    backdrop-filter: blur(10px);
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 0 30px rgba(8, 124, 71, 0.3);
}

.mobile-menu.active {
    display: block !important;
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Estilos para el logo en el menú móvil */
.mobile-menu-header .flex {
    color: #ffffff;
}

.mobile-menu-header span {
    color: #ffffff !important;
    font-weight: 700;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #d1fae5;
    transform: scale(1.1);
}

.mobile-menu-nav {
    padding: 2rem 1rem;
}

.mobile-menu-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-nav li {
    margin-bottom: 1rem;
}

.mobile-menu-nav a {
    display: flex;
    align-items: center;
    padding: 1rem;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a.active {
    background: rgba(255, 255, 255, 0.2);
    color: #d1fae5;
    transform: translateX(0.5rem);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    border-left: 3px solid #ffffff;
}

.mobile-menu-nav i {
    margin-right: 1rem;
    font-size: 1.2rem;
    width: 1.5rem;
    text-align: center;
}

/* Overlay para cerrar el menú */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Mostrar menú hamburger en móviles */
@media (max-width: 768px) {
    .hamburger-button {
        display: flex !important;
    }

    .nav-container {
        display: none !important;
    }

    .mobile-menu {
        display: none;
    }

    .mobile-menu.active {
        display: block !important;
    }
}

/* Ocultar menú hamburger en desktop */
@media (min-width: 769px) {
    .hamburger-button {
        display: none;
    }

    .nav-container {
        display: flex;
    }

    .mobile-menu {
        display: none;
    }
}