:root {
    --primary-pastel: #fbc4ab;
    --accent-pink: #f4978e;
    --bg-soft: #fff0f5;
    --card-bg: #ffffff;
    --text-dark: #4a4a4a;
    --text-muted: #7a7a7a;
}

html {
    scroll-behavior: smooth; /* Desplazamiento fluido nativo */
}

html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-soft);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

header {
    width: 100%;
    max-width: 1100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.logo {
    font-size: 1.6rem;
    font-family: 'Georgia', serif;
    font-weight: bold;
    color: var(--accent-pink);
}

.lang-switch button {
    background: white;
    color: var(--accent-pink);
    border: 2px solid var(--primary-pastel);
    padding: 6px 14px;
    cursor: pointer;
    border-radius: 20px;
    margin-left: 5px;
    font-weight: bold;
    transition: all 0.2s;
}

.lang-switch button:hover {
    background: var(--primary-pastel);
    color: white;
}

/* SECCIÓN HERO */
.hero {
    width: 100%;
    background: linear-gradient(rgba(255, 240, 245, 0.4), rgba(255, 240, 245, 0.85)), 
                url('https://unsplash.com') no-repeat center center/cover;
    padding: 80px 20px;
    text-align: center;
    box-sizing: border-box;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-family: 'Georgia', serif;
    font-size: 2.5rem;
    color: var(--accent-pink);
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.btn-hero {
    background-color: var(--accent-pink);
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    font-weight: bold;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(244, 151, 142, 0.4);
    transition: transform 0.2s;
    display: inline-block;
}

.btn-hero:hover {
    transform: translateY(-2px);
}

/* SECCIÓN CARACTERÍSTICAS */
.features {
    display: flex;
    gap: 20px;
    max-width: 900px;
    width: 100%;
    padding: 40px 20px;
    box-sizing: border-box;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    flex: 1;
    min-width: 250px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.feature-card h3 {
    margin: 5px 0;
    color: var(--accent-pink);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* GALERÍA */
.gallery-container {
    width: 100%;
    max-width: 900px;
    padding: 20px;
    box-sizing: border-box;
}

.gallery-container h2, .services-price-list h2 {
    text-align: center;
    font-family: 'Georgia', serif;
    color: var(--accent-pink);
    margin-bottom: 25px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* TABLA DE PRECIOS */
.services-price-list {
    width: 100%;
    max-width: 900px;
    padding: 20px;
    box-sizing: border-box;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 500px;
}

th, td {
    padding: 15px 20px;
    border-bottom: 1px solid #fff0f5;
}

th {
    background-color: #fff0f5;
    color: var(--accent-pink);
    font-weight: 700;
}

.font-bold { font-weight: 600; }
.price-tag { color: var(--accent-pink); font-weight: bold; }

/* CONTENEDOR FORMULARIO */
.booking-container {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(244, 151, 142, 0.12);
    width: calc(100% - 40px);
    max-width: 550px;
    margin: 40px 0 60px 0;
    box-sizing: border-box;
}

.booking-container h2 {
    text-align: center;
    margin: 0;
    color: var(--accent-pink);
    font-family: 'Georgia', serif;
}

.booking-container p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.form-group { margin-bottom: 22px; }
label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; }

input[type="text"], input[type="tel"], input[type="date"], input[type="time"], select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ffdad6;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1rem;
    background-color: #fffafb;
}

/* SELECTOR DE ESPECIALISTAS */
.artist-selector {
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.artist-option {
    flex: 1;
    cursor: pointer;
}

.artist-option input {
    display: none;
}

.artist-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fffafb;
    border: 2px solid #ffdad6;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.artist-card img, .avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 6px;
}

.avatar-placeholder {
    background: var(--primary-pastel);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.artist-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.artist-option input:checked + .artist-card {
    border-color: var(--accent-pink);
    background-color: #fff0f5;
    transform: translateY(-2px);
}

button[type="submit"] {
    width: 100%;
    background-color: var(--accent-pink);
    color: white;
    border: none;
    padding: 14px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(244, 151, 142, 0.3);
}

/* FOOTER INFORMATIVO */
.info-footer {
    width: 100%;
    background-color: white;
    padding: 40px 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

.info-grid {
    display: flex;
    max-width: 900px;
    width: 100%;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.info-box h4 {
    color: var(--accent-pink);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.info-box p {
    margin: 4px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: left;
}

/* ADAPTACIÓN MÓVIL ESTRICTA */
@media (max-width: 600px) {
    .hero h1 { font-size: 1.8rem; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item img { height: 220px; }
    .artist-selector { flex-direction: column; }
    .artist-card { flex-direction: row; gap: 15px; padding: 8px 15px; }
    .artist-card img, .avatar-placeholder { margin-bottom: 0; }
}

/* CONTENEDOR DE ALERTAS FLOTANTES */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* CAJA DE LA ALERTA (TOAST) */
.custom-toast {
    background: #ffffff;
    color: #4a4a4a;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(244, 151, 142, 0.25);
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    min-width: 280px;
    max-width: 380px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start !important; /* Fuerza la alineación superior fija para el icono */
    gap: 12px;
    border-left: 5px solid var(--accent-pink);
    animation: slideInToast 0.4s ease forwards;
}

/* El icono fijo a la izquierda */
.custom-toast > span:first-child {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* NUEVO: Cuerpo contenedor flexible orientado hacia abajo */
/*reserva*/
/*.toast-body {
    display: flex;
    flex-direction: column; 
    gap: 6px;               
    width: 100%;
}*/

.toast-body {
    display: flex;
    flex-direction: column; 
    gap: 0px !important;       /* Elimina cualquier espacio entre bloques */
    line-height: 1.2 !important; /* Junta las líneas de texto de forma compacta */
}

.toast-body br {
    content: "";
    margin-bottom: 2px; /* Controla exactamente cuántos píxeles quieres de separación */
    display: block;
}

/* BARRA DE CARGA QUE DESAPARECE */
.custom-toast::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background-color: var(--accent-pink);
    animation: shrinkProgress 4s linear forwards;
}

/* ANIMACIONES */
@keyframes slideInToast {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutToast {
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

@keyframes shrinkProgress {
    from { width: 100%; }
    to { width: 0%; }
}
