/* Variables */
:root {
    --color-primary: #4CAF50; /* Verde */
    --color-secondary: #2196F3; /* Azul */
    --color-light: #f8f9fa;
    --color-dark: #343a40;
    --color-white: #ffffff;
    --color-gray: #6c757d;
    --font-primary: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
}

/* Reset y Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--color-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

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

a:hover {
    color: var(--color-secondary);
}

section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--color-dark);
}

.section-header h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--color-primary);
}

.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
    color: var(--color-primary);
    border-color: var(--color-primary);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Navbar */
.navbar {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: var(--transition);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-primary);
}

.navbar-nav .nav-link {
    padding: 8px 15px;
    font-weight: 500;
    color: var(--color-dark);
}

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

.navbar-nav .nav-link.cta-button {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50px;
    margin-left: 15px;
}

.navbar-nav .nav-link.cta-button:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--color-white);
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Servicios */
.services-section {
    background-color: var(--color-light);
}

.service-card {
    background-color: var(--color-white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card .icon-box {
    width: 70px;
    height: 70px;
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-card .icon-box i {
    font-size: 30px;
    color: var(--color-primary);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

/* Testimonios */
.testimonial-card {
    background-color: var(--color-white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.patient-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 5px solid rgba(76, 175, 80, 0.1);
}

.patient-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.patient-info {
    text-align: center;
}

.rating {
    color: #FFD700;
    margin-bottom: 15px;
}

/* Galería */
.gallery-container {
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item .overlay span {
    color: var(--color-white);
    font-weight: 600;
    font-size: 1.2rem;
}

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

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

/* Beneficios */
.benefits-section {
    background-color: var(--color-light);
}

.benefit-card {
    background-color: var(--color-white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.benefit-card .icon-box {
    width: 70px;
    height: 70px;
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.benefit-card .icon-box i {
    font-size: 30px;
    color: var(--color-primary);
}

.benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

/* Sistema de Citas */
.appointment-section {
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
}

.appointment-content {
    padding: 30px;
}

.appointment-content h2 {
    font-weight: 700;
    margin-bottom: 20px;
}

.features {
    margin-top: 30px;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.feature i {
    margin-right: 10px;
    font-size: 20px;
}

.appointment-form {
    background-color: var(--color-white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: var(--color-dark);
}

.appointment-form h3 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--color-primary);
}

.form-control, .form-select {
    border-radius: 50px;
    padding: 10px 20px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
}

.form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

/* Footer */
.footer {
    background-color: #202020;
    color: var(--color-light);
}

.footer h4 {
    color: var(--color-white);
    margin-bottom: 20px;
    font-weight: 600;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-white);
    margin-right: 10px;
    transition: var(--transition);
}

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

hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: var(--transition);
}

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

/* Modal de Confirmación */
.confirmation-icon {
    font-size: 4rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.calendar-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.calendar-buttons .btn {
    margin-bottom: 10px;
}

/* Media Queries */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .navbar-nav .nav-link.cta-button {
        margin-left: 0;
        margin-top: 10px;
        display: inline-block;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .appointment-form {
        margin-top: 40px;
    }
    
    .gallery-item img {
        height: 200px;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate__fadeInUp {
    animation: fadeInUp 0.5s ease forwards;
}

.animate__delay-1s {
    animation-delay: 0.2s;
}

.animate__delay-2s {
    animation-delay: 0.4s;
}
