/* Paleta de Colores y Configuración */
:root {
    --primary-color: #0d6efd;       /* Azul Dental Principal */
    --secondary-color: #0dcaf0;     /* Celeste de Acento */
    --dark-color: #212529;          /* Gris Oscuro para Textos */
    --light-bg: #f8f9fa;            /* Fondo Claro */
    --white: #ffffff;               /* Blanco Puro */
    --gray-border: #dee2e6;         /* Bordes y Líneas */
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-subtitle {
    text-align: center;
    color: #6c757d;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #0b5ed7;
}

/* Encabezado */
.header {
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--dark-color);
}

.logo span {
    color: var(--primary-color);
}

.nav a {
    color: var(--dark-color);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Sección Hero */
.hero {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(13, 202, 240, 0.1)), url('imagenes/hero-bg.jpg') no-repeat center center/cover;
    padding: 8rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    color: #495057;
}

/* Servicios */
.services {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-color);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* Carrusel de la Galería */
.gallery-section {
    padding: 5rem 0;
}

.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.carousel {
    display: flex;
    position: relative;
    height: 450px;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.carousel-item.active {
    opacity: 1;
    z-index: 2;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    width: 100%;
    padding: 1rem;
    text-align: center;
    font-size: 1.1rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background-color: var(--white);
}

.prev { left: 15px; }
.next { right: 15px; }

/* Contacto */
.contact {
    padding: 5rem 0;
    background-color: var(--light-bg);
}

.contact-form {
    max-width: 600px;
    margin: 3rem auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--gray-border);
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Pie de Página */
.footer {
    background-color: var(--dark-color);
    color: #adb5bd;
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
}

