:root {
    --primary-color: #2c7da0;
    --secondary-color: #61a5c2;
    --accent-color: #468faf;
    --dark-color: #014f86;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

.navbar {
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: white !important;
}

.nav-link {
    color: rgba(255,255,255,0.9) !important;
    margin: 0 10px;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-link:hover {
    color: white !important;
    transform: translateY(-2px);
}

.hero {
    background: linear-gradient(135deg, rgba(44, 125, 160, 0.95), rgba(1, 79, 134, 0.75)), url('../images/consultorio.jpg');
    background-size: cover;
    background-position: bottom center;
    background-repeat: no-repeat;
    color: white;
    padding: 120px 0;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

.btn-primary-custom {
    background: white;
    color: var(--primary-color);
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: bold;
    border: none;
    transition: all 0.3s;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255,255,255,0.3);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    font-weight: bold;
    margin-bottom: 10px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto;
    border-radius: 2px;
}

.services {
    padding: 80px 0;
    background: var(--light-bg);
}

.service-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(44, 125, 160, 0.2);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h4 {
    color: var(--dark-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.about {
    padding: 80px 0;
}

.about-img {
    background-image: url('../images/dentist.jpg');
    border-radius: 20px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    background-position: right;
    background-size: cover;
    background-repeat: no-repeat;
}

.about-content h3 {
    color: var(--dark-color);
    font-weight: bold;
    margin-bottom: 20px;
}

.feature-item {
    margin: 15px 0;
    display: flex;
    align-items: center;
}

.feature-item i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.5rem;
}

.gallery {
    padding: 80px 0;
    background: var(--light-bg);
}

.gallery-item {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 15px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    margin-bottom: 30px;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-item:hover {
    transform: scale(1.05);
}

.contact {
    padding: 80px 0;
}

.contact-info {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 20px;
    width: 50px;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 125, 160, 0.25);
}

.btn-submit {
    background: var(--primary-color);
    color: white;
    padding: 12px 40px;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: var(--dark-color);
    transform: translateY(-2px);
}

.map-container {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 15px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

footer {
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
    color: white;
    padding: 40px 0 20px;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: all 0.3s;
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .contact-form {
        padding: 28px;
    }
}