/* Custom CSS for Conjunto Residencial Girasol */

/* Font Families */
.font-inter {
    font-family: 'Inter', sans-serif;
}

.font-playfair {
    font-family: 'Playfair Display', serif;
}

/* Custom Color Palette */
:root {
    --green-primary: #2D5016;
    --green-secondary: #4A7C59;
    --cream: #F5F5DC;
    --gold: #D4AF37;
    --girasol-yellow: #FBA100;
    --girasol-yellow-light: #FEF3E2;
    --girasol-yellow-dark: #E89100;
    --gray-light: #F8F9FA;
    --gray-dark: #343A40;
}

/* Custom Tailwind Classes */
.bg-green-primary {
    background-color: var(--green-primary);
}

.text-green-primary {
    color: var(--green-primary);
}

.bg-green-secondary {
    background-color: var(--green-secondary);
}

.text-green-secondary {
    color: var(--green-secondary);
}

.bg-cream {
    background-color: var(--cream);
}

.text-cream {
    color: var(--cream);
}

.bg-gold {
    background-color: var(--gold);
}

.text-gold {
    color: var(--gold);
}

/* Girasol Yellow Custom Colors */
.bg-girasol-yellow {
    background-color: var(--girasol-yellow);
}

.text-girasol-yellow {
    color: var(--girasol-yellow);
}

.bg-girasol-yellow-light {
    background-color: var(--girasol-yellow-light);
}

.bg-girasol-yellow-dark {
    background-color: var(--girasol-yellow-dark);
}

.hover\:bg-girasol-yellow-dark:hover {
    background-color: var(--girasol-yellow-dark);
}

.hover\:text-girasol-yellow:hover {
    color: var(--girasol-yellow);
}

.border-girasol-yellow {
    border-color: var(--girasol-yellow);
}

.focus\:ring-girasol-yellow:focus {
    --tw-ring-color: var(--girasol-yellow);
}

.focus\:border-girasol-yellow:focus {
    border-color: var(--girasol-yellow);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #2D5016;
}

/* Header Styles */
#header {
    transition: all 0.3s ease;
}

#header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Navigation Active State */
.nav-link.active {
    color: #4A7C59;
    font-weight: 600;
}

/* Carousel Styles */
.carousel-slide {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

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

.carousel-indicator.active {
    background-color: white;
    transform: scale(1.2);
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

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

/* Button Animations */
.btn-animate {
    position: relative;
    overflow: hidden;
}

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

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

/* Form Styles */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 124, 89, 0.15);
}

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

.modal-content {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Loading Animation */
.loading-spinner {
    animation: spin 1s linear infinite;
}

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

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* News Card Styles */
.news-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    border-color: #4A7C59;
}

/* Document Card Styles */
.document-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.document-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    border-color: #4A7C59;
}

/* Filter Button Styles */
.filter-btn.active {
    background-color: #4A7C59;
    color: white;
    transform: scale(1.05);
}

.filter-btn {
    transition: all 0.3s ease;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive Typography */
@media (max-width: 768px) {
    .text-responsive-xl {
        font-size: 2rem;
    }
    
    .text-responsive-lg {
        font-size: 1.5rem;
    }
    
    .text-responsive-md {
        font-size: 1.25rem;
    }
}

/* Custom Gradients */
.gradient-green {
    background: linear-gradient(135deg, #4A7C59 0%, #2D5016 100%);
}

.gradient-cream {
    background: linear-gradient(135deg, #F5F5DC 0%, #E6E6D4 100%);
}

.gradient-gold {
    background: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%);
}

/* Text Gradients */
.text-gradient-green {
    background: linear-gradient(135deg, #4A7C59 0%, #2D5016 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Shadows */
.shadow-green {
    box-shadow: 0 4px 14px rgba(74, 124, 89, 0.25);
}

.shadow-green-lg {
    box-shadow: 0 10px 30px rgba(74, 124, 89, 0.3);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

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

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

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

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

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

/* Focus States */
.focus-ring:focus {
    outline: none;
    ring: 2px;
    ring-color: #4A7C59;
    ring-opacity: 0.5;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        max-width: none;
        margin: 0;
        padding: 0;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .card-hover {
        border: 2px solid #000;
    }
    
    .btn-animate {
        border: 2px solid #000;
    }
}

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

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .dark-mode {
        background-color: #1a1a1a;
        color: #ffffff;
    }
    
    .dark-mode .card {
        background-color: #2d2d2d;
        border-color: #404040;
    }
}

/* Custom Component Styles */
.hero-overlay {
    background: linear-gradient(45deg, rgba(45, 80, 22, 0.8) 0%, rgba(74, 124, 89, 0.6) 100%);
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #4A7C59 50%, transparent 100%);
}

/* Interactive Elements */
.interactive {
    cursor: pointer;
    user-select: none;
}

.interactive:active {
    transform: scale(0.98);
}

/* Status Indicators */
.status-online {
    color: #10b981;
}

.status-offline {
    color: #ef4444;
}

.status-pending {
    color: #f59e0b;
}

/* Custom Scrollbar for specific elements */
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #4A7C59 #f1f1f1;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #4A7C59;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #2D5016;
}

/* WhatsApp Floating Button */
#whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}

.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
    opacity: 1;
}

.whatsapp-button:hover {
    background: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-button:active {
    transform: scale(0.95);
}

.whatsapp-tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 8px;
    background: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 16px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #1f2937;
}

#whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* WhatsApp Button Animation */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* WhatsApp Button Responsive */
@media (max-width: 768px) {
    #whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-button {
        width: 56px;
        height: 56px;
    }
    
    .whatsapp-button svg {
        width: 24px;
        height: 24px;
    }
    
    .whatsapp-tooltip {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* WhatsApp Button Dark Mode */
@media (prefers-color-scheme: dark) {
    .whatsapp-tooltip {
        background: #374151;
    }
    
    .whatsapp-tooltip::after {
        border-top-color: #374151;
    }
}

/* WhatsApp Button Accessibility */
.whatsapp-button:focus {
    outline: 2px solid #4A7C59;
    outline-offset: 2px;
}

/* WhatsApp Button Print */
@media print {
    #whatsapp-float {
        display: none !important;
    }
    
    #scroll-to-top {
        display: none !important;
    }
}

/* Scroll to Top Button Styles */
#scroll-to-top {
    transition: all 0.3s ease;
    cursor: pointer;
}

#scroll-to-top:hover {
    transform: translateY(-3px) scale(1.1);
}

#scroll-to-top:active {
    transform: translateY(0) scale(1);
}

/* Improved Modal Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

.animate-zoom-in {
    animation: zoomIn 0.3s ease-out;
}

/* Improved Form Input Focus States */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown),
select:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

input:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown),
select:valid:not(:placeholder-shown) {
    border-color: #10b981;
}

