/* Base styles */
:root {
    --transition-speed: 0.3s;
    --primary-color: #000000;
    --secondary-color: #ccdbc4;
    --background-color: #ffffff;
    --text-color: #000000;
    --card-bg: #ffffff;
    --navbar-bg: #ffffff;
    --footer-bg: #000000;
    --footer-text: #ffffff;
    --hover-color: #ccdbc4;
    --font-primary: 'Quicksand', sans-serif;
    --font-secondary: 'Cinzel', serif;
}

/* Professional theme */
html[data-theme="professional"] {
    --primary-color: #2b6cb0;
    --secondary-color: #2c5282;
    --accent-color: #38b2ac;
    --background-color: #f7fafc;
    --background-alt: #edf2f7;
    --card-bg: #ffffff;
    --text-color: #2d3748;
    --navbar-bg: #ffffff;
    --footer-bg: #2c5282;
    --footer-text: #ffffff;
    --hover-color: #4299e1;
}

/* Dark theme */
html[data-theme="dark"] {
    --primary-color: #805ad5;
    --secondary-color: #6b46c1;
    --accent-color: #4fd1c5;
    --background-color: #1a202c;
    --background-alt: #2d3748;
    --card-bg: #2d3748;
    --text-color: #f7fafc;
    --navbar-bg: #1a202c;
    --footer-bg: #171923;
    --footer-text: #f7fafc;
    --hover-color: #9f7aea;
}

/* Warm theme */
html[data-theme="warm"] {
    --primary-color: #c53030;
    --secondary-color: #2b6cb0;
    --accent-color: #805ad5;
    --background-color: #fff5f5;
    --background-alt: #fed7d7;
    --card-bg: #ffffff;
    --text-color: #2d3748;
    --navbar-bg: #ffffff;
    --footer-bg: #c53030;
    --footer-text: #ffffff;
    --hover-color: #e53e3e;
}

/* General Styles */
body {
    padding-top: 76px;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color var(--transition-speed), color var(--transition-speed);
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    letter-spacing: 0.5px;
    font-weight: 600;
}

.section-padding {
    padding: 100px 0;
}

/* Navbar */
.navbar {
    background-color: var(--navbar-bg) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    padding: 0;
}

.brand-container {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 70px;
    margin-right: 15px;
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.doctor-name {
    font-family: var(--font-secondary);
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.doctor-specialty {
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 500;
    color: #666;
    line-height: 1;
}

.nav-link {
    color: var(--text-color) !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link {
    font-family: var(--font-primary);
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--hover-color) !important;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-color);
}

.nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Section */
#inicio {
    position: relative;
    background: linear-gradient(to right, rgba(204, 219, 196, 0.3), rgba(204, 219, 196, 0.5));
    border-bottom: 1px solid rgba(204, 219, 196, 0.6);
    box-shadow: inset 0 0 50px rgba(204, 219, 196, 0.4);
}

#inicio .col-lg-6:first-child {
    position: relative;
    z-index: 2;
    padding: 30px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--secondary-color);
    transform: translateY(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#inicio .col-lg-6:first-child:hover {
    transform: translateY(5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

#inicio h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

#inicio h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    border-bottom: 2px solid rgba(204, 219, 196, 0.7);
    display: inline-block;
    padding-bottom: 5px;
    margin-top: 5px;
}

#inicio h4 {
    color: var(--text-color);
    font-family: var(--font-primary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 10px;
    display: inline-block;
}

#inicio .lead {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    color: var(--text-color);
}

/* Cards */
.card {
    background-color: var(--card-bg);
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card-title {
    color: var(--primary-color);
    font-family: var(--font-secondary);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.card-text {
    color: var(--text-color);
}

.card-subtitle {
    color: #666;
    font-weight: 600;
}

/* Timeline */
.timeline-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timeline-item h4 {
    color: var(--primary-color);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
    padding: 10px 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background-color: var(--hover-color);
    border-color: var(--hover-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.agenda-btn {
    font-size: 1.1rem;
    padding: 12px 25px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.agenda-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.agenda-btn:hover:before {
    left: 100%;
}

/* WhatsApp Button - Keeping brand colors */
.btn-success {
    background-color: #25d366 !important;
    border-color: #25d366 !important;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background-color: #128C7E !important;
    border-color: #128C7E !important;
    transform: translateY(-2px);
}

.location-btn {
    font-family: var(--font-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    color: #343a40;
    border-color: #343a40;
}

.location-btn.active {
    background-color: #343a40;
    color: white;
    border-color: #343a40;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background-color: var(--footer-bg) !important;
    color: var(--footer-text) !important;
}

.doctor-footer-info {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.doctor-footer-info p {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* Sections */
section.bg-light {
    background-color: var(--background-alt) !important;
}

/* Contact Section */
.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 400px;
    margin-bottom: 20px;
    display: block;
}

.map-container iframe {
    width: 100% !important;
    height: 400px !important;
    border: 0;
    display: block !important;
    visibility: visible !important;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--hover-color);
    text-decoration: none;
}

/* Lead text */
.lead {
    font-family: var(--font-primary);
    font-weight: 500;
}

/* Social icons in contact section */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    text-decoration: none;
}

/* Social icons in footer */
.footer-social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
}

.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    font-size: 16px;
    transition: all 0.3s ease;
}

.footer-social-icon:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    text-decoration: none;
}

/* Doctor photo */
.doctor-photo {
    width: 75%;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border: 5px solid white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    margin: 0 auto;
}

.doctor-photo:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Accessibility - Ensuring proper contrast ratios */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }

    #inicio .col-lg-6:first-child {
        margin-bottom: 30px;
        transform: translateY(0);
        padding: 25px;
    }

    #inicio h1 {
        font-size: 1.8rem;
        width: 100%;
        text-align: center;
    }

    #inicio h2 {
        font-size: 1.5rem;
        width: 100%;
        text-align: center;
    }

    #inicio h4 {
        font-size: 1rem;
    }

    .doctor-photo {
        width: 85%;
        margin-top: 20px;
    }

    .agenda-btn {
        width: 100%;
        margin-bottom: 20px;
    }
}
