/* RITECH - Custom Styles */
/* Poppins Font */
@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Base */
html {
    scroll-behavior: smooth;
}
/* ===== WHATSAPP CHAT ===== */
.whatsapp-chat{
position:fixed;
bottom:20px;
right:20px;
z-index:9999;
}

.chat-toggle{
background:#14B8A6;
border:none;
width:60px;
height:60px;
border-radius:50%;

display:flex;
align-items:center;
justify-content:center;

cursor:pointer;
}
.chat-box{
display:none;
position:fixed;
bottom:90px;
right:20px;
width:260px;
background:white;
border-radius:10px;
box-shadow:0 5px 15px rgba(0,0,0,0.2);
padding:15px;
}

.chat-box.active{
display:block;
}

/* WhatsApp chat content */

.chat-header{
display:flex;
align-items:center;
gap:10px;
font-weight:600;
margin-bottom:10px;
}

.chat-body{
font-size:14px;
color:#333;
}

.chat-button{
display:block;
margin-top:10px;
background:#14B8A6;
color:white;
text-align:center;
padding:10px;
border-radius:8px;
text-decoration:none;
font-weight:500;
}

.chat-button:hover{
background:#1ebe5d;
}

/* Skip link - Accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 0.75rem 1rem;
    background: #14B8A6;
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: left 0.2s ease;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

/* Hero animation */
.hero-content {
    animation: heroFadeIn 1s ease-out 0.2s forwards;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card hover effects - GPU friendly */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 40px -10px rgba(20, 184, 166, 0.2);
    
}

/* Buttons */
.btn-primary {
    background-color: #14B8A6;
    color: white;
}

.btn-primary:hover {
    background-color: #0D9488;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 184, 166, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: #1F2937;
    transform: translateY(-2px);
}

/* Secondary button - light theme */
.btn-secondary-light {
    background-color: transparent;
    color: #0D9488;
    border: 2px solid #0D9488;
}

.btn-secondary-light:hover {
    background-color: #0D9488;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

/* Language switch - light theme */
.lang-btn-light {
    color: #6B7280;
}

.lang-btn-light:hover {
    color: #111827;
}

.lang-btn-light.active {
    background-color: #14B8A6;
    color: white;
}

/* Language switch - dark theme (fallback) */
.lang-btn {
    color: rgba #6B7280;
}

.lang-btn:hover {
    color: white;
}

.lang-btn.active {
    background-color: #14B8A6;
    color: white;
}

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays for grid children */
#nosotros .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
#nosotros .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
#nosotros .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
#equipo .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
#equipo .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
#equipo .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
#servicios .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
#servicios .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
#servicios .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
#tendencias .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
#tendencias .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
#tendencias .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
#tendencias .animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }

/* Opinion cards */
.opinion-card {
    background: #FAFAFA;
    border: 1px solid #f3f4f6;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    transition: box-shadow 0.2s ease;
}

.opinion-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Flying airplane - appears on logo click */
.flying-airplane {
    position: fixed;
    z-index: 9999;
    font-size: 2.5rem;
    line-height: 1;
    pointer-events: none;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
    animation: airplaneFly 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes airplaneFly {
    0% {
        transform: translate(0, 0) rotate(-15deg) scale(1);
        opacity: 1;
    }
    12% {
        transform: translate(50px, -30px) rotate(-5deg) scale(1.1);
        opacity: 1;
    }
    25% {
        transform: translate(120px, -70px) rotate(5deg) scale(1.15);
        opacity: 1;
    }
    40% {
        transform: translate(220px, -100px) rotate(15deg) scale(1.1);
        opacity: 1;
    }
    55% {
        transform: translate(350px, -120px) rotate(25deg) scale(1.05);
        opacity: 1;
    }
    70% {
        transform: translate(500px, -130px) rotate(35deg) scale(0.95);
        opacity: 1;
    }
    85% {
        transform: translate(680px, -110px) rotate(45deg) scale(0.85);
        opacity: 0.9;
    }
    100% {
        transform: translate(900px, -80px) rotate(50deg) scale(0.7);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .flying-airplane {
        animation: none;
    }
}

/* Reduced motion - Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-content {
        animation: none;
        opacity: 1;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}
