/* Import Montserrat font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif!important;
}

.font-headline {
    font-family: 'Montserrat', sans-serif;
}

.font-body {
    font-family: 'Montserrat', sans-serif;
}

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

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

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

/* Apply animations */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slideInFromRight 0.6s ease-out;
}

/* Hover effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Smooth transitions */
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #CA7A2C;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #B86B25;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #CA7A2C;
    outline-offset: 2px;
}

/* Custom button styles */
.btn-primary {
    background-color: #CA7A2C;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #B86B25;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(202, 122, 44, 0.3);
}

/* Hero section styling */
.hero-overlay {
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 100%);
}

/* Development cards */
.development-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.development-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Stats counter animation */
.stat-counter {
    font-weight: 700;
    color: #1f2937;
}

/* Services section */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Testimonials */
.testimonial-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 2rem;
}

.testimonial-quote {
    font-size: 3rem;
    color: #d1d5db;
    line-height: 1;
    margin-bottom: 1rem;
}

/* Footer styling */
footer {
    background-color: #f8f9fa;
}

/* Form styling */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.form-input:focus {
    border-color: #CA7A2C;
    box-shadow: 0 0 0 3px rgba(202, 122, 44, 0.1);
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .section-padding {
        padding: 2rem 1rem;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Status badges */
.status-badge {
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-desarrollo {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-terminado {
    background-color: #1f2937;
    color: white;
}

/* WhatsApp button */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    width: 3rem;
    height: 3rem;
    background-color: #25d366;
    border-radius: 50%;
}

/* Responsive utilities */
@media (max-width: 640px) {
    .line-clamp-3 {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    #heroNextBtn,
    #heroPrevBtn {
        display: none!important;
    }
}

/* Vibration animation for WhatsApp button */
@keyframes vibrate {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.vibrate {
    animation: vibrate 0.5s;
}

/* Notification badge */
.notification-red {
    position: absolute;
    z-index: 10;
}

.whatsapp-float:hover {
    background-color: #22c55e;
    transform: scale(1.1);
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Modal backdrop */
.modal-backdrop {
    backdrop-filter: blur(4px);
}

/* Line clamp utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Custom animations for counters */
.stat-item span {
    transition: all 2s ease-in-out;
}

/* Hero section animations */
.hero-slide-in {
    animation: slideInFromRight 0.7s ease-out;
}

.hero-slide-in-delay-200 {
    animation: slideInFromRight 0.7s ease-out 0.2s both;
}

.hero-slide-in-delay-400 {
    animation: slideInFromRight 0.7s ease-out 0.4s both;
}

.hero-slide-in-delay-600 {
    animation: slideInFromRight 0.7s ease-out 0.6s both;
}

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

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid #000;
    }
}

/* Custom animations and styles */
.hero-slide-in {
    animation: slideInFromLeft 0.8s ease-out;
}

.hero-slide-in-delay-200 {
    animation: slideInFromLeft 0.8s ease-out 0.2s both;
}

.hero-slide-in-delay-400 {
    animation: slideInFromLeft 0.8s ease-out 0.4s both;
}

.hero-slide-in-delay-600 {
    animation: slideInFromLeft 0.8s ease-out 0.6s both;
}

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

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

.stat-item {
    animation: countUp 0.6s ease-out forwards;
}

/* Text truncation utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* NAVBAR CUSTOMIZATION */
.bg-navbar {
    background-color: #BA7730 !important;
}

.bg-navbar a,
.bg-navbar .icon,
#mobile-menu.bg-navbar a {
    color: #fff !important;
    text-transform: uppercase;
}

/* WhatsApp float animation */
#whatsappFloat {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Image carousel for projects */
.image-carousel {
    position: relative;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .carousel-nav {
    opacity: 1;
}

.carousel-nav.prev {
    left: 10px;
}

.carousel-nav.next {
    right: 10px;
}

.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-indicator.active {
    background: white;
}

.notification-red {
    background: red;
    color: #fff;
    width: 25px;
    height: 25px;
    position: relative;
    top: 15px;
    left: 10px;
    z-index: 1000;
    border-radius: 30px;
}

.text-icon {
    color: #3da14e;
    position: fixed;
    z-index: 1020;
    bottom: 100px;
    right: 10px;
}

@keyframes vibrate-horizontal {
  0% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
  100% { transform: translateX(0); }
}
.vibrate {
  animation: vibrate-horizontal 0.5s linear;
}