/* ========================================
   Ctrl P - Custom Styles
   Impresiones Universitarias Express
   ======================================== */

/* ==============================
   Global Resets & Base Styles
   ============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* ==============================
   Marquee Animation
   ============================== */
.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
    padding-left: 100%;
}

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

.marquee-content span {
    display: inline-block;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ==============================
   Aurora Text Effect
   ============================== */
.aurora-text {
    background: linear-gradient(45deg, #A6C447, #E8F5CD, #A6C447);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: aurora-gradient 3s ease infinite;
}

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

/* ==============================
   Meteor Animation
   ============================== */
.meteors-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.meteor {
    position: absolute;
    top: -10%;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, rgba(166, 196, 71, 0), rgba(166, 196, 71, 0.8));
    transform: rotate(-45deg);
    animation: meteor-fall 2s linear infinite;
    opacity: 0;
}

.meteor:nth-child(1) {
    left: 10%;
    animation-delay: 0.2s;
}

.meteor:nth-child(2) {
    left: 30%;
    animation-delay: 0.8s;
}

.meteor:nth-child(3) {
    left: 50%;
    animation-delay: 1.5s;
}

.meteor:nth-child(4) {
    left: 70%;
    animation-delay: 0.5s;
}

.meteor:nth-child(5) {
    left: 90%;
    animation-delay: 1.2s;
}

@keyframes meteor-fall {
    0% {
        transform: translateY(0) translateX(0) rotate(-45deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(-100px) rotate(-45deg);
        opacity: 0;
    }
}

/* ==============================
   Magic Card Effects
   ============================== */
.magic-card {
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.magic-card:hover {
    transform: translateY(-10px) scale(1.02);
}

/* ==============================
   Neon Card Glow Effect
   ============================== */
.neon-card {
    position: relative;
    transition: all 0.3s ease;
}

.neon-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #A6C447, #4A5727, #A6C447);
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    filter: blur(10px);
    opacity: 0.7;
    animation: neon-pulse 3s ease infinite;
}

@keyframes neon-pulse {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.neon-card:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(166, 196, 71, 0.5);
}

/* ==============================
   Bento Grid Layout
   ============================== */
.bento-grid {
    display: grid;
    grid-auto-rows: minmax(200px, auto);
}

.bento-item {
    min-height: 200px;
}

/* ==============================
   Service Cards
   ============================== */
.service-card {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(166, 196, 71, 0.1), transparent);
    transition: left 0.5s;
}

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

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

/* ==============================
   QR Code Styling
   ============================== */
#qrcode {
    display: inline-block;
}

#qrcode img {
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ==============================
   Hero GIF Styling
   ============================== */
.hero-gif-container {
    /* Animation removed */
}

.hero-gif {
    border-radius: 20px;
    background: transparent;
    mix-blend-mode: lighten;
}

/* ==============================
   Mobile Dock
   ============================== */
.mobile-dock {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dock-container {
    max-width: 100%;
}

.dock-item {
    flex: 1;
    position: relative;
    transition: all 0.3s ease;
}

.dock-item.active {
    color: #A6C447;
}

.dock-item.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: #A6C447;
    border-radius: 0 0 3px 3px;
}

.dock-item-primary {
    transition: all 0.3s ease;
}

/* ==============================
   Button Effects
   ============================== */
button, .btn, a[class*="bg-"] {
    position: relative;
    overflow: hidden;
}

button::before, .btn::before, a[class*="bg-"]::before {
    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;
}

button:active::before, .btn:active::before, a[class*="bg-"]:active::before {
    width: 300px;
    height: 300px;
}

/* ==============================
   Scroll Animations
   ============================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ==============================
   Custom Scrollbar
   ============================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #A6C447;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4A5727;
}

/* ==============================
   Gradient Text
   ============================== */
.gradient-text {
    background: linear-gradient(135deg, #A6C447 0%, #4A5727 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==============================
   Floating Animation
   ============================== */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* ==============================
   Pulse Animation
   ============================== */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse-animation {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ==============================
   Glow Effect
   ============================== */
.glow-effect {
    box-shadow: 0 0 20px rgba(166, 196, 71, 0.5);
    transition: box-shadow 0.3s ease;
}

.glow-effect:hover {
    box-shadow: 0 0 30px rgba(166, 196, 71, 0.8);
}

/* ==============================
   Responsive Adjustments
   ============================== */
@media (max-width: 768px) {
    .marquee-content span {
        font-size: 0.85rem;
    }
    
    .bento-item {
        min-height: 180px;
    }
    
    .mobile-dock {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

@media (max-width: 640px) {
    .aurora-text {
        font-size: 2.5rem !important;
    }
}

/* ==============================
   Print Styles
   ============================== */
@media print {
    .mobile-dock,
    .marquee-container,
    .meteors-container,
    #floating-whatsapp {
        display: none !important;
    }
}

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

/* Focus styles for keyboard navigation */
a:focus,
button:focus {
    outline: 3px solid #A6C447;
    outline-offset: 2px;
}

/* ==============================
   Loading State
   ============================== */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #A6C447;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* ==============================
   Utility Classes
   ============================== */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.box-shadow-lg {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ==============================
   Number Ticker
   ============================== */
.number-ticker {
    font-variant-numeric: tabular-nums;
    transition: color 0.3s ease;
}

/* ==============================
   Hero Section Enhancements
   ============================== */
#inicio {
    position: relative;
    background-attachment: fixed;
}

/* ==============================
   Geometric Background Shapes
   ============================== */
.geometric-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #A6C447 0%, #4A5727 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #E8F5CD 0%, #A6C447 100%);
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
    top: 60%;
    right: 10%;
    animation-delay: -5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(225deg, #4A5727 0%, #2D3319 100%);
    border-radius: 50%;
    bottom: 15%;
    left: 15%;
    animation-delay: -10s;
}

.shape-4 {
    width: 180px;
    height: 180px;
    background: linear-gradient(315deg, #A6C447 0%, #E8F5CD 100%);
    border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
    top: 40%;
    right: 25%;
    animation-delay: -15s;
}

.shape-5 {
    width: 220px;
    height: 220px;
    background: linear-gradient(180deg, #E8F5CD 0%, #4A5727 100%);
    border-radius: 30% 70% 30% 70% / 70% 30% 70% 30%;
    top: 20%;
    right: 5%;
    animation-delay: -7s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) translateX(10px) rotate(90deg);
    }
    50% {
        transform: translateY(-10px) translateX(-10px) rotate(180deg);
    }
    75% {
        transform: translateY(-30px) translateX(5px) rotate(270deg);
    }
}

/* ==============================
   Footer Enhancements
   ============================== */
footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    transform: translateX(5px);
}
