:root {
    --primary-color: #0a1930;
    --accent-color: #0ea5e9;
    --green: #10b981;
    --pink: #e91e63;
    --gradient-start: #0a1930;
    --gradient-end: #1e3a8a;
    --text-light: #ffffff;
    --text-dark: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    background-attachment: fixed;
    color: var(--text-light);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(10, 25, 48, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-light);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.whatsapp-btn {
    background: var(--green);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.whatsapp-btn:hover {
    background: #0d9668;
    color: var(--text-light) !important;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5rem 5%;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
    transform: rotate(-15deg);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-image {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    width: 300px;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 25px rgba(14, 165, 233, 0.5));
    transition: all 0.3s ease;
    transform: rotate(-5deg);
}

.hero-logo:hover {
    transform: rotate(0deg) scale(1.05);
    filter: drop-shadow(0 0 35px rgba(14, 165, 233, 0.7));
}

.animated-logo {
    animation: floatAndGlow 6s ease-in-out infinite;
}

@keyframes floatAndGlow {
    0% {
        transform: translateY(0) rotate(-5deg);
        filter: drop-shadow(0 0 25px rgba(14, 165, 233, 0.4));
    }
    50% {
        transform: translateY(-15px) rotate(0deg);
        filter: drop-shadow(0 0 35px rgba(14, 165, 233, 0.7));
    }
    100% {
        transform: translateY(0) rotate(-5deg);
        filter: drop-shadow(0 0 25px rgba(14, 165, 233, 0.4));
    }
}

.hero-image {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 2rem;
}

.hero-logo {
    width: 450px;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 20px rgba(14, 165, 233, 0.35));
    transition: all 0.5s ease;
    animation: floatUpDown 12s ease-in-out infinite;
}

.hero-logo:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 0 25px rgba(14, 165, 233, 0.5));
}

@keyframes floatUpDown {
    0%, 100% {
        transform: translateY(0);
        filter: drop-shadow(0 0 20px rgba(14, 165, 233, 0.35));
    }
    50% {
        transform: translateY(-10px);
        filter: drop-shadow(0 0 25px rgba(14, 165, 233, 0.4));
    }
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--accent-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-whatsapp {
    background: var(--green);
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-services {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--accent-color);
}

.btn-services:hover {
    background: var(--accent-color);
}

/* Why Section */
.why-section {
    padding: 4rem 5%;
    background: rgba(10, 25, 48, 0.95);
    text-align: center;
    position: relative;
}

.why-section h2 {
    color: var(--text-light);
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
}

.why-section .section-desc {
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 0 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.why-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(14, 165, 233, 0.3);
}

.why-card i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    opacity: 0.9;
}

.why-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
}

.why-card p {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.5;
}

/* Specialties Section */
.specialties {
    padding: 5rem 5%;
    background: rgba(26, 54, 93, 0.1);
}

.specialties h2,
.faq h2,
.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-desc {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    opacity: 0.9;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.specialty-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.specialty-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.specialty-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.specialty-card:hover i {
    transform: scale(1.1);
    color: var(--accent-color);
    filter: drop-shadow(0 0 8px var(--accent-color));
}

.specialty-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.specialty-card p {
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding: 0 1rem;
}

.specialty-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.specialty-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    opacity: 0.85;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.specialty-list li:last-child {
    margin-bottom: 0;
}

.specialty-list li::before {
    content: '';
    position: absolute;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.specialty-card:hover .specialty-list li {
    opacity: 1;
    transform: translateX(5px);
}

.specialty-card:hover .specialty-list li::before {
    background-color: var(--accent-color);
    box-shadow: 0 0 12px var(--accent-color);
    opacity: 1;
}

.specialty-card .specialty-list li:nth-child(2) {
    transition-delay: 0.05s;
}

.specialty-card .specialty-list li:nth-child(3) {
    transition-delay: 0.1s;
}

.specialty-card .specialty-list li:nth-child(4) {
    transition-delay: 0.15s;
}

/* FAQ Section */
.faq {
    padding: 5rem 5%;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.1);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.faq-question:hover {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.03);
}

.faq-question i {
    transition: transform 0.3s ease, color 0.3s ease;
    margin-left: 1rem;
}

.faq-question:hover i {
    color: var(--accent-color);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid transparent;
}

.faq-item.active {
    background: rgba(255, 255, 255, 0.08);
}

.faq-item.active .faq-question {
    color: var(--accent-color);
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
    opacity: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item.active .fa-chevron-down {
    transform: rotate(180deg);
    color: var(--accent-color);
}

/* Contact Section */
.contact {
    padding: 5rem 5%;
    background: rgba(26, 54, 93, 0.1);
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.instagram-feed {
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
}

.instagram-feed iframe {
    border: none;
    background: transparent;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.contact-card.whatsapp::before {
    background: linear-gradient(135deg, #075e54 0%, #128c7e 100%);
}

.contact-card.instagram::before {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-card > * {
    position: relative;
    z-index: 1;
}

.contact-card i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.contact-card h3 {
    margin-bottom: 1rem;
}

.contact-card .btn {
    display: inline-block;
    margin-top: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--primary-color);
    padding: 5rem 5% 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo h3 {
    margin-bottom: 1rem;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.footer-links a,
.footer-contact a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 0.8rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .nav-links {
        display: none;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 8rem 1rem 3rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .specialties,
    .faq,
    .contact {
        padding: 3rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

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

.hero-content,
.specialty-card,
.contact-card {
    animation: fadeIn 1s ease-out forwards;
}
