@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Varela&display=swap');

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

body {
    font-family: 'Lora', serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #f8f9fa;
}

/* Header & Navigation */
header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.logo h1 {
    font-family: 'Varela', sans-serif;
    color: #f5f5f0;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: #f5f5f0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    font-family: 'Varela', sans-serif;
    color: #f5f5f0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 400;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #f5f5f0;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.btn {
    font-family: 'Varela', sans-serif;
    display: inline-block;
    padding: 16px 40px;
    background: white;
    color: #3498db;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 400;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* Services Section */
.services {
    padding: 100px 2rem;
    background-color: #ffffff;
}

.services h2 {
    font-family: 'Varela', sans-serif;
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: #1a1a1a;
    font-weight: 400;
    letter-spacing: 1px;
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

.services-nav {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 20px;
    position: sticky;
    top: 100px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

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

.category-toggle-btn {
    display: none;
    font-family: 'Varela', sans-serif;
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.category-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.category-toggle-btn:active {
    transform: translateY(0);
}

.category-toggle-btn::after {
    content: ' ▼';
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.category-toggle-btn.active::after {
    content: ' ▲';
}

.services-nav a {
    font-family: 'Varela', sans-serif;
    padding: 1rem 1.2rem;
    background-color: white;
    color: #4a5568;
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.3s ease;
    text-align: left;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 3px solid transparent;
}

.services-nav a:hover {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(41, 128, 185, 0.1) 100%);
    color: #3498db;
    border-left-color: #3498db;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

.services-nav a.active {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.15) 0%, rgba(41, 128, 185, 0.15) 100%);
    color: #3498db;
    border-left-color: #3498db;
    font-weight: 600;
}

.service-category {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    scroll-margin-top: 100px;
    border: 1px solid rgba(0,0,0,0.05);
}

.category-title {
    font-family: 'Varela', sans-serif;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #f0f0f0;
    font-weight: 400;
}

.price-grid {
    display: grid;
    gap: 0.5rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #fafbfc;
    border: 1px solid transparent;
}

.price-item:hover {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, rgba(41, 128, 185, 0.05) 100%);
    border-color: rgba(52, 152, 219, 0.2);
    transform: translateX(5px);
}

.service-name {
    font-size: 1.05rem;
    color: #2d3748;
    font-weight: 500;
}

.service-price {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-note {
    display: block;
    font-size: 0.85rem;
    color: #718096;
    font-weight: normal;
    margin-top: 0.3rem;
}

.subcategory-title {
    font-family: 'Varela', sans-serif;
    color: #2d3748;
    font-size: 1.4rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid #3498db;
    font-weight: 400;
}

.service-group-header {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(41, 128, 185, 0.1) 100%) !important;
    border: none !important;
    font-weight: 600;
}

.price-item.indented {
    padding-left: 3rem;
    background-color: #ffffff;
    border-left: 3px solid #e2e8f0;
}

/* About Section */
.about {
    padding: 100px 2rem;
    max-width: 1400px;
    margin: 0 auto;
    background: white;
}

.about h2 {
    font-family: 'Varela', sans-serif;
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: #1a1a1a;
    font-weight: 400;
    letter-spacing: 1px;
}

.about-content p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 4rem;
    color: #4a5568;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.feature {
    text-align: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, rgba(41, 128, 185, 0.05) 100%);
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(52, 152, 219, 0.15);
}

.feature h4 {
    font-family: 'Varela', sans-serif;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 400;
}

.feature p {
    color: #4a5568;
    line-height: 1.6;
}

/* Appointment Section */
.appointment {
    padding: 100px 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.appointment h2 {
    font-family: 'Varela', sans-serif;
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    color: #1a1a1a;
    font-weight: 400;
    letter-spacing: 1px;
}

.appointment-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.appointment-info {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 3rem;
    border-radius: 24px;
    height: fit-content;
    box-shadow: 0 20px 60px rgba(52, 152, 219, 0.3);
}

.appointment-info h3 {
    font-family: 'Varela', sans-serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.appointment-info p {
    margin-bottom: 2rem;
    line-height: 1.8;
    opacity: 0.95;
}

.clinic-hours {
    background: rgba(255, 255, 255, 0.15);
    padding: 2rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.clinic-hours h4 {
    font-family: 'Varela', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: #fff;
    font-weight: 400;
}

.clinic-hours p {
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
}

.appointment-form {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
}

/* Progress Steps */
.form-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
    position: relative;
}

.form-steps::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, #e2e8f0 0%, #e2e8f0 100%);
    z-index: 0;
    border-radius: 10px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #a0aec0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 0.8rem;
    transition: all 0.4s ease;
    font-size: 1.1rem;
}

.step-label {
    font-size: 0.9rem;
    color: #a0aec0;
    text-align: center;
    transition: all 0.3s;
    font-weight: 500;
}

.step.active .step-number {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

.step.active .step-label {
    color: #3498db;
    font-weight: 600;
}

.step.completed .step-number {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.4);
}

.step.completed .step-label {
    color: #48bb78;
}

/* Form Steps Content */
.form-step {
    display: none;
    animation: slideIn 0.4s ease;
}

.form-step.active {
    display: block;
}

.form-step h3 {
    font-family: 'Varela', sans-serif;
    color: #1a1a1a;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 400;
}

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

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    font-family: 'Varela', sans-serif;
    display: block;
    margin-bottom: 0.8rem;
    color: #2d3748;
    font-weight: 400;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Confirmation Details */
.confirmation-details {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, rgba(41, 128, 185, 0.05) 100%);
    padding: 2.5rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.confirm-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.confirm-item:last-child {
    border-bottom: none;
}

.confirm-item strong {
    color: #2d3748;
    font-weight: 600;
    min-width: 120px;
}

.confirm-item span {
    color: #4a5568;
    text-align: right;
    flex: 1;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
}

.btn-prev {
    background: #e2e8f0;
    color: #4a5568;
    flex: 1;
    padding: 16px;
    font-weight: 600;
    border-radius: 12px;
}

.btn-prev:hover {
    background: #cbd5e0;
    transform: none;
    box-shadow: none;
}

.btn-next {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    flex: 1;
    padding: 16px;
    font-weight: 600;
    border-radius: 12px;
}

.btn-appointment {
    flex: 1;
    padding: 18px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    font-weight: 600;
    border-radius: 12px;
}

.form-message {
    margin-top: 1.5rem;
    padding: 1.2rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.1) 0%, rgba(56, 161, 105, 0.1) 100%);
    color: #2f855a;
    border: 2px solid rgba(72, 187, 120, 0.3);
    display: block;
}

.form-message.error {
    background: linear-gradient(135deg, rgba(245, 101, 101, 0.1) 0%, rgba(229, 62, 62, 0.1) 100%);
    color: #c53030;
    border: 2px solid rgba(245, 101, 101, 0.3);
    display: block;
}

/* Contact Section */
.contact {
    padding: 100px 2rem;
    background: white;
}

.contact h2 {
    font-family: 'Varela', sans-serif;
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    color: #1a1a1a;
    font-weight: 400;
    letter-spacing: 1px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
}

.info-item {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, rgba(41, 128, 185, 0.05) 100%);
    border-radius: 20px;
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.info-item h4 {
    font-family: 'Varela', sans-serif;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 400;
}

.info-item p {
    color: #4a5568;
    line-height: 1.6;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
}

footer a {
    color: #3498db;
    transition: color 0.3s;
}

footer a:hover {
    color: #2980b9;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    color: white;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    animation: whatsappPulse 2s infinite;
    z-index: -1;
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        position: relative;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    }

    .nav-links.active {
        max-height: 400px;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 1.2rem 2rem;
        font-size: 1rem;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .services h2,
    .about h2,
    .contact h2,
    .appointment h2 {
        font-size: 2.2rem;
    }

    .services-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .category-toggle-btn {
        display: block;
    }

    .services-nav {
        position: relative;
        top: 0;
        padding: 1.5rem;
        display: none;
    }

    .services-nav.show {
        display: flex;
    }

    .appointment-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-category {
        padding: 2rem;
    }

    .form-steps {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .step {
        flex: 0 0 calc(50% - 0.75rem);
    }

    .form-navigation {
        flex-direction: column;
    }

    .confirm-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .confirm-item span {
        text-align: left;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .whatsapp-float svg {
        width: 30px;
        height: 30px;
    }
}

/* Location Section */
.location {
    padding: 100px 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.location h2 {
    font-family: 'Varela', sans-serif;
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    color: #1a1a1a;
    font-weight: 400;
    letter-spacing: 1px;
}

.location-image {
    max-width: 1200px;
    margin: 0 auto 3rem auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.05);
}

.location-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.05);
}

.map-container iframe {
    width: 100%;
    height: 450px;
    display: block;
}

@media (max-width: 768px) {
    .location h2 {
        font-size: 2.2rem;
    }

    .map-container iframe {
        height: 350px;
    }
}
