/* 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);
}

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

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

.logo-img {
    height: 70px;
    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(254, 251, 243, 0.1) 0%, rgba(232, 185, 70, 0.15) 50%, rgba(212, 163, 40, 0.2) 100%), 
                url('https://happytohelp.mx/drcesar/slide-11.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;
}

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

/* 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) {
    .hero-section {
        text-align: center;
        padding: 2rem 0;
    }
    
    .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 {
        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 1.5rem;
        font-size: 1rem;
    }
    
    .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;
    }
}
