/* ============================================
   ANIMACIONES PROFESIONALES PARA PORTAFOLIO
   ============================================ */

/* Variables CSS para animaciones */
:root {
    --animation-speed-fast: 0.2s;
    --animation-speed-normal: 0.3s;
    --animation-speed-slow: 0.5s;
    --animation-speed-slower: 0.8s;
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

/* ============================================
   LIGHTBOX PARA IMÁGENES DE PROYECTOS
   ============================================ */

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    margin: auto;
    animation: scaleIn 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: block;
    cursor: default;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.lightbox-close:hover {
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-title {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1.25rem;
    text-align: center;
    white-space: nowrap;
}

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

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

.project-image {
    cursor: pointer;
    position: relative;
    z-index: 30;
}

.project-image:hover {
    opacity: 0.9;
}

/* ============================================
   ANIMACIONES DE ENTRADA
   ============================================ */

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

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

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

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

/* Animación de texto tipo escritura */
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blinkCursor {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: #004aad;
    }
}

/* ============================================
   EFECTOS GLASSMORPHISM
   ============================================ */

.glass-effect {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-effect-light {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============================================
   EFECTOS HOVER AVANZADOS
   ============================================ */

.hover-lift {
    transition: all var(--animation-speed-normal) var(--ease-smooth);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 74, 173, 0.3);
}

.hover-glow {
    transition: all var(--animation-speed-normal) var(--ease-smooth);
    position: relative;
}

.hover-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(45deg, #004aad, #0066cc, #004aad);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--animation-speed-normal);
}

.hover-glow:hover::before {
    opacity: 1;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

.hover-shine {
    position: relative;
    overflow: hidden;
}

.hover-shine::after {
    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 var(--animation-speed-slow);
}

.hover-shine:hover::after {
    left: 100%;
}

/* ============================================
   EFECTOS DE TARJETAS
   ============================================ */

.card-3d {
    transform-style: preserve-3d;
    transition: transform var(--animation-speed-normal) var(--ease-smooth);
}

.card-3d:hover {
    transform: perspective(1000px) rotateY(5deg) rotateX(-5deg) scale(1.02);
}

.card-gradient-border {
    position: relative;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
    border-radius: 1rem;
    padding: 2px;
}

.card-gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #004aad, #0066cc, #0052a3);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--animation-speed-normal);
}

.card-gradient-border:hover::before {
    opacity: 1;
}

/* ============================================
   EFECTOS DE BOTONES
   ============================================ */

.btn-magnetic {
    position: relative;
    transition: all var(--animation-speed-normal) var(--ease-smooth);
}

.btn-magnetic:hover {
    transform: scale(1.05);
}

.btn-ripple {
    position: relative;
    overflow: hidden;
}

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

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}

.btn-gradient {
    background: linear-gradient(135deg, #004aad, #0066cc);
    background-size: 200% 200%;
    transition: background-position var(--animation-speed-slow);
}

.btn-gradient:hover {
    background-position: right center;
    box-shadow: 0 10px 30px rgba(0, 74, 173, 0.4);
}

/* ============================================
   EFECTOS DE TEXTO
   ============================================ */

.text-gradient {
    color: #ffffff;
    position: relative;
    display: inline-block;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.text-shimmer {
    background: linear-gradient(90deg, #fff 0%, #004aad 50%, #fff 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

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

/* ============================================
   EFECTOS DE SCROLL
   ============================================ */

.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s var(--ease-smooth);
}

/* Solo animar si JavaScript está activo */
.js-enabled .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
}

.js-enabled .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.8s var(--ease-smooth);
}

.js-enabled .scroll-reveal-left {
    opacity: 0;
    transform: translateX(-30px);
}

.js-enabled .scroll-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.8s var(--ease-smooth);
}

.js-enabled .scroll-reveal-right {
    opacity: 0;
    transform: translateX(30px);
}

.js-enabled .scroll-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   EFECTOS DE PARTÍCULAS
   ============================================ */

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 74, 173, 0.3), transparent);
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    50% {
        transform: translate(100px, -100px) scale(1.5);
    }
}

/* ============================================
   CURSOR PERSONALIZADO
   ============================================ */

.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid #004aad;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease, opacity 0.2s ease;
    transform: translate(-50%, -50%);
}

.custom-cursor-dot {
    width: 6px;
    height: 6px;
    background: #004aad;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    transform: translate(-50%, -50%);
}

.custom-cursor.hover {
    transform: translate(-50%, -50%) scale(1.5);
    background: rgba(0, 74, 173, 0.1);
}

/* ============================================
   EFECTOS DE LOADING
   ============================================ */

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 74, 173, 0.1);
    border-top-color: #004aad;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   UTILIDADES
   ============================================ */

.animate-fade-in-up {
    animation: fadeInUp 0.8s var(--ease-smooth) forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.8s var(--ease-smooth) forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s var(--ease-smooth) forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s var(--ease-smooth) forwards;
}

.animate-scale-in {
    animation: scaleIn 0.5s var(--ease-bounce) forwards;
}

.animate-slide-in-up {
    animation: slideInUp 0.8s var(--ease-smooth) forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   DISEÑO FLUIDO Y ADAPTATIVO
   ============================================ */

:root {
    --fluid-min: 320px;
    --fluid-max: 1920px;
    --fluid-ratio: 1.2;
}

/* ============================================
   ESTILOS PARA PC (Desktop) - Valores fijos
   ============================================ */

/* Título principal - PC */
.fluid-title {
    font-size: 4.5rem;
    line-height: 1.1;
}

/* Texto descriptivo - PC */
.fluid-text {
    font-size: 1.5rem;
    line-height: 1.6;
}

/* Padding - PC */
.fluid-padding {
    padding: 3rem;
}

.fluid-padding-x {
    padding-left: 2rem;
    padding-right: 2rem;
}

.fluid-padding-y {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Gap - PC */
.fluid-gap {
    gap: 2rem;
}

/* Gap específico para badges de tecnologías en proyectos - PC */
.flex.flex-wrap.fluid-gap {
    gap: 0.5rem;
}

/* Espaciado - PC */
.fluid-space-y {
    margin-top: 2rem;
}

/* Tamaño de fuente para cards - PC */
.fluid-card-title {
    font-size: 1.25rem;
}

.fluid-card-text {
    font-size: 1rem;
}

/* Badge - PC */
.fluid-badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.625rem;
    line-height: 1.2;
    white-space: nowrap;
}

/* Botón - PC */
.fluid-button {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
}

/* Navbar - PC */
.fluid-nav {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Grid adaptativo - PC */
.fluid-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 1200px) {
    .fluid-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Perfil móvil - PC (no se usa en PC pero por si acaso) */
.fluid-profile-img {
    width: 8rem;
    height: 8rem;
}

.fluid-profile-name {
    font-size: 1.5rem;
}

.fluid-profile-title {
    font-size: 1.125rem;
}

/* Footer - PC */
.fluid-footer {
    padding: 2rem;
    font-size: 1rem;
}

/* Círculos de fondo - PC */
.fluid-circle {
    width: 24rem;
    height: 24rem;
}

/* Tecnologías - PC */
.fluid-tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.fluid-tech-text {
    font-size: 1rem;
}

/* Altura de imagen - PC */
.fluid-image-height {
    height: 18rem;
    min-height: 18rem;
}

/* Formulario - PC */
.fluid-form-input {
    font-size: 1rem;
    padding: 0.75rem 1rem;
}

.fluid-form-label {
    font-size: 0.875rem;
}

/* ============================================
   ESTILOS PARA MÓVIL - Valores fluidos
   ============================================ */

@media (max-width: 768px) {
    /* Título principal fluido - Móvil */
.fluid-title {
    font-size: clamp(2rem, 5vw + 1rem, 4.5rem);
    line-height: 1.1;
}

    /* Texto descriptivo fluido - Móvil */
.fluid-text {
    font-size: clamp(0.875rem, 2vw + 0.5rem, 1.5rem);
    line-height: 1.6;
}

    /* Padding fluido - Móvil */
.fluid-padding {
    padding: clamp(1rem, 4vw, 3rem);
}

.fluid-padding-x {
    padding-left: clamp(1rem, 4vw, 2rem);
    padding-right: clamp(1rem, 4vw, 2rem);
}

.fluid-padding-y {
    padding-top: clamp(2rem, 6vw, 5rem);
    padding-bottom: clamp(2rem, 6vw, 5rem);
}

    /* Gap fluido - Móvil */
.fluid-gap {
    gap: clamp(1rem, 3vw, 2rem);
}

    /* Gap específico para badges de tecnologías en proyectos - Móvil */
    .flex.flex-wrap.fluid-gap {
        gap: clamp(0.5rem, 1.5vw, 0.75rem);
    }

    /* Espaciado fluido - Móvil */
.fluid-space-y {
    margin-top: clamp(1rem, 3vw, 2rem);
}

    /* Tamaño de fuente fluido para cards - Móvil */
.fluid-card-title {
    font-size: clamp(1rem, 2.5vw + 0.5rem, 1.25rem);
}

.fluid-card-text {
    font-size: clamp(0.75rem, 1.5vw + 0.5rem, 1rem);
}

    /* Badge fluido - Móvil */
.fluid-badge {
    font-size: clamp(0.625rem, 1.2vw + 0.4rem, 0.875rem);
    padding: clamp(0.25rem, 0.8vw, 0.5rem) clamp(0.5rem, 1.5vw, 0.75rem);
}

    /* Botón fluido - Móvil */
.fluid-button {
    font-size: clamp(0.75rem, 1.5vw + 0.5rem, 1rem);
    padding: clamp(0.5rem, 1.2vw, 0.75rem) clamp(1rem, 2.5vw, 1.5rem);
}

    /* Navbar fluido - Móvil */
.fluid-nav {
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1rem, 3vw, 2rem);
    font-size: clamp(0.875rem, 1.8vw + 0.5rem, 1.125rem);
}

    /* Grid adaptativo fluido - Móvil */
.fluid-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: clamp(1rem, 3vw, 2rem);
}

/* Perfil móvil fluido */
.fluid-profile-img {
    width: clamp(5rem, 15vw, 8rem);
    height: clamp(5rem, 15vw, 8rem);
}

.fluid-profile-name {
    font-size: clamp(1.125rem, 3vw + 0.5rem, 1.5rem);
}

.fluid-profile-title {
    font-size: clamp(0.875rem, 2vw + 0.5rem, 1.125rem);
}

    /* Footer fluido - Móvil */
.fluid-footer {
    padding: clamp(1rem, 3vw, 2rem);
    font-size: clamp(0.75rem, 1.5vw + 0.5rem, 1rem);
}

    /* Círculos de fondo adaptativos - Móvil */
.fluid-circle {
    width: clamp(12rem, 40vw, 24rem);
    height: clamp(12rem, 40vw, 24rem);
}

    /* Tecnologías fluido - Móvil */
.fluid-tech-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: clamp(0.5rem, 1.5vw, 0.75rem) !important;
    }
    
    /* Ajustes para que el texto no se desborde en móvil */
    .fluid-tech-grid > div {
        min-width: 0; /* Permite que el contenido se ajuste */
        padding: clamp(0.5rem, 1.2vw, 0.75rem) !important;
        overflow: hidden;
        word-wrap: break-word;
    }
    
    .fluid-tech-grid > div > span {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
        font-size: clamp(0.625rem, 1.5vw + 0.3rem, 0.75rem) !important;
        line-height: 1.2;
    }
    
    /* Ajuste para el texto "Aprendiendo" */
    .fluid-tech-grid > div > div.text-xs {
        font-size: clamp(0.5rem, 1.2vw + 0.2rem, 0.625rem) !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        margin-top: 0.25rem;
        line-height: 1.2;
    }
    
    /* Ajuste para los iconos en móvil */
    .fluid-tech-grid > div > div.w-12 {
        width: clamp(2.5rem, 6vw, 3rem) !important;
        height: clamp(2.5rem, 6vw, 3rem) !important;
        margin-bottom: clamp(0.25rem, 1vw, 0.5rem) !important;
    }
    
    .fluid-tech-grid > div > div.w-12 > img {
        width: clamp(2rem, 5vw, 2.5rem) !important;
        height: clamp(2rem, 5vw, 2.5rem) !important;
    }
    
    @media (max-width: 480px) {
        .fluid-tech-grid {
            grid-template-columns: repeat(2, 1fr) !important;
        }
}

.fluid-tech-text {
    font-size: clamp(0.75rem, 1.5vw + 0.5rem, 1rem);
}

    /* Altura de imagen fluida - Móvil */
.fluid-image-height {
    height: clamp(12rem, 30vw, 16rem);
        min-height: clamp(12rem, 30vw, 16rem);
}

    /* Formulario fluido - Móvil */
.fluid-form-input {
    font-size: clamp(0.875rem, 1.5vw + 0.5rem, 1rem);
    padding: clamp(0.5rem, 1.2vw, 0.75rem) clamp(0.75rem, 2vw, 1rem);
}

.fluid-form-label {
    font-size: clamp(0.75rem, 1.2vw + 0.5rem, 0.875rem);
    }
}

/* ============================================
   ESTILOS COMPARTIDOS PARA TODAS LAS PÁGINAS
   ============================================ */

/* Parallax fade */
.parallax-fade {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease-out;
}

.parallax-fade.fade-out {
    opacity: 0;
    transform: translateY(50px);
}

.parallax-section {
    position: relative;
    overflow: hidden;
}

/* Efecto de brillo en hover */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect .shine-overlay {
    transition: opacity 0.3s ease;
    opacity: 0;
}

/* Colores personalizados */
.bg-primary-blue { background-color: #004aad !important; }
.bg-primary-blue-dark { background-color: #003d8a !important; }
.bg-secondary-blue { background-color: #0066cc !important; }
.text-primary-blue { color: #004aad !important; }
.text-secondary-blue { color: #0066cc !important; }
.border-primary-blue { border-color: #004aad !important; }
.hover\:bg-primary-blue-dark:hover { background-color: #003d8a !important; }
.hover\:bg-primary-blue:hover { background-color: #004aad !important; }
.hover\:border-primary-blue:hover { border-color: #004aad !important; }
.hover\:text-secondary-blue:hover { color: #0066cc !important; }

/* Navbar mejorado */
nav.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Efectos de gradiente animado */
.bg-gradient-animated {
    background: linear-gradient(-45deg, #004aad, #0066cc, #0052a3, #003d8a);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

/* Mejoras de transición suave */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efecto de carga suave */
body {
    animation: fadeIn 0.5s ease-in;
}

/* Asegurar que el contenido sea visible por defecto */
.scroll-reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Solo aplicar animación si JS está activo */
.js-enabled .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
}

.js-enabled .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Estilos del loader para formulario de contacto */
.container {
    --uib-size: 20px;
    --uib-color: white;
    --uib-speed: .8s;
    --uib-bg-opacity: 0.1;
    height: var(--uib-size);
    width: var(--uib-size);
    transform-origin: center;
    animation: rotate var(--uib-speed) linear infinite;
    will-change: transform;
    overflow: visible;
}

.car {
    fill: none;
    stroke: var(--uib-color);
    stroke-dasharray: 25, 75;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    transition: stroke 0.5s ease;
}

.track {
    fill: none;
    stroke: var(--uib-color);
    opacity: var(--uib-bg-opacity);
    transition: stroke 0.5s ease;
}

/* Estilos del formulario de contacto */
.focus\:ring-primary-blue:focus { --tw-ring-color: #004aad !important; }
.focus\:border-primary-blue:focus { border-color: #004aad !important; }

.form-field {
    transition: all 0.3s ease;
}

.form-field:hover {
    transform: translateY(-2px);
}

.form-field:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
}

/* Animación del botón */
.submit-btn {
    position: relative;
    overflow: hidden;
}

.submit-btn::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;
}

.submit-btn:hover::before {
    left: 100%;
}

