.cursor-boob {
	cursor: url('data/malecursor.cur'), auto;
}

body {
	font-family: 'Segoe UI', sans-serif;
	cursor: url('data/malecursor.cur'), auto;
}

html,
body {
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	max-width: 100dvw;
}

* {
	box-sizing: border-box;
}

/* === CARRUSEL DE IMÁGENES === */
#carousel {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: black;
	overflow: hidden;
	z-index: -1;
	display: flex;
	flex-direction: column;
}

.row {
	display: flex;
	flex-wrap: nowrap;
	will-change: transform;
	z-index: 0;
	position: relative;
}

.row:hover {
	z-index: 10;
}

.row-hovered {
	z-index: 100;
}

.cell {
	flex: 0 0 auto;
	position: relative;
	width: 100%;
	height: 100%;
	background: black;
	overflow: visible;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 0;
}

.cell img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
	pointer-events: auto;
	border: clamp(0.5px, 0.3vw, 2px) solid #69387a;
	box-sizing: border-box;
	background-image: url('imgs/placeholder.jpg');
	/* Fondo por defecto */
	background-size: cover;
	background-position: center;
	image-rendering: crisp-edges;
}

.cell:hover,
.cell.simulated-hover,
.cell.on-top {
	z-index: 999;
	/* Garantiza prioridad sobre otras celdas y filas */
}

.cell:hover img,
.cell.simulated-hover img {
	transform: scale(1.5);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

/* Estilo común para los wrappers */
.cell>div {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* === VISOR DE IMÁGENES === */
#image-viewer {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	/* Fallback para navegadores antiguos */
	height: 100dvh;
	/* Vista real del navegador en móviles modernos */
	background: rgba(0, 0, 0, 0.85);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	transition: opacity 0.3s ease;
	opacity: 0;
	pointer-events: none;
	backdrop-filter: blur(4px);
}

#image-viewer.visible {
	display: flex;
	opacity: 1;
	pointer-events: auto;
}

#image-viewer .viewer-content {
	position: relative;
	max-width: 90vw;
	max-height: 90vh;
	animation: popIn 0.3s ease-out;
	will-change: transform, opacity;
}

.viewer-frame {
	display: inline-block;
	border: 8px solid #9b59b6;
	border-radius: 14px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
	background: #69387a;
	max-width: 90vw;
	max-height: 90dvh;
	position: relative;
	text-align: center;
}

#viewer-image {
	max-width: 100%;
	max-height: calc(90dvh - 48px);
	object-fit: contain;
	display: block;
	margin: 0 auto;
	border: none;
}

.viewer-title {
	background: #9b59b6;
	color: white;
	font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
	font-weight: 700;
	padding: 6px 10px;
	text-align: center;
	position: relative;
	user-select: none;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
	font-size: clamp(13px, 2.5vw, 18px);
	white-space: nowrap;
	overflow: visible;
	text-overflow: ellipsis;
}

.viewer-title .close-btn {
	position: absolute;
	top: 0px;
	right: 0px;
	background: #392142;
	color: white;
	font-size: 18px;
	width: 28px;
	height: 28px;
	text-align: center;
	line-height: 28px;
	border-radius: 50%;
	cursor: pointer;
	transition: transform 0.2s ease, background 0.3s;
	z-index: 1001;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
	pointer-events: auto;
}

.viewer-title .close-btn:hover {
	transform: scale(1.2);
	background: #333;
}

@keyframes popIn {
	from {
		opacity: 0;
		transform: scale(0.85);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

/* === OVERLAY VERIFICACIÓN DE EDAD === */
#age-check-overlay {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	background: black;
	z-index: 4000;
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
}

.age-check-box {
	background: #1c1c1c;
	color: white;
	border: 2px solid #9b59b6;
	padding: 30px 20px;
	max-width: 90%;
	text-align: center;
	border-radius: 12px;
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
	.age-check-box {
		margin-block: 6vh;
		max-height: 80vh;
		overflow-y: auto;
	}
}

.age-check-box h2 {
	font-size: 22px;
	margin-bottom: 10px;
}

.age-check-box p {
	font-size: 16px;
	margin-bottom: 20px;
}

.age-buttons {
	display: flex;
	gap: 10px;
	justify-content: center;
}

.age-buttons button {
	background: #9b59b6;
	color: white;
	border: none;
	padding: 10px 16px;
	font-size: 16px;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s ease;
}

.age-buttons button:hover {
	background: #7e3fa1;
}

/* === FOOTER DEL INCREÍBLE DOCTOR TETAS === */
#footer-tetas {
	position: fixed;
	bottom: 10px;
	margin: 0 auto;
	left: 0;
	right: 0;
	background: #9b59b6;
	color: white;
	padding: 6px 14px;
	border-radius: 16px;
	font-size: clamp(11px, 2vh, 13px);
	text-shadow: 1px 1px 3px black;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
	max-width: 95vw;
	width: fit-content;
	text-align: center;
	line-height: 1.4;
	transform: translateY(30px);
	opacity: 0;
	animation: slideUpFadeIn 0.8s ease-out forwards;
}

#footer-tetas a {
	color: #ffffcc;
	text-decoration: underline;
}

@keyframes slideUpFadeIn {
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

#audio-controls {
	position: fixed;
	top: 70px;
	left: 10px;
	background: #9b59b6;
	color: white;
	padding: 12px 10px;
	border-radius: 16px;
	font-size: clamp(11px, 2vh, 13px);
	text-shadow: 1px 1px 3px black;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
	z-index: 10;
	display: flex;
	flex-direction: column-reverse;
	/* ⬅️ Reordena: icono abajo, slider arriba */
	align-items: center;
	gap: 10px;
	backdrop-filter: blur(4px);
	transform: translateY(-30px);
	opacity: 0;
	animation: slideDownFadeIn 0.8s ease-out forwards;
}

#audio-controls button {
	background: none;
	border: none;
	color: white;
	font-size: 20px;
	cursor: pointer;
	padding: 0 6px;
}

#audio-controls button:hover {
	color: #ffffcc;
}

#volume-slider {
	writing-mode: vertical-lr;
	/* vertical de abajo hacia arriba */
	direction: rtl;
	/* valor mínimo abajo, máximo arriba */
	width: 20px;
	height: 80px;
	accent-color: white;
	border: none;
	background: transparent;
}

#toggle-visibility-btn {
	position: fixed;
	top: 10px;
	left: 10px;
	background: #9b59b6;
	color: white;
	font-size: 24px;
	/* Antes 18px → ahora 24px (33% más) */
	padding: 8px 16px;
	/* Antes 6px 12px */
	border-radius: 18px;
	/* Antes 14px */
	cursor: pointer;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
	user-select: none;
	transition: background 0.3s ease;
}

#toggle-visibility-btn:hover {
	background: #7e3fa1;
}

#toggle-visibility-btn {
	transform: translateY(-30px);
	opacity: 0;
	animation: slideDownFadeIn 0.8s ease-out forwards;
}

@keyframes slideDownFadeIn {
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

@keyframes slideDownFadeOut {
	from {
		transform: translateY(0);
		opacity: 1;
	}

	to {
		transform: translateY(-30px);
		opacity: 0;
	}
}

@keyframes slideUpFadeOut {
	from {
		transform: translateY(0);
		opacity: 1;
	}

	to {
		transform: translateY(30px);
		opacity: 0;
	}
}

#toggle-visibility-btn,
#audio-controls,
#footer-tetas {
	z-index: 10;
}

#visibility-hotspot {
	position: fixed;
	top: 0;
	left: 0;
	width: 80px;
	/* ajusta según tu botón */
	height: 80px;
	z-index: 5;
}

#teta-frase-top {
	position: fixed;
	bottom: calc(var(--footer-height) + 20px);
	left: 0;
	right: 0;
	margin: 0 auto;
	background: #9b59b6;
	color: white;
	padding: 6px 14px;
	border-radius: 16px;
	font-size: clamp(11px, 2vh, 13px);
	text-shadow: 1px 1px 3px black;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
	z-index: 10;
	max-width: 95vw;
	width: fit-content;
	text-align: center;
	line-height: 1.4;
	transform: translateY(30px);
	opacity: 0;
	animation: slideUpFadeIn 0.8s ease-out forwards;
	pointer-events: auto;
}

@keyframes fadeInTop {
	from {
		transform: translate(-50%, -20px);
		opacity: 0;
	}

	to {
		transform: translate(-50%, 0);
		opacity: 0.95;
	}
}

#boob-counter {
	position: fixed;
	top: 10px;
	right: 10px;
	background: #9b59b6;
	color: white;
	font-size: 18px;
	padding: 8px 16px;
	border-radius: 18px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
	user-select: none;
	z-index: 10;
	transition: background 0.3s ease;
	transform: translateY(-30px);
	opacity: 0;
	animation: slideDownFadeIn 0.8s ease-out forwards;
}

.no-scroll {
	overflow: hidden !important;
	position: fixed !important;
	width: 100vw;
	height: 100vh;
	touch-action: none;
}

#seo-text {
	position: absolute;
	width: 0px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

#logo-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	background: rgba(0, 0, 0, 0.85);
	/* ✅ Negro con 85% de opacidad */
	z-index: 1999;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: auto;
	opacity: 1;
}

#logo-overlay.fade-out {
	animation: fadeOutLogoOverlay 1s ease-out forwards;
}

#logo-overlay img {
	max-width: 90vw;
	max-height: 60vh;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	border-radius: 8px;
	border: 8px solid #9b59b6;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

@keyframes fadeOutLogoOverlay {
	from {
		opacity: 1;
	}

	to {
		opacity: 0;
	}
}

/*HISTORIA*/
#doctor-history-btn {
	position: fixed;
	top: 70px;
	/* debajo del contador */
	right: 10px;
	background: #9b59b6;
	color: white;
	font-size: 18px;
	padding: 8px 16px;
	max-width: 100vw;
	border-radius: 18px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
	user-select: none;
	z-index: 10;
	transition: background 0.3s ease;
	transform: translateY(-30px);
	opacity: 0;
	animation: slideDownFadeIn 0.8s ease-out forwards;
}

#doctor-history-btn:hover {
	background: #7e3fa1;
}

#doctor-history-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 3000;
	overflow: hidden;
	/* evita que el fondo se desplace */
	padding: 0;
}

.history-frame {
	position: relative;
	background: #1c1c1c;
	color: white;
	border: 2px solid #9b59b6;
	border-radius: 16px;
	max-width: 90vw;
	max-height: 90vh;
	overflow: hidden;
	/* 👈 evita que se vea fuera del marco */
	padding: 20px;
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
}

/* Opcional: personaliza la barra en navegadores WebKit */
.history-frame::-webkit-scrollbar {
	width: 10px;
}

.history-frame::-webkit-scrollbar-thumb {
	background: #9b59b6;
	border-radius: 8px;
}

.history-frame::-webkit-scrollbar-track {
	background: #2c2c2c;
	border-radius: 8px;
}


/* 📱 Solo en móviles: margen superior e inferior */
@media (max-width: 768px) {
	.history-frame {
		margin-block: 6vh;
		/* ~6% arriba y abajo del viewport */
		max-height: 80vh;
		/* reducimos un poco la altura para compensar */
	}
}

.history-title {
	font-size: 20px;
	font-weight: 700;
	/* mejor que 'bold' */
	margin-bottom: 10px;
	position: relative;
	text-align: left;
}

/* Contenido scrollable separado */
.history-content {
	overflow-y: auto;
	flex: 1;
	padding-right: 10px;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
	position: relative;
	z-index: 1;
}

.close-history-btn {
	position: absolute;
	top: 0;
	right: 0;
	background: #392142;
	color: white;
	font-size: 18px;
	width: 28px;
	height: 28px;
	text-align: center;
	line-height: 28px;
	border-radius: 50%;
	cursor: pointer;
	transition: transform 0.2s ease, background 0.3s;
}

.close-history-btn:hover {
	transform: scale(1.2);
	background: #333;
}

/* === Animaciones para el visor del Doctor Tetas === */
#doctor-history-overlay {
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
	display: none;
}

#doctor-history-overlay.visible {
	display: flex;
	opacity: 1;
	pointer-events: auto;
}

#doctor-history-overlay.fading-out {
	opacity: 0;
	pointer-events: none;
}

.history-frame {
	animation: popIn 0.3s ease-out;
	will-change: transform, opacity;
}

/* Imagen decorativa anclada */
.history-frame::after {
	content: '';
	position: absolute;
	bottom: 0px;
	right: 0px;
	width: 197px;
	height: 247px;
	background-image: url('data/drtetassmall.png');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: bottom right;
	opacity: 0.35;
	pointer-events: none;
	z-index: 0;
	/* detrás del contenido scrollable */
}

.hidden {
	display: none !important;
}

.yellow-link {
	color: #ffd !important;
}

#touch-blocker {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 100;
	background: transparent;
	pointer-events: none;
	display: none;
}

#touch-blocker.active {
	display: block;
	pointer-events: auto;
}

#doctor-message-btn {
	position: fixed;
	top: 120px;
	/* Justo debajo del #doctor-history-btn que está en top: 70px */
	right: 10px;
	background: #9b59b6;
	color: white;
	font-size: 18px;
	padding: 8px 16px;
	border-radius: 18px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
	user-select: none;
	z-index: 10;
	transition: background 0.3s ease;
	transform: translateY(-30px);
	opacity: 0;
	animation: slideDownFadeIn 0.8s ease-out forwards;
}

#doctor-message-btn:hover {
	background: #7e3fa1;
}

#doctor-message-viewer {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100dvh;
	background-color: rgba(0, 0, 0, 0.85);
	z-index: 3000;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 0;
}

.message-frame {
	position: relative;
	background: #1c1c1c;
	color: white;
	border: 2px solid #9b59b6;
	border-radius: 16px;
	max-width: 90vw;
	max-height: 90vh;
	padding: 20px;
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	animation: popIn 0.3s ease-out;
	will-change: transform, opacity;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: #9b59b6 #2c2c2c;
}

.message-header {
	font-size: 24px;
	font-weight: bold;
	color: #fff;
	margin-bottom: 16px;
	text-align: center;
}

#doctor-form label {
	display: block;
	margin-top: 10px;
	color: #eee;
	font-size: 14px;
}

#doctor-form input[type="text"],
#doctor-form input[type="file"],
#doctor-form textarea {
	width: 100%;
	padding: 8px;
	margin-top: 4px;
	border-radius: 6px;
	border: none;
	background: #333;
	color: #fff;
	font-size: 14px;
}

#doctor-form button[type="submit"] {
	margin-top: 16px;
	padding: 10px 20px;
	background: #9b59b6;
	color: #fff;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-weight: bold;
	transition: background 0.3s;
}

#doctor-form button[type="submit"]:hover {
	background: #7e3fa1;
}

.close-btn {
	position: absolute;
	top: 8px;
	right: 8px;
	background: rgba(0, 0, 0, 0.4);
	color: white;
	border: none;
	border-radius: 50%;
	width: 36px;
	height: 36px;
	font-size: 20px;
	line-height: 36px;
	text-align: center;
	cursor: pointer;
	z-index: 1000;
}

@media (max-width: 768px) {
	.message-frame {
		margin-block: 6vh;
		max-height: 80vh;
	}
}

.viewer {
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.viewer.hidden {
	display: none;
	opacity: 0;
}

.viewer.visible {
	opacity: 1;
	pointer-events: auto;
}

.viewer.fading-out {
	opacity: 0;
	pointer-events: none;
}

.cookie-note {
  font-size: 0.85em;
  color: #aaa;
  margin-top: 1em;
  text-align: center;
}

.send-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid #fff;
	border-top: 2px solid transparent;
	border-radius: 50%;
	animation: spin 0.7s linear infinite;
	margin-right: 8px;
	vertical-align: middle;
  }
  
  @keyframes spin {
	to { transform: rotate(360deg); }
  }
  
