/* Custom CSS for Dr. César Cantú Website */

:root {
    /* Medical Professional Palette */
    --primary-color: #E8B946; /* Refined Golden Yellow - Endometriosis awareness but more sophisticated */
    --primary-dark: #D4A328; /* Deeper gold for accents */
    --primary-light: #F4E6A1; /* Light gold for subtle backgrounds */
    
    /* Trust & Professionalism */
    --medical-blue: #2C5282; /* Deep trustworthy blue for headers and important text */
    --medical-teal: #4A90A4; /* Calming teal for secondary elements */
    --soft-sage: #87A96B; /* Gentle sage green for wellness feel */
    
    /* Warmth & Compassion */
    --warm-coral: #E07A5F; /* Approachable coral for CTAs */
    --blush-pink: #F2CC8F; /* Soft peachy tone for feminine touch */
    --lavender-gray: #B8B8D1; /* Calming lavender for backgrounds */
    
    /* Neutrals & Base */
    --cream-base: #FEFBF3; /* Warm white base */
    --sand-whisper: #F5F0E8; /* Very light sand for cards */
    --pearl-white: #FCFCFC; /* Pure white for contrast */
    --charcoal: #2D3748; /* Professional dark text */
    --warm-gray: #4A5568; /* Secondary text */
    --light-gray: #E2E8F0; /* Borders and dividers */
}

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

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--charcoal);
    background-color: var(--cream-base);
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--medical-blue);
}

/* Color Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75);
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: var(--charcoal);
    font-weight: 600;
    padding: 15px 30px;
    border-radius: 25px;
    transition: all 0.3s ease;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(232, 185, 70, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: var(--charcoal);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(232, 185, 70, 0.4);
}

.btn-accent {
    background: linear-gradient(135deg, var(--warm-coral), #d46650);
    border: none;
    color: var(--pearl-white);
    font-weight: 600;
    padding: 15px 30px;
    border-radius: 25px;
    transition: all 0.3s ease;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(224, 122, 95, 0.3);
}

.btn-accent:hover {
    background: linear-gradient(135deg, #d46650, var(--warm-coral));
    color: var(--pearl-white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(224, 122, 95, 0.4);
}

/* Location Button Styles */
.btn-outline-primary {
    background: var(--pearl-white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    padding: 15px 30px;
    border-radius: 25px;
    transition: all 0.3s ease;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.2);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--pearl-white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 58, 95, 0.4);
}

.btn-outline-light {
    background: var(--pearl-white);
    border: 2px solid var(--pearl-white);
    color: var(--primary-color);
    font-weight: 600;
    padding: 15px 30px;
    border-radius: 25px;
    transition: all 0.3s ease;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-outline-light:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--pearl-white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 58, 95, 0.4);
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-img {
    height: 45px;
    transition: height 0.3s ease;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    color: var(--warm-gray) !important;
    transition: all 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-radius: 8px;
}

.navbar-nav .nav-link:hover {
    color: var(--medical-blue) !important;
    background-color: var(--primary-light);
}

.navbar-toggler {
    padding: 8px 12px;
    font-size: 1.2rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(232, 185, 70, 0.25);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(315deg, rgba(20, 20, 20, 0.45) 0%, rgba(20, 20, 20, 0.30) 50%, rgba(20, 20, 20, 0.20) 100%),
                image-set(
                    url('../images/heroes/hero-home-lavado-quirurgico.webp') type('image/webp'),
                    url('../images/heroes/hero-home-lavado-quirurgico.jpg') type('image/jpeg')
                ) center/cover no-repeat,
                url('../images/heroes/hero-home-lavado-quirurgico.jpg') center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.hero-section h1,
.hero-section .hero-title {
    color: #f0f0f0 !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.hero-section p,
.hero-section .hero-subtitle {
    color: #f0f0f0 !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.hero-section > .container {
    position: relative;
    z-index: 2;
}

/* Removed hero-image class as it's no longer needed */

/* Service Cards */
.service-card {
    background: var(--pearl-white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(44, 82, 130, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid var(--light-gray);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(44, 82, 130, 0.15);
    border-color: var(--primary-color);
    background: var(--sand-whisper);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--medical-teal));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.service-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--medical-teal), var(--soft-sage));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--pearl-white);
    box-shadow: 0 8px 20px rgba(74, 144, 164, 0.3);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--charcoal);
    transform: scale(1.05);
}

.service-card h4 {
    color: var(--medical-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.service-card p {
    color: var(--warm-gray);
    line-height: 1.7;
    font-size: 15px;
}

/* Specialty List */
.specialty-list li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

/* Testimonials */
.testimonial-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    border-left: 4px solid var(--accent-color);
}

.stars {
    font-size: 1.2rem;
}

.blockquote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--dark-gray);
}

.blockquote-footer {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary-color);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
}

/* Contact Form */
.contact-form {
    background: var(--pearl-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(44, 82, 130, 0.08);
    border: 1px solid var(--light-gray);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, var(--primary-color), var(--medical-teal), var(--warm-coral));
}

.form-control {
    padding: 15px 20px;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: var(--sand-whisper);
    min-height: 50px;
}

.form-control:focus {
    border-color: var(--medical-teal);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 164, 0.2);
    background-color: var(--pearl-white);
}

.form-label {
    font-weight: 600;
    color: var(--medical-blue);
    margin-bottom: 0.75rem;
    font-size: 16px;
}

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

/* Contact Info */
.contact-info {
    background: linear-gradient(135deg, var(--pearl-white), var(--sand-whisper));
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(44, 82, 130, 0.08);
    height: 100%;
    border: 1px solid var(--light-gray);
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, var(--warm-coral), var(--primary-color));
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    transition: all 0.3s ease;
    min-height: 70px;
    border: 1px solid rgba(74, 144, 164, 0.1);
}

.contact-item:hover {
    background: var(--pearl-white);
    transform: translateX(8px);
    box-shadow: 0 8px 20px rgba(74, 144, 164, 0.15);
}

.contact-item i {
    font-size: 2rem;
    margin-right: 1.5rem;
    margin-top: 0.25rem;
    min-width: 2.5rem;
    color: var(--medical-teal);
    transition: all 0.3s ease;
}

.contact-item:hover i {
    color: var(--primary-color);
    transform: scale(1.1);
}

.contact-item h5 {
    color: var(--medical-blue);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.contact-item p {
    color: var(--warm-gray);
    margin-bottom: 0;
    line-height: 1.6;
    font-size: 16px;
}

.contact-item a {
    color: var(--charcoal);
    font-weight: 600;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--medical-teal);
}
    padding: 1.5rem;
    background: var(--sand-color);
    border-radius: 10px;
    transition: all 0.3s ease;
    min-height: 70px;
}

.contact-item:hover {
    background: var(--cream-color);
    transform: translateX(5px);
}

.contact-item i {
    font-size: 2rem;
    margin-right: 1.5rem;
    margin-top: 0.25rem;
    min-width: 2.5rem;
    color: var(--primary-color);
}

.contact-item h5 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.contact-item p {
    color: var(--text-color);
    margin-bottom: 0;
    line-height: 1.6;
    font-size: 16px;
}

.contact-item a {
    color: var(--text-color);
    font-weight: 500;
    text-decoration: none;
    font-size: 16px;
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* Map Container */
.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.map-container iframe {
    min-height: 400px;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: var(--white);
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
}

.whatsapp-float.show {
    opacity: 1;
    visibility: visible;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: var(--white);
    transform: scale(1.1);
}

/* WhatsApp Button Styles */
.btn-whatsapp {
    background-color: #25d366 !important;
    border-color: #25d366 !important;
    color: white !important;
    font-weight: 600;
    padding: 15px 30px;
    border-radius: 25px;
    transition: all 0.3s ease;
    min-height: 50px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #128c7e !important;
    border-color: #128c7e !important;
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Gallery Styles */
.gallery-container {
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(44, 82, 130, 0.08);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(44, 82, 130, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 95, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

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

.gallery-overlay i {
    font-size: 2rem;
    color: var(--pearl-white);
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* Mobile Gallery Swiper */
.gallery-swiper {
    display: none;
    position: relative;
    overflow: visible;
    border-radius: 15px;
    padding: 0 50px;
}

.gallery-swiper-wrapper {
    display: flex;
    transition: transform 0.3s ease;
    gap: 1rem;
    padding: 0 10px;
}

.gallery-swiper-slide {
    min-width: 280px;
    flex-shrink: 0;
}

.gallery-swiper-slide .gallery-item {
    margin-bottom: 0;
}

.gallery-swiper-slide img {
    height: 200px;
}

/* Swiper Navigation */
.swiper-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 58, 95, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.swiper-nav:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.swiper-prev {
    left: 0px;
}

.swiper-next {
    right: 0px;
}

/* Swiper Indicators */
.swiper-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
}

.swiper-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(30, 58, 95, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.swiper-dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

/* Gallery Modal Styles */
.modal-content {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: var(--pearl-white);
    padding: 1.5rem;
}

.modal-title {
    font-weight: 600;
    font-size: 1.3rem;
}

.btn-close {
    font-size: 1rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

#modalImage {
    border-radius: 0;
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    background: #f8f9fa;
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-container {
        display: none !important;
    }
    
    .gallery-swiper {
        display: block !important;
    }
    
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
    
    #modalImage {
        max-height: 70vh;
    }
}

@media (max-width: 576px) {
    .gallery-swiper-slide {
        min-width: 250px;
    }
    
    .gallery-swiper-slide img {
        height: 180px;
    }
    
    .modal-dialog {
        margin: 0.25rem;
        max-width: calc(100% - 0.5rem);
    }
    
    .modal-header {
        padding: 0.75rem;
    }
    
    #modalImage {
        max-height: 60vh;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 120px;
    right: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Social Links */
.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
    margin-bottom: 2rem;
}

.alert-success {
    background-color: rgba(184, 134, 11, 0.1);
    color: #9d7209;
    border-left: 4px solid var(--accent-color);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-img {
        height: 45px;
    }

    .hero-section {
        background: linear-gradient(315deg, rgba(254, 251, 243, 0.1) 0%, rgba(232, 185, 70, 0.15) 50%, rgba(212, 163, 40, 0.2) 100%), 
                    url('../images/hero-mobile.jpg') center/cover no-repeat;
        text-align: center;
        padding: 2rem 0;
    }
    
    /* Services horizontal scroll for mobile */
    .services-container {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        padding-bottom: 1rem;
        margin: 0 -15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .services-container > [class*="col-"] {
        flex: 0 0 280px;
        max-width: 280px;
        width: 280px;
    }
    
    /* Hide scrollbar but keep functionality */
    .services-container::-webkit-scrollbar {
        display: none;
    }
    
    .services-container {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    /* Add margin to pregnancy calculator button on mobile */
    .calculator-form .col-md-6:nth-child(2) {
        margin-top: 1rem;
    }
    
    .hero-image {
        max-width: 300px;
        height: 300px;
        margin-top: 2rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .testimonial-card {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .contact-info {
        padding: 2rem 1.5rem;
        margin-top: 2rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 30px;
        right: 30px;
        font-size: 24px;
    }
    
    .back-to-top {
        bottom: 100px;
        right: 30px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    /* Extra small mobile adjustments */
    .hero-section {
        background: linear-gradient(315deg, rgba(254, 251, 243, 0.1) 0%, rgba(232, 185, 70, 0.15) 50%, rgba(212, 163, 40, 0.2) 100%), 
                    url('../images/hero-mobile.jpg') center/cover no-repeat;
        min-height: 70vh;
        padding: 3rem 0;
    }
    
    .hero-section h1,
    .hero-section .hero-title {
        color: #f0f0f0 !important;
        font-size: 2rem;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    }
    
    .hero-section p,
    .hero-section .hero-subtitle {
        color: #f0f0f0 !important;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    /* Ensure hero buttons wrap properly on mobile */
    .hero-section .d-flex,
    .hero-endometriosis .d-flex {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem !important;
    }
    
    .hero-section .btn,
    .hero-endometriosis .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .h1 {
        font-size: 2rem;
    }
}

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

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Pregnancy Calculator Styles */
.pregnancy-calculator {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.calculator-form {
    background: var(--sand-color);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(255, 193, 7, 0.3);
}

.pregnancy-info-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-color);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.2);
}

.week-display {
    margin-bottom: 1.5rem;
}

.week-number {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.week-label {
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trimester-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pregnancy-details {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(30, 58, 95, 0.1);
    height: 100%;
}

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

.data-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.data-item:hover {
    background: rgba(184, 134, 11, 0.1);
    transform: translateX(5px);
}

.data-item i {
    font-size: 1.5rem;
    min-width: 2rem;
}

.pregnancy-progress {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(30, 58, 95, 0.1);
}

.progress-container {
    position: relative;
}

.progress {
    border-radius: 10px;
    overflow: hidden;
    background-color: #e9ecef;
}

.progress-bar {
    transition: width 0.8s ease;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    color: var(--white);
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.weekly-advice {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(30, 58, 95, 0.1);
}

.advice-content {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
}

.advice-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.advice-item:last-child {
    margin-bottom: 0;
}

.appointment-cta {
    background: rgba(184, 134, 11, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(184, 134, 11, 0.2);
}

.bg-accent {
    background-color: var(--accent-color) !important;
}

/* Responsive adjustments for pregnancy calculator */
@media (max-width: 768px) {
    .pregnancy-calculator {
        padding: 2rem 1.5rem;
    }
    
    .calculator-form {
        padding: 1.5rem;
    }
    
    .week-number {
        font-size: 3rem;
    }
    
    .pregnancy-info-card {
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    .pregnancy-details {
        padding: 1.5rem;
    }
    
    .data-item {
        padding: 0.8rem;
    }
    
    .pregnancy-progress,
    .weekly-advice,
    .appointment-cta {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .whatsapp-float,
    .back-to-top,
    .carousel-control-prev,
    .carousel-control-next {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: #000 !important;
    }
    
    .text-white,
    .text-white-75 {
        color: #000 !important;
    }
}
