:root {
    --primary-color: #a14f01; /* Tono morado/lavanda para clínica derma */
    --secondary-color: #df924a; /* Tono más claro para detalles */
    --text-dark: #333;
    --text-light: #f9f9f9;
    --bg-body: #ffffff;
    --bg-card: #fdfdff;
}

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

/* --- Globales y Utilidades --- */
.container {
    max-width: 90%
    margin: 0 auto;
    padding: 0 20px;
}

/* --- BARRA DE NAVEGACIÓN --- */
header {

    /* Ruta de la imagen */
    background-image: linear-gradient(rgb(224, 76, 8, 0.6), rgba(107, 61, 0.4)), url('lambrin.webp');
        
    /* Ajustes para que la imagen luzca bien */
    background-size: cover;       /* Ajusta la imagen para cubrir todo el header */
    background-position: center;  /* Centra la imagen */
    background-repeat: no-repeat; /* Evita que la imagen se duplique */

    color: var(--text-light);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header img {
    width: 120px;       /* Tamaño deseado */
    height: auto;        /* Mantiene la proporción para que no se vea estirada */
    max-width: 100%;     /* Evita que se salga del contenedor en móviles */
}

.social-icons a {
    color: var(--text-light);
    font-size: 20px;
    margin-right: 15px;
    text-decoration: none;
    transition: color 0.3s ease;
}
.social-icons a:hover { color: var(--secondary-color); }

.logo-name {
    font-size: 1.4rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Playfair Display', serif; /* Fuente más elegante */
    color: var(--text-light);
}

.menu-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 28px;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s ease;
}
.menu-btn:hover { transform: rotate(90deg); }

.dropdown-menu {
    display: none;
    position: absolute;
    top: 60px; /* Ajustar si el header es más alto */
    right: 20px;
    background: var(--bg-card);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 10px;
    overflow: hidden;
    min-width: 180px;
    z-index: 999;
    animation: fadeInScale 0.3s ease-out forwards;
    transform-origin: top right;
}
.dropdown-menu.active { display: block; }

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.dropdown-menu a {
    display: block;
    padding: 15px 25px;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* --- CARRUSEL ANIMADO --- */
.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 350px; /* Altura más generosa para las imágenes */
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    background-color: #f0f0f5; /* Fondo suave para la transición */
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    text-align: center;
    padding: 20px;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}
.carousel-slide p {
    font-size: 1.2rem;
    max-width: 70%;
}

/* Indicadores de Carrusel */
.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.dot {
    height: 10px;
    width: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.dot.active {
    background-color: white;
}

/* --- SECCIÓN BENTO GRID --- */
.bento-section {
    padding: 60px 0;
    background-color: var(--bg-body);
}

.bento-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
}

/* Estilo Botones */
.category-btn {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 12px 0;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 80%; max-width: 350px;
    text-align: center; letter-spacing: 1px;
            
    /* Propiedades de enlace */
    display: block; 
    text-decoration: none; 
    color: white;
}
.category-btn:hover { 
    background: white; 
    color: black; 
    transform: scale(1.02); 
}

.categories { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 15px; 
    width: 100%; 
}

.indice-section {
    padding: 60px 0;
    background-color: var(--primary-color);
}

.menu-section { 
    margin-bottom: 4rem; 
}

.contenedor {
    width: 70%;       /* Ocupa el 70% del ancho de su padre */
    margin: 0 auto;   /* Centra el div horizontalmente */
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Más flexible */
    grid-auto-rows: 250px; /* Mayor altura para las tarjetas */
    gap: 20px;
}

.bento-item {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    text-decoration: none;
    color: var(--text-light);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.bento-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

/* Estilos específicos para el diseño bento */
.bento-item.large-h { grid-column: span 2; } /* Ocupa dos columnas */
.bento-item.large-v { grid-row: span 2; }   /* Ocupa dos filas */

/* En pantallas más pequeñas, los ítems grandes se comportan normal */
@media (max-width: 768px) {
    .bento-item.large-h, .bento-item.large-v {
        grid-column: span 1;
        grid-row: span 1;
    }
}


.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    padding: 25px 20px 15px;
    color: var(--text-light);
    transition: background 0.3s ease;
}
.bento-item:hover .overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 100%);
}

.overlay strong {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 5px;
    font-family: 'Playfair Display', serif;
}

.btn-ver-mas {
    background: var(--secondary-color);
    color: var(--text-dark);
    padding: 8px 20px;
    border-radius: 25px;
    display: inline-block;
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.btn-ver-mas:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* --- BOTÓN WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    text-align: center;
    font-size: 38px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .logo-name { font-size: 1.2rem; }
    .carousel-wrapper { height: 280px; }
    .carousel-slide h3 { font-size: 2rem; }
    .carousel-slide p { font-size: 1rem; max-width: 90%; }
    .bento-section { padding: 40px 0; }
    .bento-section h2 { font-size: 1.8rem; margin-bottom: 30px; }
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 30px;
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    header { padding: 10px; }
  /*  .social-icons { display: none; }  Ocultar iconos sociales en móviles muy pequeños */
    .logo-name { margin: 0 auto; } /* Centrar logo */
    .dropdown-menu { right: 10px; }
    .carousel-wrapper { height: 220px; }
    .carousel-slide h3 { font-size: 1.5rem; }
    .carousel-slide p { display: none; } /* Ocultar descripciones en móviles */
    .contenedor { width: 90% }
}