@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
:root{
	--celeste: #a8dadc;
	--celeste-oscuro: #8ecfd1;
	--verde: #2a9d8f;
	--verde-oscuro: #21867a;
	--verde-suave: #e9f5f3;

	--blanco: #ffffff;
	--gris-claro: #f5f5f5;
	--gris: #cccccc;
	--gris-texto: #555;
	--negro: #333;

	--radio: 10px;
	--transicion: 0.2s ease;
}

/* RESET */
*{
	box-sizing: border-box;
	font-family: "Google Sans", sans-serif;
	font-optical-sizing: auto;
	font-style: normal;
	font-variation-settings: "GRAD" 0;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body{
	margin: 0;
	background: var(--gris-claro);
	color: var(--negro);
}

/* CONTENEDORES */
.container{
	max-width: 900px;
	margin: auto;
	padding: 40px 20px;
}

.center{ text-align: center; }
.small{ max-width: 420px; }
.large{ max-width: 500px; }

.container600{max-width: 600px; }

/* TITULOS */
.logo{
	font-size: 42px;
	color: var(--verde);
	margin-bottom: 10px;
}

.subtitle{
	color: var(--gris-texto);
	margin-bottom: 40px;
}

/* BOTONES */
.btn{
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	border-radius: var(--radio);
	text-decoration: none;
	font-size: 16px;
	font-weight: bold;
	border: none;
	cursor: pointer;
	transition: var(--transicion);
}

.btn-principal{
	background: var(--verde);
	color: var(--blanco);
}

.btn-principal:hover{
	background: var(--verde-oscuro);
}

.btn-secundario{
	background: var(--celeste);
	color: #1d3557;
}

.btn-secundario:hover{
	background: var(--celeste-oscuro);
}

.btn-terciario{
	background: var(--verde-suave);
	color: var(--verde);
	border: 2px dashed var(--verde);
}

.btn-terciario:hover{
	background: #dff1ee;
}

/* FORMULARIOS */
form{
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: 20px;
}

label{
	font-size: 14px;
	color: var(--gris-texto);
}

input,
select, textarea{
	padding: 12px;
	border-radius: 6px;
	border: 1px solid var(--gris);
	font-size: 15px;
	background: var(--blanco);
}

input:focus,
select:focus{
	outline: none;
	border-color: var(--verde);
	box-shadow: 0 0 0 2px rgba(42,157,143,.15);
}

/* TEXTOS */
.muted{
	margin-top: 20px;
	color: #777;
	font-size: 14px;
}

/* TABLAS */
.tabla-reservas{
	width: 100%;
	border-collapse: collapse;
	background: var(--blanco);
	border-radius: var(--radio);
	overflow: hidden;
}

.tabla-reservas th{
	background: var(--verde);
	color: var(--blanco);
	padding: 10px;
	font-size: 14px;
}

.tabla-reservas td{
	padding: 10px;
	border-bottom: 1px solid var(--gris);
	font-size: 14px;
}

.estado.confirmado{ color: #2e7d32; font-weight:bold; }
.estado.pendiente_pago{ color: #ef6c00; font-weight:bold; }
.estado.cancelado{ color: #c62828; font-weight:bold; }

/* AGENDA */
.agenda{
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.fila-hora{
	display: flex;
	align-items: center;
	gap: 10px;
}

.hora{
	width: 60px;
	font-weight: bold;
}

.celdas{
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.celda{
	width: 140px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	font-size: 14px;
}

.celda.libre{
	background: #e8f5e9;
	border: 1px dashed #4caf50;
	cursor: pointer;
}

.celda.ocupada{
	background: #ffebee;
	border: 1px solid #f44336;
}

.celda.ocupada.confirmado{ background:#4caf50; color:#fff; }
.celda.ocupada.pendiente_pago{ background:#ff9800; color:#fff; }

/* SCROLL DIAS */
.dias-scroll{
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding: 10px 0;
}

.dias-scroll button{
	min-width: 90px;
	padding: 10px;
	border-radius: 6px;
	border: 1px solid var(--gris);
	background: var(--blanco);
	cursor: pointer;
}

.dias-scroll button.activo{
	background: var(--verde);
	color: var(--blanco);
}


/* MODALES */
.modal{
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.45);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1001;
	padding: 20px;
}

.modal.hidden{ display:none; }

.modal-content{
	background: var(--blanco);
	width: 100%;
	max-width: 500px;
	max-height: 90vh;
	padding: 20px;
	border-radius: var(--radio);
	display: flex;
	flex-direction: column;
	overflow-y: auto;
}

.modal800{
	max-width: 800px;
}

.modal-content h3{
	margin-top: 0;
	color: var(--verde);
}

.modal-actions{
	display: flex;
	gap: 10px;
	margin-top: 10px;
	flex-direction: row-reverse;
}

/* RESERVAR TURNO */

.buscador-empresa{
	display: flex;
	gap: 10px;
	max-width: 500px;
	margin: 20px auto;
}

.buscador-empresa input{
	flex: 1;
}

.titulo-empresa{
	text-align: center;
	color: var(--verde);
	margin: 30px 0 20px;
}

.bloque{
	background: var(--blanco);
	padding: 20px;
	border-radius: var(--radio);
	margin-bottom: 20px;
	box-shadow: 0 4px 10px rgba(0,0,0,.05);
	border: solid 1px var(--verde);
	text-align: center;
}

.bloque h4{
	text-align: center;
	margin-top: 0;
	color: var(--gris-texto);
}


/* RESULTADOS EMPRESAS */

#resultadosEmpresas{
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 700px;
	margin: 30px auto;
}

.empresa-item{
	background: var(--blanco);
	border-radius: var(--radio);
	padding: 16px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	box-shadow: 0 6px 14px rgba(0,0,0,.06);
	transition: var(--transicion);
}

.empresa-item:hover{
	transform: translateY(-2px);
	box-shadow: 0 10px 20px rgba(0,0,0,.08);
}

.empresa-info h4{
	margin: 0;
	color: var(--verde);
	font-size: 18px;
}

.empresa-info p{
	margin: 4px 0 0;
	color: var(--gris-texto);
	font-size: 14px;
}

/* BOTÓN CHICO */
.btn-sm{
	padding: 10px 16px;
	font-size: 14px;
}


/* === RESERVA TURNO – FLUJO === */

#servicios,
#profesionales{
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* SERVICIOS */
.card-servicio{
	padding: 14px 16px;
	border-radius: var(--radio);
	background: var(--gris-claro);
	border: 2px solid transparent;
	cursor: pointer;
	font-weight: bold;
	color: var(--gris-texto);
	transition: var(--transicion);
}

.card-servicio:hover{
	background: var(--verde-suave);
}

.card-servicio.activo{
	border-color: var(--verde);
	background: var(--verde-suave);
}

/* PROFESIONALES */
#profesionales button{
	padding: 12px 16px;
	border-radius: var(--radio);
	border: 2px solid var(--gris);
	background: var(--blanco);
	cursor: pointer;
	font-weight: bold;
	transition: var(--transicion);
}

#profesionales button:hover{
	border-color: var(--verde);
	color: var(--verde);
}

#profesionales button.activo{
	background: var(--verde);
	color: var(--blanco);
	border-color: var(--verde);
}

/* HORARIOS */
#horariosDisponibles{
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

#horariosDisponibles button{
	padding: 10px 14px;
	border-radius: 6px;
	border: 1px solid var(--gris);
	background: var(--blanco);
	cursor: pointer;
	transition: var(--transicion);
}

#horariosDisponibles button:hover{
	border-color: var(--verde);
	color: var(--verde);
}

#horariosDisponibles button.activo{
	background: var(--verde);
	color: var(--blanco);
	border-color: var(--verde);
}

/* BOTÓN CONFIRMAR */
#accionFinal button{
	margin: 10px auto 0;
	width: 100%;
	max-width: 320px;
	padding: 16px;
	font-size: 16px;
	font-weight: bold;
	border-radius: var(--radio);
	background: var(--verde);
	color: var(--blanco);
	border: none;
	cursor: pointer;
	transition: var(--transicion);
}

#accionFinal button:hover{
	background: var(--verde-oscuro);
}

#accionFinal button:disabled{
	background: var(--gris);
	cursor: not-allowed;
}




/* === CARD RESERVA === */

.card-reserva{
	background: var(--blanco);
	border-radius: var(--radio);
	padding: 18px;
	display: flex;
	justify-content: space-between;
	gap: 20px;
	box-shadow: 0 6px 14px rgba(0,0,0,.06);
	margin-bottom: 16px;
}

.card-reserva-info{
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 14px;
}

.reserva-fecha{
	font-size: 15px;
	font-weight: bold;
	color: var(--verde);
	display: flex;
	gap: 10px;
	align-items: center;
}

.reserva-hora{
	background: var(--verde-suave);
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 13px;
	color: var(--verde);
}

.reserva-item strong{
	font-size: 12px;
	color: var(--gris-texto);
}

.reserva-item span{
	font-size: 14px;
}

.reserva-item.direccion{
	font-size: 13px;
	color: #777;
	margin-top: 6px;
}

.card-reserva-acciones{
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
	min-width: 120px;
}

/* Responsive */
@media (max-width: 600px){
	.card-reserva{
		flex-direction: column;
	}
	.card-reserva-acciones{
		flex-direction: row;
		justify-content: flex-start;
	}
}



.badge-turno {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .3px;
	color: #fff;
}

.badge-turno.pendiente {
	background-color: #c58b00; /* amarillo ocre */
}

.badge-turno.confirmado {
	background-color: #2e7d32; /* verde */
}

.badge-turno.cancelado {
	background-color: #8b1c1c; /* rojo oscuro */
}

.badge-turno.terminado {
	background-color: #0B65B9; /* rojo oscuro */
}

.badge-turno.neutro {
	background-color: #666;
}


.turno-card {
	background: #fff;
	border-radius: 14px;
	padding: 18px;
	margin-bottom: 16px;
	box-shadow: 0 8px 25px rgba(0,0,0,.08);
	display: flex;
	gap: 20px;
	align-items: stretch;
}

/* HEADER */
.turno-header {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 170px;
}

.turno-fecha {
	font-size: 18px;
	font-weight: 700;
	color: #2aa198;
	display: flex;
	align-items: center;
	gap: 8px;
}

/* BADGE */
.badge-turno {
	font-size: 12px;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 999px;
	width: fit-content;
	display: flex;
	align-items: center;
	gap: 6px;
}

.badge-turno.pendiente {
	background: #f2c94c;
	color: #5c4600;
}

.badge-turno.confirmado {
	background: #2e7d32;
	color: #fff;
}

.badge-turno.cancelado {
	background: #8b1c1c;
	color: #fff;
}

/* BODY */
.turno-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 14px;
	font-size: 14px;
	color: #333;
}

.turno-servicio {
	font-size: 16px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 8px;
}

.turno-profesional,
.turno-lugar {
	color: #555;
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.turno-lugar i {
	margin-top: 3px;
}

/* ACCIONES */
.turno-acciones {
	display: flex;
	flex-direction: column;
	gap: 10px;
	justify-content: center;
}

.turno-acciones button {
	border: none;
	border-radius: 8px;
	padding: 10px 14px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.btn-pagar {
	background: #2aa198;
	color: #fff;
}

.btn-cancelar {
	background: #e74c3c;
	color: #fff;
}

/* HOVER */
.turno-acciones button:hover {
	opacity: .9;
}

/* MOBILE */
@media (max-width: 768px) {

	.turno-card {
		flex-direction: column;
	}

	.turno-header {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}

	.turno-acciones {
		flex-direction: row;
	}

	.turno-acciones button {
		flex: 1;
	}
}


.turno-precio {
	font-size: 18px;
	font-weight: 700;
	color: #2aa198;
	display: flex;
	align-items: center;
	gap: 8px;
}




.header-cliente {
	background: #ffffff;
	border-bottom: 1px solid #e0e0e0;
	position: sticky;
	top: 0;
	z-index: 1000;
}

.header-inner {
	max-width: 1100px;
	margin: auto;
	padding: 14px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.logo-header {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 20px;
	font-weight: 700;
	color: #2a9d8f;
	text-decoration: none;
}

.logo-header i {
	font-size: 22px;
}

.nav-cliente {
	display: flex;
	align-items: center;
	gap: 20px;
}

.nav-cliente a {
	text-decoration: none;
	color: #333;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	border-radius: 8px;
	transition: 0.2s;
	font-size: 14px;
}

.nav-cliente a:hover {
	background: #e6f5f3;
	color: #2a9d8f;
}

.nav-cliente a.logout {
	color: #b00020;
}

.menu-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 22px;
	cursor: pointer;
}

/* MOBILE */
@media (max-width: 768px) {

	.menu-toggle {
		display: block;
	}

	.nav-cliente {
		position: absolute;
		top: 64px;
		left: 0;
		right: 0;
		background: #fff;
		flex-direction: column;
		align-items: stretch;
		padding: 10px 20px;
		display: none;
		border-bottom: 1px solid #ddd;
	}

	.nav-cliente.open {
		display: flex;
	}

	.nav-cliente a {
		padding: 12px;
	}
}



.footer {
	background: #f4fefe;
	border-top: 1px solid #ddd;
	margin-top: 60px;
}

.footer-inner {
	max-width: 1100px;
	margin: auto;
	padding: 30px 20px;
	display: flex;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	font-size: 14px;
	color: #555;
}

.footer a {
	color: #2a9d8f;
	text-decoration: none;
}

.footer-redes a {
	font-size: 20px;
	margin-right: 10px;
}



.acciones {
	display: flex;
	gap: 8px;
	align-items: center;
}


.btn-icon {
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	background: #f2f2f2;
	color: #333;
	font-size: 15px;
	transition: background 0.2s ease, transform 0.1s ease;
	text-decoration: none;
}

.btn-icon:hover {
	background: #e0e0e0;
	transform: scale(1.05);
}

.btn-icon:focus {
	outline: 2px solid #999;
	outline-offset: 2px;
}
@media (max-width: 600px) {
	.btn-icon {
		width: 42px;
		height: 42px;
		font-size: 16px;
	}
}


.servicio-profesionales {
	margin-top: 4px;
	font-size: 13px;
	color: #666;
	display: flex;
	align-items: center;
	gap: 6px;
}

.servicio-profesionales i {
	font-size: 12px;
	color: #888;
}



#servicios {
	margin-top: 20px;
}

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

@media (max-width: 768px) {
	.servicios-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.card-servicio {
	border: 1px solid #ddd;
	border-radius: 12px;
	padding: 14px;
	cursor: pointer;
	transition: all .2s ease;
	background: #fff;
	height: max-content;
}

.card-servicio:hover {
	border-color: #888;
}

.card-servicio.activo {
    border-color: var(--verde);
    background: #e4ffe9;
}

.card-servicio.activo h5{
	color: var(--negro);
}

.card-servicio h5 {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 600;
	text-align: left;
}

#contenedorHorarios .card-servicio h5 {
	margin: 0;
	padding: 5px 0;
}

.card-servicio .dato {
	font-size: 13px;
	color: #555;
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 3px;
}

.card-servicio .dato i {
	font-size: 12px;
	color: #777;
}


.loading {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: #555;
	padding: 10px 0;
	justify-content: center;
}

.loading i {
	font-size: 16px;
}

.grid-cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
}

@media (max-width: 768px) {
	.grid-cards {
		grid-template-columns: repeat(1, 1fr);
	}
}


.modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.4);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 7777;
}

.modal-overlay .modal {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    max-width: 420px;
    width: 100%;
    height: 90%;
    top: 31px;
    margin: 0 auto;
	flex-wrap: wrap;
}

.modal-overlay .modal2{
	padding: 50px 20px;
	height: max-content;
	position: static;
}

.modal-overlay .modal h3 {
	margin-top: 0;
}

.modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 20px;
}


/* --- AGREGAR AL FINAL DE ESTILOS.CSS --- */

/* HERO SECTION MODERNA */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 0;
    gap: 40px;
}

.hero-text {
    flex: 1;
    max-width: 500px;
}

.hero-text h1 {
    font-size: 48px;
    line-height: 1.1;
    color: var(--verde-oscuro);
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 18px;
    color: var(--gris-texto);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    max-width: 450px;
    border-radius: 20px 20px 0 20px; /* Estilo orgánico */
    box-shadow: 20px 20px 0 var(--celeste); /* Sombra sólida de diseño */
}

/* SECCION DE PASOS (ICONS) */
.steps-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 60px 0;
    text-align: center;
}

.step-card {
    background: var(--blanco);
    padding: 30px;
    border-radius: var(--radio);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: var(--transicion);
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--verde-suave);
    color: var(--verde);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
}

.step-title {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--negro);
}

/* INPUTS DE CODIGO (OTP) */
.otp-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.otp-input {
    width: 50px;
    height: 60px;
    font-size: 24px;
    text-align: center;
    border: 2px solid var(--gris);
    border-radius: 8px;
    font-weight: bold;
    color: var(--verde);
}

.otp-input:focus {
    border-color: var(--verde);
    box-shadow: 0 0 0 4px var(--verde-suave);
    outline: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column-reverse;
        text-align: center;
        padding: 30px 0;
    }
    
    .hero-text {
        margin: auto;
    }

    .steps-section {
        grid-template-columns: 1fr;
    }
}

/* --- ESTILOS MENÚ PROFESIONAL / CLIENTE --- */

/* Saludo de bienvenida (Móvil) */
.user-welcome {
    color: var(--verde-oscuro);
    padding: 15px 12px; /* Más aire */
    font-weight: 600;
}

/* Títulos de sección (Ej: MI TRABAJO) */
.nav-label {
    font-size: 11px;
    font-weight: 800;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 20px 0 5px 0;
    padding-left: 12px; /* Alineado con el texto de los links */
    display: none; /* Oculto por defecto en escritorio */
}

/* Separador de línea */
.nav-separator {
    border-bottom: 1px solid #eee;
    margin: 8px 0;
    display: none; /* Oculto por defecto en escritorio */
}

/* RESPONSIVE: Mostrar estructura en móviles */
@media (max-width: 768px) {
    .nav-label {
        display: block; /* Mostrar en móvil */
    }
    .nav-separator {
        display: block; /* Mostrar en móvil */
    }
    /* Ajuste para que los items del menú tengan consistencia */
    .nav-cliente a {
        width: 100%;
        justify-content: flex-start; /* Alinear a la izquierda */
    }
}



.tabs-container { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 5px; margin-bottom: 20px; scrollbar-width: none; }
.tabs-container::-webkit-scrollbar { display: none; }
.tab-prof { background: #fff; border: 1px solid #ddd; padding: 15px 20px; border-radius: 30px; white-space: nowrap; cursor: pointer; font-weight: 600; color: #666; transition: 0.2s; }
.tab-prof.active { background: var(--verde); color: #fff; border-color: var(--verde); box-shadow: 0 4px 10px rgba(42, 157, 143, 0.3); }

.date-navigator { display: flex; align-items: center; justify-content: space-between; background: #fff; padding: 10px; border-radius: 12px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.btn-nav-date { background: transparent; border: none; color: var(--verde); font-size: 18px; padding: 0 10px; cursor: pointer; }
.days-wrapper { display: flex; justify-content: space-around; flex: 1; }
.day-item { text-align: center; cursor: pointer; padding: 8px 4px; border-radius: 8px; min-width: 50px; transition: 0.2s; }
.day-item.active { background: var(--verde-suave); color: var(--verde-oscuro); font-weight: bold; }
.day-item .lbl-dia { font-size: 12px; text-transform: uppercase; color: #888; display: block; margin-bottom: 2px;}
.day-item .lbl-num { font-size: 18px; }

.turnos-lista { display: flex; flex-direction: column; gap: 10px; min-height: 200px; }
.card-turno-horizontal { background: #fff; border-radius: 8px; padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 2px 5px rgba(0,0,0,0.05); border-left: 5px solid #ccc; cursor: pointer; transition: transform 0.1s; }
.card-turno-horizontal:active { transform: scale(0.98); }
.card-turno-horizontal.confirmado { border-left-color: #2e7d32; background-color: #DCEFDD; }
.card-turno-horizontal.pendiente_pago { border-left-color: #fbc02d; background-color: #FFF1CE;}
.card-turno-horizontal.terminado { border-left-color: #1565c0; opacity: 0.7; background-color: #C3DFFF; }
.card-turno-horizontal.cancelado { border-left-color: #c62828; opacity: 0.6; background-color: #FFCECE; }

.info-hora { font-weight: bold; font-size: 15px; color: #333; min-width: 60px; }
.info-datos { flex: 1; padding: 0 15px; }
.info-datos strong { display: block; font-size: 15px; color: #5a5757; }
.info-datos span { font-size: 13px; color: #666; }

.modal-close-x { position: absolute; top: 15px; right: 15px; background: #eee; color: #555; border: none; width: 32px; height: 32px; border-radius: 50%; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.modal-overlay-click { position: absolute; inset: 0; z-index: -1; }


/* =========================================
   MEJORAS RESPONSIVE (TAP TARGETS MÓVILES)
========================================= */
.btn, input, select {
	min-height: 50px; /* Más fáciles de tapear */
	font-size: 16px;
}

.card-servicio, 
#profesionales button, 
#horariosDisponibles button {
	min-height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	flex-direction: column;
}

/* =========================================
   PERFIL DE EMPRESA (Estilo App / Linktree)
========================================= */
.perfil-empresa {
	max-width: 480px;
	margin: 0 auto 30px;
	background: var(--blanco);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 8px 25px rgba(0,0,0,0.06);
	padding-bottom: 25px;
}

.perfil-portada {
	height: 160px;
	/* Fondo temporal hasta que sumemos la subida de fotos */
	background: linear-gradient(135deg, var(--celeste-oscuro), var(--verde));
	background-size: cover;
	background-position: center;
	position: relative;
}

.perfil-logo-wrapper {
	position: absolute;
	bottom: -45px;
	left: 50%;
	transform: translateX(-50%);
}

.perfil-logo {
	width: 90px;
	height: 90px;
	border-radius: 50%;
	border: 4px solid var(--blanco);
	background: #eee;
	object-fit: cover;
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.perfil-info {
	margin-top: 55px;
	text-align: center;
	padding: 0 20px;
}

.perfil-nombre {
	font-size: 22px;
	color: var(--negro);
	margin: 0 0 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.verified-badge { color: #1da1f2; font-size: 18px; }

.perfil-desc {
	color: var(--gris-texto);
	font-size: 14px;
	margin: 0;
	line-height: 1.5;
}

.perfil-redes {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin: 20px 0;
}

.perfil-redes a {
	width: 65px;
	height: 65px;
	border-radius: 50%;
	background: var(--verde-suave);
	color: var(--verde);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	text-decoration: none;
	transition: transform 0.2s;
}

.perfil-redes a:active { transform: scale(0.9); }

.perfil-botones {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 0 20px;
	margin-top: 10px;
}

/* Botones píldora del perfil */
.btn-perfil {
	padding: 16px;
	border-radius: 30px; 
	border: none;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	text-decoration: none;
	transition: 0.2s;
}

.btn-perfil.btn-reserva { background: var(--verde); color: var(--blanco); }
.btn-perfil.btn-servicios { background: #ffe4e6; color: #be123c; } /* Un rosado suave para contrastar */
.btn-perfil.btn-ubicacion { background: var(--gris-claro); color: var(--gris-texto); }

/* =========================================
   MODAL FULLSCREEN MÓVIL (Animación desde abajo)
========================================= */
.modal-fullscreen {
	position: fixed;
	inset: 0;
	background: var(--gris-claro);
	z-index: 9999;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	transform: translateY(100%);
	transition: transform 0.3s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.modal-fullscreen.open { transform: translateY(0); }

.modal-header {
	padding: 15px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--blanco);
	border-bottom: 1px solid var(--gris);
	position: sticky;
	top: 0;
	z-index: 10;
}

.modal-header h3 { margin: 0; font-size: 18px; color: var(--verde); }

.btn-close-modal {
	background: none;
	border: none;
	font-size: 20px;
	color: var(--gris-texto);
	cursor: pointer;
	padding: 5px;
}

.modal-body { padding: 20px; max-width: 900px; margin: 0 auto; width: 100%; }



/* =========================================
   LISTA DE SERVICIOS (MODAL PERFIL)
========================================= */
.lista-servicios-perfil {
	display: flex;
	flex-direction: column;
	gap: 15px;
	padding-bottom: 30px;
}

.card-servicio-perfil {
	background: var(--blanco);
	border: 1px solid var(--gris);
	border-radius: 16px;
	padding: 18px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 15px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.info-serv h4 {
	margin: 0 0 6px;
	color: var(--negro);
	font-size: 16px;
	line-height: 1.2;
}

.info-serv span {
	display: block;
	font-size: 13px;
	color: var(--gris-texto);
	margin-bottom: 4px;
}

.info-serv .precio {
	font-weight: 800;
	color: var(--verde);
	font-size: 16px;
	margin-top: 6px;
}

.info-serv .sena {
	font-size: 12px;
	color: #d97706; /* Naranja sutil para la seña */
	background: #fef3c7;
	padding: 2px 8px;
	border-radius: 4px;
	display: inline-block;
	margin-top: 4px;
}

.card-servicio-perfil button {
	border-radius: 30px; /* Botón bien redondeado tipo app */
	padding: 10px 20px; border: none;
}



/* Estilos para las vistas previas de imágenes */
.preview-container {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.img-preview-box {
    background: #f0f0f0;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #888;
    font-size: 13px;
    position: relative;
}

.img-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Hace que la imagen llene la caja sin deformarse */
    position: absolute;
    top: 0;
    left: 0;
}

.preview-portada {
    width: 100%;
    height: 140px;
    border-radius: 12px;
}

.preview-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto; /* Centramos el logo */
}

/* Ocultamos el input file feo por defecto */
.input-file-custom {
    font-size: 14px;
    padding: 8px;
    cursor: pointer;
}







/* =========================================
   VARIABLES LOCALES VINCULADAS AL TEMA GLOBAL
========================================= */
:root {
	/* Usamos tus colores de estilos.css */
	--primary: var(--verde);
	--primary-dark: var(--verde-oscuro);
	--primary-light: var(--verde-suave);

	--text-main: var(--negro);
	--text-muted: var(--gris-texto);

	--bg-main: var(--gris-claro);
	--bg-card: var(--blanco);
	--border: var(--gris);

	/* Sombras y Radios extra para esta vista */
	--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
	--radius: 12px;
	--radius-lg: 16px;
	--transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Quitamos el body{} porque ya lo maneja estilos.css */

/* =========================================
   LAYOUT PRINCIPAL
========================================= */
.page-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem 1rem;
}

.page-header {
	text-align: center;
	margin-bottom: 2.5rem;
}

.page-header h1 {
	font-size: clamp(1.5rem, 4vw, 2.25rem);
	font-weight: 800;
	color: var(--text-main);
	margin-bottom: 0.5rem;
	letter-spacing: -0.025em;
}

.page-header p {
	color: var(--text-muted);
	font-size: 1.125rem;
	max-width: 600px;
	margin: 0 auto;
}

/* =========================================
   GRID DEL FORMULARIO
========================================= */
.form-layout {
	display: grid;
	gap: 2rem;
	grid-template-columns: 1fr;
}

@media (min-width: 900px) {
	.form-layout {
		grid-template-columns: 340px 1fr;
		align-items: start;
	}
}

/* =========================================
   TARJETAS Y SECCIONES
========================================= */
.card {
	background: var(--bg-card);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	padding: 1.5rem;
	border: 1px solid var(--border);
}

.section-header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 2px solid var(--bg-main);
}

.section-header h2 {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--text-main);
	margin: 0;
}

.section-header i {
	color: var(--primary);
	font-size: 1.25rem;
}

/* =========================================
   VISUAL BUILDER (COLUMNA IZQUIERDA)
========================================= */
.visual-card {
	position: sticky;
	top: 2rem; /* Le damos un poco de aire superior al scrollear */
	z-index: 100;
}

.preview-device {
	background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
	border-radius: var(--radius);
	padding: 1.5rem 1rem;
	position: relative;
	overflow: hidden;
}

.preview-device::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 4px;
	background: #d1d5db;
	border-radius: 0 0 4px 4px;
}

.phone-mockup {
	background: white;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
	position: relative;
}

.portada-area {
	width: 100%;
	height: 140px;
	/* Usamos el celeste de tu paleta para el gradiente por defecto */
	background: linear-gradient(135deg, var(--celeste) 0%, var(--celeste-oscuro) 100%);
	position: relative;
	cursor: pointer;
	transition: var(--transition);
	display: flex;
	align-items: center;
	justify-content: center;
}

.portada-area:hover { filter: brightness(0.95); }
.portada-area.has-image { background: none; }

.logo-area {
	width: 90px;
	height: 90px;
	border-radius: 50%;
	background: white;
	border: 4px solid white;
	position: absolute;
	top: 95px;
	left: 50%;
	transform: translateX(-50%);
	cursor: pointer;
	box-shadow: var(--shadow-lg);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	transition: var(--transition);
	z-index: 10;
}

.logo-area:hover { transform: translateX(-50%) scale(1.05); }

.upload-trigger {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
	color: #fff; /* Blanco para que contraste con el fondo base */
	font-size: 0.75rem;
	font-weight: 600;
	pointer-events: none;
	text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.logo-area .upload-trigger {
	color: var(--text-muted);
	text-shadow: none;
}

.upload-trigger i {
	font-size: 1.5rem;
	opacity: 0.8;
}

.portada-area:hover .upload-trigger,
.logo-area:hover .upload-trigger {
	color: var(--primary);
	text-shadow: none;
	opacity: 1;
}

.portada-area:hover .upload-trigger i,
.logo-area:hover .upload-trigger i {
	opacity: 1;
	transform: scale(1.1);
}

.preview-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	top: 0;
	left: 0;
}

.phone-content {
	padding: 3.5rem 1.5rem 2rem;
	text-align: center;
}

.phone-content h3 {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--text-main);
	margin-bottom: 0.25rem;
}

.phone-content p {
	font-size: 0.875rem;
	color: var(--text-muted);
	margin: 0;
}

.upload-hint {
	margin-top: 1rem;
	text-align: center;
	font-size: 0.875rem;
	color: var(--text-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

/* =========================================
   INPUTS Y FORMULARIOS
========================================= */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
	font-size: 0.875rem;
	color: var(--text-main);
}

.form-group label .required { color: #ef4444; margin-left: 0.25rem; }

.form-control {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--border); /* Suavizado a 1px */
	border-radius: var(--radius);
	font-size: 1rem;
	transition: var(--transition);
	background: white;
}

.form-control:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px var(--primary-light);
}

textarea.form-control {
	resize: vertical;
	min-height: 100px;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 640px) {
	.form-row { grid-template-columns: 1fr 1fr; }
}

.hint-text {
	font-size: 0.75rem;
	color: var(--text-muted);
	margin-top: 0.25rem;
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

/* =========================================
   REDES SOCIALES
========================================= */
.redes-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 640px) {
	.redes-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
	.redes-grid { grid-template-columns: repeat(3, 1fr); }
}

/* CORRECCIÓN MÓVIL: Evita el scroll trap */
@media (max-width: 899px) {
	.visual-card {
		position: relative;
		top: auto;
		z-index: 1;
	}
}

.input-group {
	position: relative;
	display: flex;
	align-items: stretch;
}

.input-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-muted);
	pointer-events: none;
	z-index: 2;
}

.input-group .form-control { padding-left: 3rem; }

.input-group-addon {
	position: absolute;
	left: 28px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	color: var(--text-muted);
	font-weight: 600;
	font-size: 0.875rem;
	pointer-events: none;
}

/* Colores específicos de redes al hacer focus */
.input-group.instagram:focus-within .input-icon { color: #e4405f; }
.input-group.tiktok:focus-within .input-icon { color: #000000; }
.input-group.facebook:focus-within .input-icon { color: #1877f2; }

/* =========================================
   BOTONES Y ACCIONES
========================================= */
.form-actions {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 2px solid var(--bg-main);
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 1rem;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0 22px;
	font-weight: bold;
	font-size: 1rem;
	border-radius: 100px;
	border: none;
	cursor: pointer;
	transition: var(--transition);
	width: max-content;
}

.btn-primary {
	background: var(--primary);
	color: white;
	box-shadow: 0 4px 6px -1px rgba(42, 157, 143, 0.2);
}

.btn-primary:hover:not(:disabled) {
	background: var(--primary-dark);
	transform: translateY(-2px);
	box-shadow: 0 10px 20px -5px rgba(42, 157, 143, 0.3);
}

.btn-primary:disabled {
	background: var(--border);
	color: var(--text-muted);
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.btn-primary.loading {
	color: transparent;
	position: relative;
}

.btn-primary.loading::after {
	content: '';
	position: absolute;
	width: 20px;
	height: 20px;
	border: 2px solid #ffffff;
	border-top-color: transparent;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

.alert {
	width: 100%;
	padding: 1rem;
	border-radius: var(--radius);
	font-weight: 600;
	font-size: 0.875rem;
	display: none;
	align-items: center;
	gap: 0.5rem;
}

.alert.show { display: flex; }
.alert-success { background: var(--primary-light); color: var(--primary-dark); }
.alert-error { background: #fee2e2; color: #991b1b; }

/* =========================================
   UTILIDADES
========================================= */
/* =========================================
   BOTONES DE REDES SOCIALES (PERFIL PÚBLICO)
========================================= */
.perfil-redes {
    display: flex;
    gap: 25px;
    justify-content: center;
    margin-top: 15px;
}

.perfil-redes a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--gris-claro, #f3f4f6);
    color: var(--gris-texto, #6b7280);
    font-size: 2rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efectos Hover por Marca */
.perfil-redes a.red-wa:hover {
    background-color: #25D366; /* Verde WhatsApp */
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(37, 211, 102, 0.3);
}

.perfil-redes a.red-ig:hover {
    /* Gradiente oficial de Instagram */
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(214, 36, 159, 0.3);
}

.perfil-redes a.red-tk:hover {
    background-color: #000000; /* Negro TikTok */
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.perfil-redes a.red-fb:hover {
    background-color: #1877F2; /* Azul Facebook */
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(24, 119, 242, 0.3);
}


/* =========================================
   ALINEACIÓN DE BOTONES CON MATERIAL SYMBOLS
========================================= */
.btn-perfil {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px; /* Espacio exacto entre el ícono y el texto */
    /* Mantené acá el resto de los estilos que ya tenías para este botón (padding, border, etc.) */
}

.btn-perfil .material-symbols-rounded {
    font-size: 20px; /* El tamaño por defecto es 24px, 20px suele quedar mejor en botones */
    line-height: 1;
}

/* =========================================
   MATERIAL DESIGN 3 - TOGGLE SWITCH
========================================= */
.md-switches-container {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Espacio entre los servicios */
}

.md-switch-item {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Texto a la izq, switch a la der */
    cursor: pointer;
    padding: 12px 16px;
    background: var(--blanco, #ffffff);
    border-radius: 12px;
    border: 1px solid var(--gris, #e5e7eb);
    transition: background-color 0.2s ease;
	gap: 10px;
	min-width: 0;
}

.md-switch-item:hover {
    background: var(--gris-claro, #f9fafb);
}

.md-switch-text {
    font-weight: 500;
    font-size: 15px;
    color: var(--negro, #374151);
	/* El combo mágico para los 3 puntitos */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
    margin-right: 15px;
}

/* Ocultar el checkbox feo del navegador */
.md-switch-input {
    display: none;
}

/* El fondo del interruptor (Track) */
.md-switch-track {
    width: 50px;
    height: 28px;
    background-color: var(--gris-claro, #f3f4f6);
    border-radius: 30px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 0 0 2px var(--gris-texto, #9ca3af); /* Borde cuando está apagado */
}

/* La bolita del interruptor (Thumb) */
.md-switch-thumb {
    width: 16px;
    height: 16px;
    background-color: var(--gris-texto, #6b7280);
    border-radius: 50%;
    position: absolute;
    top: 6px;
    left: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- ESTADOS CUANDO ESTÁ MARCADO (CHECKED) --- */

/* Pinta el fondo del interruptor de verde */
.md-switch-input:checked + .md-switch-track {
    background-color: var(--verde, #10b981);
    box-shadow: inset 0 0 0 2px var(--verde, #10b981);
}

/* Mueve la bolita a la derecha, la agranda y la pinta de blanco */
.md-switch-input:checked + .md-switch-track .md-switch-thumb {
    background-color: #ffffff;
    width: 20px;
    height: 20px;
    top: 4px;
    left: 26px;
}



/* =========================================
   ESTILOS MATERIAL DESIGN 3 (HEADER & NAV)
========================================= */
:root {
    --md-sys-color-surface: #ffffff;
    --md-sys-color-surface-container: #f3f4f6;
    --md-sys-color-primary: var(--verde, #10b981);
    --md-sys-color-on-primary: #ffffff;
    --md-elevation-2: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --md-elevation-3: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* --- TOP HEADER --- */
.header-cliente {
    background: var(--md-sys-color-surface);
    box-shadow: var(--md-elevation-2);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.logo-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-main);
    text-decoration: none;
	margin-right: 20px;
}
.logo-header .material-symbols-rounded { font-size: 28px; color: var(--md-sys-color-primary); }

/* --- SELECTOR DE EMPRESAS (CHIP) --- */
.empresa-selector-container {
    flex: 1;
    display: flex;
    justify-content: center;
}
.md-chip-select {
    appearance: none;
    background: var(--md-sys-color-surface-container);
    border: none;
    padding: 8px 36px 8px 16px;
    border-radius: 100px; /* Forma de pastilla MD3 */
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%231f2937%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    outline: none;
}
.md-chip-badge {
    background: var(--md-sys-color-surface-container);
    padding: 8px 16px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* --- DESKTOP NAV --- */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}
.desktop-nav a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 600;
    display: flex;
	font-size: 14px;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}
.desktop-nav a:hover { color: var(--md-sys-color-primary); }
.desktop-nav .btn-header {
    background: var(--md-sys-color-primary);
    color: white;
    padding: 8px 16px;
    border-radius: 100px;
}
.desktop-nav .btn-header:hover { background: var(--verde-oscuro); color: white; }

/* --- DROPDOWN (DESKTOP) --- */
.md-dropdown {
    position: relative;
    display: inline-block;
}
.md-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: none;
    border: none;
    font-weight: 600;
    color: #4b5563;
    padding: 8px;
}
.md-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 220px;
    border-radius: 12px;
    box-shadow: var(--md-elevation-3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    z-index: 1001;
}
.md-dropdown:hover .md-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.md-dropdown-header {
    padding: 8px 16px;
    font-weight: bold;
    color: var(--md-sys-color-primary);
    border-bottom: 1px solid #eee;
    margin-bottom: 8px;
}
.md-dropdown-menu a {
    padding: 10px 16px;
    color: #374151;
    font-weight: 500;
}
.md-dropdown-menu a:hover { background: #f3f4f6; color: var(--md-sys-color-primary); }

/* --- BOTTOM NAVIGATION (MOBILE) --- */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 999;
    padding-bottom: env(safe-area-inset-bottom);
}
.bn-list {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 8px 0;
}
.bn-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #6b7280;
    gap: 4px;
    cursor: pointer;
}
.bn-item .material-symbols-rounded { font-size: 24px; }
.bn-item span { font-size: 11px; font-weight: 600; }
.bn-item.active, .bn-item:hover { color: var(--md-sys-color-primary); }

/* --- BOTTOM SHEET (MOBILE ACCOUNT MENU) --- */
.bottom-sheet-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 1002;
    opacity: 0; visibility: hidden; transition: 0.3s;
}
.bottom-sheet {
    position: fixed; bottom: -100%; left: 0; width: 100%;
    background: white; border-radius: 24px 24px 0 0;
    z-index: 1003; transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 24px; box-shadow: var(--md-elevation-3);
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
}
.bottom-sheet.open { bottom: 0; }
.bottom-sheet-overlay.open { opacity: 1; visibility: visible; }
.bs-drag-handle {
    width: 40px; height: 4px; background: #e5e7eb;
    border-radius: 4px; margin: -10px auto 20px;
}
.bs-header { font-size: 1.2rem; font-weight: bold; margin-bottom: 16px; color: var(--md-sys-color-primary); }
.bs-menu a {
    display: flex; align-items: center; gap: 12px; padding: 14px 0;
    color: #374151; text-decoration: none; font-weight: 600; font-size: 16px;
    border-bottom: 1px solid #f3f4f6;
}
.bs-menu a:last-child { border-bottom: none; color: #ef4444; /* Rojo para salir */ }

/* --- RESPONSIVE LOGIC --- */
@media (max-width: 850px) {
    .desktop-nav { display: none; } /* Ocultar menú arriba */
    .mobile-bottom-nav { display: block; } /* Mostrar menú abajo */
    /* Dejar espacio abajo del body para que el fixed nav no tape contenido */
    body { padding-bottom: 80px; } 
    /* Ajuste Logo Mobile */
	.container {
		padding: 20px 15px 15px;
	}
    .header-admin .logo-header { display: none; } /* Solo el icono para dar lugar al Select */
}
@media (min-width: 851px) {
    .mobile-bottom-nav, .bottom-sheet, .bottom-sheet-overlay { display: none !important; }
}

/* =========================================
   MATERIAL DESIGN 3 - GLOBAL ALERT DIALOG
========================================= */
.md-dialog-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 100000; /* Bien arriba de todo */
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: 0.2s ease;
}
.md-dialog-overlay.open { 
    opacity: 1; visibility: visible; 
}
.md-dialog-surface {
    background: var(--md-sys-color-surface, #ffffff);
    border-radius: 28px;
    padding: 24px;
    width: 90%; max-width: 380px;
    box-shadow: 0 24px 38px 3px rgba(0,0,0,0.14);
    transform: scale(0.9); transition: 0.2s cubic-bezier(0.2, 0, 0, 1);
}
.md-dialog-overlay.open .md-dialog-surface { 
    transform: scale(1); 
}
.md-dialog-title {
    font-size: 24px; font-weight: 400; color: #1f2937; margin: 0 0 16px 0; 
}
.md-dialog-content { 
    font-size: 15px; color: #4b5563; margin: 0 0 24px 0; line-height: 1.5; 
}
.md-dialog-actions { 
    display: flex; justify-content: flex-end; gap: 8px; 
}
.md-dialog-btn {
    background: transparent; color: var(--verde, #10b981); border: none;
    padding: 10px 16px; font-weight: 600; font-size: 14px; border-radius: 100px;
    cursor: pointer; transition: background 0.2s;
}
.md-dialog-btn:hover { 
    background: rgba(16, 185, 129, 0.1); 
}


/* Botón secundario para los Confirm */
.md-dialog-btn-cancel {
    color: #6b7280; /* Gris sutil */
}
.md-dialog-btn-cancel:hover {
    background: rgba(107, 114, 128, 0.1);
}


/* =========================================
   MATERIAL DESIGN 3 - SNACKBAR (TOAST)
========================================= */
.md-snackbar {
    visibility: hidden;
    min-width: 280px;
    max-width: 400px;
    background-color: #313033; /* Gris muy oscuro, casi negro */
    color: #F4EFF4; /* Blanco hueso para contrastar bien */
    text-align: left;
    border-radius: 8px; /* Casi cuadrado, esquinas sutiles */
    padding: 14px 16px;
    position: fixed;
    z-index: 1000000;
    left: 50%;
    bottom: 30px;
    font-size: 14px;
    font-weight: 400;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    /* Animaciones base */
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s cubic-bezier(0.2, 0, 0, 1);
}

/* Clase que se activa con JS */
.md-snackbar.show {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}



.header-control {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}
.lista-checks {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	margin-top: 5px;
	background: #f9f9f9;
	padding: 10px;
	border-radius: 6px;
	border: 1px solid #eee;
	
}
.check-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	cursor: pointer;
}




/* Avatar simple con iniciales */
.avatar-prof {
	width: 40px; height: 40px;
	background: var(--verde);
	color: #fff;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-weight: bold; font-size: 18px;
	flex-shrink: 0;
}



.upload-wrapper {
	display: flex;
	gap: 15px;
	align-items: center;
	margin-bottom: 20px;
	background: #f9fafb;
	padding: 15px;
	border-radius: 12px;
	border: 2px dashed #d1d5db;
	transition: border-color 0.2s;
}
.upload-wrapper:hover {
	border-color: var(--verde);
}
.upload-preview {
	width: 80px;
	height: 80px;
	border-radius: 12px;
	background: #e5e7eb;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex-shrink: 0;
	color: #9ca3af;
}
.upload-preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: none; /* Se oculta por defecto hasta que haya imagen */
}
.upload-actions {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}
/* Ocultamos el input original */
#serv_imagen {
	display: none;
}
.btn-upload {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--verde-suave, #e6f8f3);
	color: var(--verde, #10b981);
	border: none;
	padding: 8px 16px;
	border-radius: 100px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.2s;
}
.btn-upload:hover {
	background: rgba(16, 185, 129, 0.2);
}



@media (max-width: 850px) {
	.lista-checks {
		grid-template-columns: repeat(1, 1fr);
	}
}


/* =========================================
   NOTAS DE CONFIRMACIÓN (MATERIAL 3)
========================================= */
.nota-alerta {
    background-color: #fffbeb; /* Fondo ámbar muy suave */
    color: #b45309; /* Texto ámbar oscuro */
    border: 1px solid #fde68a;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

.nota-info {
    background-color: #f0fdf4; /* Fondo verde muy suave */
    color: #166534; /* Texto verde oscuro */
    border: 1px solid #bbf7d0;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

.nota-icon {
    font-size: 22px;
    flex-shrink: 0;
}


/*---- ESTILOS INDEX -----*/

/* === ANIMACIONES === */
@keyframes fadeInUp {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}
.animar-entrada { animation: fadeInUp 0.8s cubic-bezier(0.2, 0, 0, 1) forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* === HERO SECTION MODERNO (Split Layout) === */
.hero-moderno {
	background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.15) 100%);
	border-radius: 32px;
	padding: 40px;
	margin-bottom: 40px;
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	gap: 40px;
}

.hero-moderno-img {
	flex: 1;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.hero-moderno-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	aspect-ratio: 4/3; /* Mantiene una proporción elegante */
}

.hero-moderno-content {
	flex: 1;
	text-align: left; /* Alineamos el texto a la izquierda en PC */
}

.hero-moderno h1 { font-size: 2.8rem; color: #1f2937; margin-bottom: 15px; letter-spacing: -1px; line-height: 1.2; }
.hero-moderno h1 span { color: var(--verde); display: block; }
.chat-active h1 span { display: initial; }


.hero-moderno p { font-size: 1.1rem; color: #4b5563; margin: 0 0 30px 0; line-height: 1.6; }

/* BUSCADOR DEL HERO */
.hero-search-box {
	display: flex; background: white; padding: 8px; border-radius: 100px; width: 100%; box-shadow: 0 20px 40px rgba(0,0,0,0.08); transition: transform 0.3s, box-shadow 0.3s; flex-direction: row;
}
.hero-search-box:focus-within { transform: translateY(-3px); box-shadow: 0 25px 50px rgba(16, 185, 129, 0.15); }
.hero-search-input { flex: 1; border: none; padding: 15px 25px; font-size: 16px; border-radius: 100px; outline: none; background: transparent; }
.hero-search-btn { background: var(--verde); color: white; border: none; border-radius: 100px; padding: 0 30px; font-weight: 600; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 8px; }
.hero-search-btn:hover { background: #0ea5e9; }

.hero-trust { margin-top: 20px; font-size: 13px; color: #6b7280; display: flex; align-items: center; justify-content: flex-start; gap: 6px; }

/* MODO CELULAR */
@media (max-width: 768px) {
	.hero-moderno { flex-direction: column; padding: 10px; text-align: center; gap: 20px; }
	.hero-moderno-img img { aspect-ratio: 16/9; } /* Más apaisada en celu */
	.hero-moderno-content { text-align: center; }
	.hero-trust { justify-content: center; }
	.hero-search-box { flex-direction: column; border-radius: 20px; padding: 15px; background: transparent; box-shadow: none; gap: 10px; }
	.hero-search-box:focus-within { transform: none; box-shadow: none; }
	.hero-search-input { background: white; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
	.hero-search-btn { border-radius: 12px; padding: 15px; justify-content: center; }
}


/* === SECCIONES DESTACADAS === */
.seccion-titulo { 
	display: flex;
    align-items: stretch;
    margin-bottom: 20px;
    flex-direction: column;
}
.seccion-titulo h2 { margin: 0; font-size: 1.5rem; color: #1f2937; }
.seccion-titulo a { color: var(--verde); text-decoration: none; font-weight: 600; font-size: 14px; }

.seccion-titulo-sub{
	display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
}

.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-bottom: 40px; }

/* CARDS MEJORADAS */
.card-moderna {
	background: white; border-radius: 20px; padding: 15px; border: 1px solid #f3f4f6; transition: 0.3s; cursor: pointer; text-decoration: none; display: block; color: inherit;
}
.card-moderna:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.06); border-color: transparent; }

/* === Layout Card Empresa con Logo Flotante === */
.card-empresa-cover-wrapper {
	position: relative; /* Esto es CLAVE: crea el contexto para que el logo flote acá adentro */
	margin-bottom: 12px;
}

.card-empresa-img {
	width: 100%; height: 120px; border-radius: 12px; object-fit: cover; background: #eee; display: block;
}

.card-empresa-logo-float {
	position: absolute; /* Se posiciona relativo al wrapper */
	right: 10px; /* Pegado a la derecha */
	bottom: -30px;
    width: 60px;
    height: 60px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid white; /* Un borde blanco grueso para separarlo de la portada */
	box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Sombra para darle profundidad */
	background: white;
}

.card-empresa-info {
	/* Le damos un margen a la derecha para que el texto largo no se meta abajo del logo */
	padding-right: 50px; 
}
.card-empresa-info h3 { margin: 0 0 5px; font-size: 16px; color: #1f2937; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-empresa-info p { margin: 0; font-size: 13px; color: #6b7280; display: flex; align-items: center; gap: 4px; }



/* Layout Card Servicio Mejorado con Imagen */
.card-servicio-home { 
	padding: 0; /* Le sacamos el padding global para que la imagen toque los bordes */
	overflow: hidden; 
	background: white;
	display: flex;
	flex-direction: column;
}
.card-servicio-img-wrapper {
	position: relative;
	width: 100%;
	height: 160px;
	background: #f3f4f6;
}
.card-servicio-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.tag-precio { 
	position: absolute;
	bottom: 10px;
	right: 10px;
	background: white; 
	color: var(--verde); 
	padding: 6px 12px; 
	border-radius: 100px; 
	font-weight: 800; 
	font-size: 15px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.15);
	margin: 0;
}
.card-servicio-info {
	padding: 15px;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
.card-servicio-info h3 { margin: 0 0 8px; font-size: 16px; color: #1f2937; }
.card-servicio-info p { margin: 0; font-size: 13px; color: #6b7280; display: flex; align-items: center; gap: 6px; }


/* STEPS */
.steps-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin: 60px 0; }
.step-card { text-align: center; padding: 30px 20px; background: white; border-radius: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); border: 1px solid #f9fafb; }
.step-icon { width: 70px; height: 70px; background: rgba(16, 185, 129, 0.1); color: var(--verde); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.step-icon .material-symbols-rounded { font-size: 36px; }
.step-title { font-weight: 700; font-size: 18px; margin-bottom: 10px; color: #1f2937; }


.containerXL{max-width: none; }


/* === CARRUSEL HERO === */
.hero-carousel-wrapper {
	flex: 1;
	position: relative;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 20px 40px rgba(0,0,0,0.08);
	aspect-ratio: 4/3;
}

.hero-carousel {
	display: flex;
	width: 100%;
	height: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory; /* El truco para que queden pegadas */
	scroll-behavior: smooth;
	-ms-overflow-style: none; /* Oculta scrollbar en IE/Edge */
	scrollbar-width: none; /* Oculta scrollbar en Firefox */
}
.hero-carousel::-webkit-scrollbar { display: none; } /* Oculta scrollbar Chrome/Safari */

.carousel-slide {
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
	position: relative;
	scroll-snap-align: center;
}

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

/* Caja de texto sobre la imagen con vidrio esmerilado */
.slide-overlay {
	position: absolute;
	bottom: 30px;
	left: 30px;
	right: 30px;
	background: rgba(255, 255, 255, 0.5);
	backdrop-filter: blur(8px);
	padding: 20px;
	border-radius: 16px;
	box-shadow: 0 10px 25px rgba(0,0,0,0.1);
	/* Animación de entrada inicial oculta */
	opacity: 0;
	transform: translateY(20px);
	transition: all 0.6s cubic-bezier(0.2, 0, 0, 1);
}

/* Cuando el slide es visible, animamos la caja de texto */
.carousel-slide.is-active .slide-overlay {
	opacity: 1;
	transform: translateY(0);
}

.slide-overlay h3 { margin: 0 0 5px; font-size: 1.3rem; color: #1f2937; }
.slide-overlay p { margin: 0 0 12px; font-size: 0.95rem; color: #4b5563; }
.slide-overlay a { display: inline-block; background: var(--verde); color: white; padding: 8px 16px; border-radius: 100px; text-decoration: none; font-weight: 600; font-size: 13px; transition: 0.2s; }
.slide-overlay a:hover { background: #0ea5e9; }

/* Controles (Flechas y Puntos) */
.carousel-btn {
	position: absolute; top: 50%; transform: translateY(-50%);
	background: rgba(255,255,255,0.9); border: none; width: 40px; height: 40px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; cursor: pointer;
	box-shadow: 0 4px 10px rgba(0,0,0,0.15); transition: 0.2s; z-index: 10;
}
.carousel-btn:hover { background: white; transform: translateY(-50%) scale(1.1); }
.carousel-btn.prev { left: 15px; }
.carousel-btn.next { right: 15px; }

.carousel-dots {
	position: absolute; bottom: 15px; left: 0; right: 0;
	display: flex; justify-content: center; gap: 8px; z-index: 10;
}
.dot {
	width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5);
	cursor: pointer; transition: 0.3s;
}
.dot.active { background: white; transform: scale(1.3); }

@media (max-width: 768px) {
	.hero-carousel-wrapper { aspect-ratio: 1/1; /* Más cuadradito en celu */ width: 100%;}
	.slide-overlay { bottom: 20px; left: 20px; right: 20px; padding: 15px; }
	.carousel-btn { display: none; } /* En celu es mejor scrollear con el dedo, ocultamos flechas */
}

/* === ESTILOS DEL MODO CHAT === */
.hero-moderno-content { transition: all 0.3s ease; display: flex; flex-direction: column; height: 100%; }

/* Cuando el chat está activo, achicamos el header */
.hero-moderno-content.chat-active h1 { font-size: 1.8rem; margin-bottom: 5px; }
.hero-moderno-content.chat-active p { font-size: 12px; margin-bottom: 15px; }

/* Contenedor del Chat */
.chat-container2 {
	display: none; flex-direction: column; flex: 1; min-height: 400px; max-height: 520px;
	background: #ffffff; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05);
	border: 1px solid #f3f4f6; overflow: hidden; margin-bottom: 10px;
	animation: fadeInUp 0.5s ease forwards;
}
.hero-moderno-content.chat-active .chat-container { display: flex; }
.hero-moderno-content.chat-active .hero-search-box { display: none; } /* Ocultamos el buscador original */

/* Área de Mensajes */
.chat-messages { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; background: #f9fafb; }

/* Burbujas */
.msg-bubble { max-width: 85%; padding: 12px 16px; border-radius: 16px; font-size: 14.5px; line-height: 1.4; animation: fadeInUp 0.3s ease forwards; text-align: left; }
.msg-user { background: var(--verde); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg-bot { background: white; border: 1px solid #e5e7eb; color: #374151; align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }

/* Minicards dentro del chat (Con soporte para Píldoras de Servicios) */
.chat-minicards-wrapper {
	display: flex; flex-direction: row; gap: 12px; margin-top: 10px; width: 100%; 
	overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; 
	flex-shrink: 0; 
}
.chat-minicards-wrapper::-webkit-scrollbar { display: none; }

.chat-minicard { 
	display: flex; flex-direction: column; align-items: center; justify-content: flex-start; 
	text-align: center; background: white; border: 1px solid #e5e7eb; padding: 12px; 
	border-radius: 16px; width: 200px; height: auto;  
	flex-shrink: 0; box-sizing: border-box; transition: .2s;
}
.chat-minicard-header { display: flex; flex-direction: column; align-items: center; width: 100%; text-decoration: none; color: inherit; cursor: pointer; transition: 0.2s; }
.chat-minicard-header:hover { transform: translateY(-2px); }
.chat-minicard-header img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.chat-minicard-info { width: 100%; }
.chat-minicard-info h4 { margin: 0 0 4px; font-size: 14px; color: #1f2937; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-minicard-info p { margin: 0; font-size: 11px; margin-bottom: 0 !important; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-minicard:hover{
	border: solid 1px var(--primary);
	box-shadow: 0 3px 5px 5px rgb(0 0 0 / 20%);
}


/* Contenedor de las píldoras de servicios */
.chat-pills-container { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; width: 100%; border-top: 1px dashed #e5e7eb; padding-top: 10px; }
.chat-pill { 
	background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; 
	padding: 6px 8px; font-size: 11.5px; color: #374151; display: flex; 
	flex-direction: column; align-items: center; text-decoration: none; transition: 0.2s;
}
.chat-pill:hover { background: var(--verde-suave, #e6f8f3); border-color: var(--verde); color: var(--verde); transform: scale(1.02); }
.chat-pill-price { font-weight: 700; color: var(--verde); margin-top: 2px; font-size: 11px; }


/* Input inferior del chat */
.chat-input-area { display: flex; padding: 10px; background: white; border-top: 1px solid #f3f4f6; gap: 10px; flex-direction: row; align-items: center;}
.chat-input { flex: 1; border: 1px solid #e5e7eb; border-radius: 100px; padding: 12px 20px; outline: none; font-size: 14px; background: #f9fafb; }
.chat-input:focus { border-color: var(--verde); background: white; }
.btn-send { background: var(--verde); color: white; border: none; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; }
.btn-send:hover { transform: scale(1.05); }
.typing-indicator { font-size: 12px; color: #9ca3af; font-style: italic; margin-left: 10px; display: none; }



/* =========================================
   PANEL DE SERVICIOS (Aislado y Responsivo)
========================================= */
.card-item-srv {
    background: var(--blanco, #fff);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    margin-bottom: 16px;
    border: 1px solid #f3f4f6;
}

.caja-img-srv {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.caja-img-srv img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #eee;
}

.img-placeholder-srv {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.img-placeholder-srv span { font-size: 32px; }

.info-srv {
    flex: 1;
    min-width: 0;
}

.titulo-srv {
    font-size: 18px;
    color: var(--verde, #10b981);
    display: block;
    margin-bottom: 4px;
}

.detalles-srv {
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
}

.detalles-srv .material-symbols-rounded { font-size: 16px; }
.divisor-srv { color: #d1d5db; }

.profesionales-srv {
    margin-top: 8px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 14px;
    color: #4b5563;
}

.profesionales-srv .material-symbols-rounded { font-size: 16px; color: #9ca3af; margin-top: 2px; }

.acciones-srv {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.btn-accion-srv {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #f3f4f6;
    color: #4b5563;
    transition: 0.2s ease;
}

.btn-accion-srv:hover { background: #e5e7eb; transform: translateY(-2px); }
.btn-delete-srv { color: #ef4444; background: #fef2f2; }
.btn-delete-srv:hover { background: #fee2e2; }

/* === VERSIÓN MÓVIL (GRID) === */
@media (max-width: 768px) {
    .card-item-srv {
        display: grid;
        grid-template-columns: 70px 1fr auto;
        grid-template-areas: 
            "foto  .  botones"
            "texto texto texto";
        gap: 12px;
        align-items: center;
    }

    .caja-img-srv { grid-area: foto; }
    
    .acciones-srv { 
        grid-area: botones; 
        justify-content: flex-end; 
    }
    
    .info-srv { 
        grid-area: texto; 
        margin-top: 4px; 
        border-top: 1px dashed #e5e7eb; 
        padding-top: 12px;
    }
}



/* Colores inactivos (Gris más claro que el #6b7280) */
.mobile-bottom-nav .bn-item,
.mobile-bottom-nav .bn-item .material-symbols-rounded {
    color: #9ca3af; /* Un gris suave y moderno */
    transition: color 0.3s ease;
}

/* Color ACTIVO (Verde MegaTurnos) */
.mobile-bottom-nav .bn-item.active,
.mobile-bottom-nav .bn-item.active .material-symbols-rounded {
    color: var(--verde, #10b981);
    font-weight: 600; /* Le damos un toque extra de peso a la fuente */
}



/* === ENCABEZADO "MIS RESERVAS" === */
.header-titulo-reservas {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap; /* Para que en pantallas muy chiquitas no se apriete */
    gap: 15px;
}

.header-titulo-reservas h2 {
    margin: 0; /* Le sacamos el margen por defecto para centrarlo bien con el botón */
    color: #111827;
}

.btn-nueva-reserva {
    background-color: var(--verde, #10b981);
    color: white;
    padding: 10px 20px;
    border-radius: 100px; /* Estilo píldora */
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.btn-nueva-reserva:hover {
    background-color: #059669; /* Verde más oscuro al pasar el mouse */
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(16, 185, 129, 0.3);
}

.btn-nueva-reserva .material-symbols-rounded {
    font-size: 20px;
}



/* === CAMPANITA DE NOTIFICACIONES === */
.btn-campanita {
    position: relative; /* Para poder posicionar el badge rojo adentro */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    text-decoration: none;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.btn-campanita:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.badge-notif {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #ef4444; /* Rojo alerta */
    color: white;
    font-size: 11px;
    font-weight: bold;
    height: 18px;
    min-width: 18px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid white; /* Para que resalte sobre el ícono */
}


/* === BADGE PARA EL BOTTOM NAV MOBILE === */
.bn-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.badge-notif-mobile {
    position: absolute;
    top: -4px;
    right: -6px;
    background-color: #ef4444; /* Rojo alerta */
    color: white;
    font-size: 10px;
    font-weight: bold;
    height: 16px;
    min-width: 16px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #ffffff; /* Hace un efecto de recorte sobre el fondo blanco de la barra */
    z-index: 2; /* Se asegura de quedar por encima del ícono */
}


/* === DROPDOWN MATERIAL DESIGN 3 (HEADER) === */
.md3-dropdown-container {
    position: relative;
    display: inline-block;
}

/* El Botón que se ve siempre */
.md3-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #111827;
    border: 1px solid #d1d5db;
    padding: 8px 16px;
    border-radius: 100px; /* Estilo píldora */
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.md3-dropdown-trigger:hover:not(.fijo) {
    background: #f9fafb;
    border-color: #9ca3af;
}

.md3-dropdown-trigger.fijo {
    cursor: default;
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.md3-dropdown-text {
    max-width: 120px; /* Para que nombres muy largos no rompan el header */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.md3-caret {
    color: #6b7280;
    transition: transform 0.2s ease;
}

/* El Menú que flota */
.md3-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    z-index: 1000;
    display: none; /* Oculto por defecto */
    flex-direction: column;
    padding: 8px;
    border: 1px solid #e5e7eb;
}

.md3-dropdown-menu.show {
    display: flex;
    animation: fadeInDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Rotar la flechita cuando el menú está abierto */
.md3-dropdown-container.open .md3-caret {
    transform: rotate(180deg);
}

/* Cada ítem de la lista */
.md3-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    transition: background 0.2s;
}

.md3-dropdown-item:hover {
    background: #f3f4f6;
    color: #111827;
}

/* La empresa que está seleccionada ahora mismo */
.md3-dropdown-item.active {
    background: #ecfdf5;
    color: #059669;
}

.md3-dropdown-item.active .material-symbols-rounded {
    color: #10b981;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === AJUSTES RESPONSIVOS PARA MÓVILES (Simetría Perfecta MD3) === */
@media (max-width: 768px) {
    
    /* 1. El contenedor toma el espacio central, pero le damos padding para que no choque con los extremos */
    .md3-dropdown-container {
        flex: 1; 
        position: relative; /* Clave: volvemos a relative para que el menú nazca desde aquí */
        padding: 0 10px;
        display: flex;
        justify-content: center;
    }

    /* 2. El botón toma el 100% de ese espacio, con un tope para que no se vea desproporcionado */
    .md3-dropdown-trigger {
        width: 100%;
        max-width: 260px; /* Tope máximo para que respire en los costados */
        justify-content: space-between; /* Icono a la izq, texto al centro, flecha a la der */
        padding: 8px 16px;
		min-height: 48px;
    }

    /* 3. El texto se vuelve flexible, se centra y le sacamos el límite rígido */
    .md3-dropdown-text {
        flex: 1;
        text-align: center;
        max-width: none; 
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 0 8px; /* Separación de los íconos */
    }

    /* 4. El menú hereda EXACTAMENTE el mismo ancho que el botón y se alinea perfecto */
    .md3-dropdown-menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 20px); /* 100% del contenedor menos el padding */
        max-width: 260px; /* El mismo tope que el botón */
        margin-top: 8px;
    }
	
	/* Le pisamos la animación genérica por una exclusiva que respete el centro */
    .md3-dropdown-container.open .md3-dropdown-menu {
        animation: fadeInDownCentrado 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    /* Creamos los pasos de la animación manteniendo SIEMPRE el translateX(-50%) */
    @keyframes fadeInDownCentrado {
        from { 
            opacity: 0; 
            transform: translate(-50%, -10px); 
        }
        to { 
            opacity: 1; 
            transform: translate(-50%, 0); 
        }
    }
	
}


/* --- ESTILOS SCROLL HORIZONTAL CHIPS --- */
.tabs-container-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
}

.filtros-chips {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth; /* Movimiento fluido */
    gap: 10px;
    padding: 5px; /* Para que la sombra del chip activo no se corte */
    width: 100%;
    
    /* Ocultar barra de scroll en todos los navegadores */
    -ms-overflow-style: none;  /* IE y Edge */
    scrollbar-width: none;  /* Firefox */
}
.filtros-chips::-webkit-scrollbar {
    display: none; /* Chrome, Safari y Opera */
}

/* Botones flotantes (Chevrons MD3) */
.nav-chevron {
    position: absolute;
    z-index: 10;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #374151;
    transition: 0.2s;
}
.nav-chevron:hover {
    background: #f9fafb;
    transform: scale(1.05);
}
.nav-chevron.left { left: -10px; } /* Flota un poquito por fuera a la izq */
.nav-chevron.right { right: -10px; } /* Flota un poquito por fuera a la der */

.nav-chevron.hidden { 
    display: none !important; 
}

/* En celulares la gente desliza con el dedo, no necesita botones */
@media (max-width: 768px) {
    .nav-chevron { display: none !important; }
}



/* --- GRILLA PROFESIONALES (2 en móvil, 3 en PC) --- */
.grid-profesionales {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columnas por defecto (móviles) */
    gap: 12px;
    margin-top: 15px;
}

@media (min-width: 768px) {
    .grid-profesionales {
        grid-template-columns: repeat(3, 1fr); /* 3 columnas en PC/Tablets */
        gap: 20px;
    }
}

/* Tarjeta Vertical Elegante */
.card-prof-vertical {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.card-prof-vertical:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.05);
}

.card-prof-vertical.activo {
    border-color: var(--verde, #10b981);
    background: #f0fdf4; /* Un fondito verde súper sutil */
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* Contenedor de la foto */
.avatar-prof-large {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    margin-bottom: 12px;
    object-fit: cover;
    border: 2px solid #f3f4f6;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Fallback si no tiene foto */
.avatar-placeholder-large {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    margin-bottom: 12px;
    background: var(--verde-suave, #d1fae5);
    color: var(--verde-oscuro, #065f46);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    border: 2px solid #f3f4f6;
}


.filtros-rango {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 10px;
    padding: 5px;
    width: 100%;
    
    /* Ocultar barra de scroll */
    -ms-overflow-style: none;  /* IE y Edge */
    scrollbar-width: none;  /* Firefox */
}
.filtros-rango::-webkit-scrollbar {
    display: none; /* Chrome, Safari y Opera */
}



/* =========================================
   MATERIAL DESIGN 3: CARDS & BUTTONS
   ========================================= */

/* Estructura Base de Tarjeta MD3 */
.md3-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* 1. Elevated Card (Usado para Empresas) */
.md3-card-elevated {
    background-color: #ffffff;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.08), 0px 1px 2px rgba(0, 0, 0, 0.04);
    border: 1px solid transparent;
}
.md3-card-elevated:hover {
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* 2. Filled Card (Usado para Servicios) */
.md3-card-filled {
    background-color: #f3f4f6; /* Color de superficie secundario MD3 */
    border: none;
    box-shadow: none;
}
.md3-card-filled:hover {
    background-color: #e5e7eb; /* Oscurece un poquito al hover */
    transform: translateY(-2px);
}

/* --- MEDIAS (Imágenes) --- */
/* Media panorámica (Empresas) */
.md3-card-media {
    position: relative;
    height: 140px;
    width: 100%;
}
.md3-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.md3-card-avatar {
    position: absolute;
    bottom: -35px;
    right: 16px;
    width: 70px !important;
    height: 70px !important;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
    background: #fff;
}

/* Media Cuadrada/Alta (Servicios) */
.md3-card-media-square {
    position: relative;
    height: 180px;
    width: 100%;
}
.md3-card-media-square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
}
.md3-price-chip {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: #111827;
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    backdrop-filter: blur(4px);
}

/* --- CONTENIDO --- */
.md3-card-content {
    padding: 16px;
    padding-top: 24px; /* Espacio extra por si hay un avatar flotando */
    flex-grow: 1;
}
.md3-card-filled .md3-card-content {
    padding-top: 16px; /* La card filled no tiene avatar flotante */
}
.md3-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
    line-height: 1.3;
}
.md3-card-subtitle, .md3-card-meta {
    font-size: 14px;
    color: #4b5563;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.md3-card-subtitle span, .md3-card-meta span {
    font-size: 18px;
    color: #9ca3af;
}

/* --- ZONA DE ACCIONES (Botones) --- */
.md3-card-actions {
    padding: 8px 16px 16px;
    display: flex;
    justify-content: flex-start;
}
.md3-card-actions-right {
    padding: 8px 16px 16px;
    display: flex;
    justify-content: flex-end;
}

/* Botones MD3 */
.md3-btn {
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 100px; /* Bordes totalmente redondeados MD3 */
    padding: 10px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0.5px;
}

/* Botón de texto (Poco invasivo, para Empresas) */
.md3-btn-text {
    background: rgba(16, 185, 129, 0.08);
    color: var(--verde, #10b981);
    padding: 10px 16px;
}
.md3-btn-text:hover {
    background: rgb(16 185 129 / 19%); /* Feedback visual MD3 */
}

/* Botón Relleno (Llamado a la acción fuerte, para Servicios) */
.md3-btn-filled {
    background: var(--verde, #10b981);
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.md3-btn-filled:hover {
    background: #059669; /* Verde más oscuro */
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}


/* Cualquier campo de formulario que esté deshabilitado */
input:disabled, 
select:disabled, 
textarea:disabled {
    cursor: not-allowed;
    background-color: #f9fafb; /* Gris clarito para dar aspecto de bloqueado */
    color: #6b7280; /* Texto un poco más apagado */
    opacity: 0.8;
}

.grid-5 {
    display: grid;
    grid-template-columns: repeat(4, minmax(22%, 1fr));
    gap: 50px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .grid-5{
		display: grid;
		grid-template-columns: repeat(2, minmax(46%, 1fr));
		gap: 5px;
	}
}

.grid-5 .md3-card-filled {
    margin-bottom: 30px;
    padding-bottom: 10px;
}

.grid-5 .md3-card-content {
    padding: 10px;
}

.grid-5 .md3-card-actions-right {
    padding: 5px;
    display: flex;
    justify-content: space-around;
}

.grid-5 .md3-price-chip {
    bottom: 3px;
    left: 3px;
	top: auto;
    right: auto;
}




.faq-header {
	text-align: center;
	padding: 60px 20px 40px;
	background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
	border-bottom: 1px solid #e5e7eb;
}

.faq-header h1 {
	color: #111827;
	font-size: 32px;
	font-weight: 800;
	margin: 0 0 10px;
	letter-spacing: -0.5px;
}

.faq-header p {
	color: #4b5563;
	font-size: 16px;
	max-width: 600px;
	margin: 0 auto;
	line-height: 1.6;
}

.faq-container {
	max-width: 800px;
	margin: 40px auto;
	padding: 0 20px;
}

/* Acordeón Material 3 */
.faq-item {
	background: #ffffff;
	border-radius: 20px;
	margin-bottom: 16px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.03);
	border: 1px solid #f3f4f6;
	overflow: hidden;
	transition: all 0.3s ease;
}

.faq-item:hover {
	box-shadow: 0 8px 25px rgba(0,0,0,0.06);
	border-color: #e5e7eb;
}

.faq-question {
	padding: 20px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	color: #1f2937;
	user-select: none;
}

.faq-question .q-text {
	display: flex;
	align-items: center;
	gap: 12px;
}

.faq-icon-lead {
	color: var(--verde, #10b981);
	background: #ecfdf5;
	padding: 8px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.faq-icon-arrow {
	color: #9ca3af;
	transition: transform 0.3s ease;
}

.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease, padding 0.4s ease;
	background: #fafafa;
	color: #4b5563;
	line-height: 1.6;
	font-size: 15px;
	padding: 0 24px;
	border-top: 1px solid transparent;
}

/* Estado Activo */
.faq-item.active .faq-question {
	color: var(--verde, #10b981);
}

.faq-item.active .faq-icon-arrow {
	transform: rotate(180deg);
	color: var(--verde, #10b981);
}

.faq-item.active .faq-answer {
	max-height: 500px;
	padding: 20px 24px;
	border-top-color: #f3f4f6;
}

/* Botón final CTA */
.faq-cta {
    text-align: center;
    margin: 50px auto 0;
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    width: max-content;
    align-items: stretch;
    gap: 20px;
}

.btn-principal { 
	padding: 14px 28px; 
	border-radius: 100px; 
	font-weight: 600; 
	display: inline-flex; 
	align-items: center; 
	gap: 8px; 
	font-size: 16px; 
	cursor: pointer; 
	border: none; 
	background: var(--verde, #10b981);
	color: white;
	text-decoration: none;
	transition: 0.2s; 
	justify-content: center;
	white-space: nowrap;
}
.btn-principal:hover { background: #059669; transform: translateY(-2px); }


/* Estilos para Selector Múltiple de Categorías */
.categorias-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.cat-chip { position: relative; }
.cat-chip input { display: none; }
.cat-chip label {
    display: flex; align-items: center; gap: 6px;
    background: #f3f4f6; color: #4b5563;
    padding: 8px 16px; border-radius: 100px;
    font-size: 14px; cursor: pointer;
    border: 1px solid transparent; transition: 0.2s;
}
.cat-chip input:checked + label {
    background: #d1fae5; color: #059669;
    border-color: #4ee9b6; font-weight: bold;
}

/* Botón de IA Mágico */
.btn-ia-magic {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(109, 40, 217, 0.2);
}
.btn-ia-magic:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(109, 40, 217, 0.3);
}
.btn-ia-magic:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}
/* Animación de rotación para cuando está pensando */
@keyframes spin-magic { 100% { transform: rotate(360deg); } }
.btn-ia-magic.pensando .material-symbols-rounded {
    animation: spin-magic 1.5s linear infinite;
}

