@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

/* Base Styles */
body { 
    font-family: 'Inter', sans-serif; 
    overflow-x: hidden;
}

.font-display {
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

/* Custom Gradients and Utilities */
.hero-gradient {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('assets/hero.png');
    background-size: cover;
    background-position: center;
}

/* Reveal Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
}

[data-reveal].active {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll Smoothing */
html {
    scroll-behavior: smooth;
}

/* Carousel Transitions */
.slide {
    display: none;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    display: block;
    opacity: 1;
}

/* Modal & Portfolio Animations */
/* Animaciones Personalizadas */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin-slow {
    animation: spin-slow 12s linear infinite;
}

/* Base Styles */
:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --slate-900: #0f172a;
    --slate-950: #020617;
}

.project-tab-btn.active {
    background-color: white;
    color: #16a34a; /* green-600 */
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

#projects-grid {
    transition: opacity 0.3s ease-in-out;
}

#project-modal {
    transition: all 0.3s ease-in-out;
}

#modal-content {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Marquee Animation */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: inline-flex;
    animation: marquee 40s linear infinite;
    gap: 4rem;
}

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

.marquee-item {
    font-weight: 800;
    color: #64748b; /* slate-500 */
    font-size: 1.5rem;
    letter-spacing: -0.05em;
    cursor: default;
    transition: color 0.3s ease;
}

.marquee-item:hover {
    color: #10b981; /* primary */
}

/* Testimonials - Registro Técnico (Horizontal Slider) */
.testimonials-section {
    background-color: #f8fafc; /* bg-slate-50 */
}

.testimonial-viewport {
    overflow: hidden;
    width: 100%;
}

.testimonial-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.testimonial-slide {
    flex: 0 0 100%;
    padding: 0 1rem;
    opacity: 0.4;
    transition: opacity 0.4s ease;
}

.testimonial-slide.active {
    opacity: 1;
}

.testimonial-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #10b981;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    height: 100%;
}

.dot-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1; /* slate-300 */
    transition: all 0.3s ease;
}

.dot-indicator.active {
    width: 32px;
    background: #10b981;
    border-radius: 5px;
}

.nav-arrow {
    width: 54px;
    height: 54px;
    border-radius: 1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569; /* slate-600 */
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    background: #f1f5f9;
    border-color: #10b981;
    color: #10b981;
}

/* Tecnologías Geoespaciales Section */
.tech-category-header {
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.tech-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.tech-card:hover {
    border-color: #10b981;
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

.tech-tag {
    background: #ecfdf5; /* emerald-50 */
    color: #047857; /* emerald-700 */
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.6rem;
    border-radius: 0.5rem;
}

.tech-icon-container {
    width: 48px;
    height: 48px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569; /* slate-600 */
    transition: all 0.3s ease;
}

.tech-card:hover .tech-icon-container {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
}

/* Acordeón de Tecnologías */
.tech-accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    background: #ffffff;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tech-accordion-item.is-open {
    border-color: #10b981;
    box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.1);
}

.tech-accordion-header {
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    background: #ffffff;
    transition: background 0.3s ease;
}

.tech-accordion-header:hover {
    background: #f8fafc;
}

.tech-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
}

.tech-accordion-item.is-open .tech-accordion-content {
    max-height: 2000px;
    transition: max-height 1s ease-in-out;
}

.chevron-icon {
    transition: transform 0.4s ease;
    color: #94a3b8;
}

.tech-accordion-item.is-open .chevron-icon {
    transform: rotate(180deg);
    color: #10b981;
}
