/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f9fafb 0%, #e0f2fe 100%);
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: relative;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
    color: white;
    padding: 4rem 1.25rem;
    text-align: center;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.header-bg-elements {
    position: absolute;
    inset: 0;
    opacity: 0.1;
}

.bg-element {
    position: absolute;
    background: white;
    border-radius: 50%;
}

.bg-element-1 {
    top: 2.5rem;
    left: 2.5rem;
    width: 5rem;
    height: 5rem;
    animation: pulse 2s infinite;
}

.bg-element-2 {
    top: 8rem;
    right: 5rem;
    width: 4rem;
    height: 4rem;
    animation: bounce 2s infinite;
    animation-delay: 0.3s;
}

.bg-element-3 {
    bottom: 5rem;
    left: 25%;
    width: 3rem;
    height: 3rem;
    animation: ping 2s infinite;
    animation-delay: 0.7s;
}

.header-content {
    position: relative;
    z-index: 10;
    animation: fadeInUp 1s ease-out;
}

.logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 4px solid rgba(255, 255, 255, 0.3);
    transition: all 0.5s ease;
}

.logo:hover {
    transform: scale(1.1) rotate(3deg);
}

.logo-glow {
    position: absolute;
    inset: -0.5rem;
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    opacity: 0.2;
    animation: pulse 2s infinite;
}

.main-title {
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.tagline {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    font-style: italic;
    color: #bfdbfe;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    animation: bounce 2s infinite;
}

/* Navigation Styles */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(30, 64, 175, 0.95);
    backdrop-filter: blur(12px);
    padding: 1rem 0;
    z-index: 40;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #fbbf24;
    background: rgba(30, 58, 138, 0.8);
    transform: scale(1.05);
}

.nav-link.active {
    background: #1e3a8a;
    color: #fbbf24;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0.5rem;
    height: 0.5rem;
    background: #fbbf24;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Main Content */
.main-content {
    padding: 4rem 0;
}

.section {
    margin-bottom: 5rem;
    scroll-margin-top: 5rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.title-underline {
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 6rem;
    height: 0.25rem;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    border-radius: 9999px;
}

.content-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.content-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.15);
}

.card-decoration {
    position: absolute;
    top: -1rem;
    left: -1rem;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(45deg, #3b82f6, #2563eb);
    border-radius: 50%;
    opacity: 0.2;
}

/* About Section */
.about-text {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #374151;
}

.highlight {
    color: #2563eb;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ceo-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
    border-radius: 0.75rem;
}

.ceo-avatar {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.services-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-item:hover {
    background: #dbeafe;
    transform: translateX(0.5rem);
}

.service-check {
    width: 1.5rem;
    height: 1.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    margin-right: 1rem;
    transition: transform 0.3s ease;
}

.service-item:hover .service-check {
    transform: scale(1.1);
}

.service-item span {
    color: #374151;
    font-weight: 500;
    transition: color 0.3s ease;
}

.service-item:hover span {
    color: #2563eb;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.gallery-item {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.5s ease;
    border: 1px solid rgba(156, 163, 175, 0.1);
}

.gallery-item:hover {
    transform: translateY(-1rem) rotate(1deg);
    box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.15);
}

.gallery-image-container {
    position: relative;
    overflow: hidden;
}

.gallery-image {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    display: flex;
    align-items: end;
    padding: 1rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    padding: 1.5rem;
    text-align: center;
}

.gallery-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #374151;
    transition: color 0.3s ease;
}

.gallery-item:hover .gallery-content h3 {
    color: #2563eb;
}

/* Testimonials Section */
.testimonials-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.testimonial {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-left: 4px solid #3b82f6;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.05);
    border-radius: 0 1rem 1rem 0;
    transition: all 0.5s ease;
    position: relative;
}

.testimonial:hover {
    transform: translateY(-0.5rem);
    border-left-width: 8px;
}

.quote-mark {
    position: absolute;
    top: -0.5rem;
    left: -0.5rem;
    font-size: 4rem;
    color: rgba(59, 130, 246, 0.2);
    transition: opacity 0.3s ease;
}

.testimonial:hover .quote-mark {
    opacity: 0.7;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: #374151;
    position: relative;
    z-index: 10;
    transition: color 0.3s ease;
}

.testimonial:hover .testimonial-text {
    color: #1f2937;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.testimonial-author strong {
    color: #1e40af;
    transition: color 0.3s ease;
}

.testimonial:hover .testimonial-author strong {
    color: #2563eb;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #dbeafe;
    transform: translateX(0.5rem);
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
}

.contact-item strong {
    color: #1f2937;
    transition: color 0.3s ease;
}

.contact-item:hover strong {
    color: #2563eb;
}

.contact-item p {
    color: #6b7280;
    transition: color 0.3s ease;
}

.contact-item:hover p {
    color: #1f2937;
}

.hours-item {
    grid-column: 1 / -1;
}

.hours-list {
    margin-top: 0.5rem;
}

.hours-list p {
    margin: 0.25rem 0;
}

/* Location Section */
.map-placeholder {
    width: 100%;
    height: 20rem;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.map-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.2), rgba(147, 51, 234, 0.2));
    animation: pulse 3s infinite;
}

.map-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #2563eb;
}

.map-title {
    font-weight: 600;
    font-size: 1.125rem;
    margin: 1rem 0 0.5rem;
}

.map-subtitle {
    color: #3b82f6;
}

.location-note {
    text-align: center;
    color: #6b7280;
    font-weight: 500;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #1d4ed8 100%);
    color: white;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    margin-top: 2.5rem;
}

.footer-bg-elements {
    position: absolute;
    inset: 0;
    opacity: 0.1;
}

.footer-bg-element {
    position: absolute;
    background: white;
    border-radius: 50%;
}

.footer-bg-element-1 {
    top: 1rem;
    left: 25%;
    width: 4rem;
    height: 4rem;
    animation: pulse 3s infinite;
}

.footer-bg-element-2 {
    bottom: 1rem;
    right: 25%;
    width: 3rem;
    height: 3rem;
    animation: bounce 3s infinite;
    animation-delay: 0.5s;
}

.footer-content {
    position: relative;
    z-index: 10;
}

.footer-content p {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.footer-credit {
    color: #bfdbfe;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 1rem;
    border-radius: 50%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    z-index: 50;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    animation: none;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.25);
}

.whatsapp-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.whatsapp-btn:hover .whatsapp-icon {
    transform: scale(1.1);
}

.notification-badge {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    background: #ef4444;
    border-radius: 50%;
    animation: ping 2s infinite;
}

.notification-dot {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    background: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes ping {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 2rem 1rem;
        min-height: 80vh;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1.125rem;
    }
    
    .logo {
        width: 100px;
        height: 100px;
    }
    
    .nav-container {
        gap: 0.25rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .section-title {
        font-size: 1.875rem;
    }
    
    .content-card {
        padding: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .whatsapp-btn {
        bottom: 1rem;
        right: 1rem;
        padding: 0.875rem;
    }
    
    .whatsapp-icon {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .header {
        padding: 1.5rem 0.75rem;
    }
    
    .main-title {
        font-size: 1.75rem;
    }
    
    .section {
        margin-bottom: 3rem;
    }
    
    .content-card {
        padding: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial {
        padding: 1.5rem;
    }
    
    .map-placeholder {
        height: 15rem;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #3b82f6, #1d4ed8);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #2563eb, #1e40af);
}

/* Focus States for Accessibility */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .whatsapp-btn,
    .scroll-indicator {
        display: none;
    }
    
    .header {
        background: #2563eb;
        color: white;
        page-break-after: always;
    }
    
    .section {
        page-break-inside: avoid;
    }
}