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

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
/* BODY */
body {
  height: 100vh;
  background: #ffd1dc;
  font-family: "Poppins", Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* TÍTULO */
.title {
  margin-top: 30px;
  margin-bottom: 20px;
  color: #ff4b6e;
  font-size: 26px;
  font-weight: 700;
  text-align: center;
}

/* CENTRO REAL DE PANTALLA */
.center {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CONTENEDOR DE LA TARTA (MÓVIL FIRST) */
.cake-container {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  overflow: visible;
}

/* IMAGEN DE LA TARTA */
.cake-img {
  width: 150%;
  max-width: none;
  margin-left: -25%
}

/* INPUTS DENTRO DE LA TARTA */
.date-inputs {
  position: absolute;
  top: 65%;              /* AJUSTA SI QUIERES */
  left: 51%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 10px;
}

/* INPUTS (MÓVIL) */
.date-inputs input {
  width: 35px;
  height: 50px;
  border-radius: 14px;
  border: 2px solid #ff9bb5;
  background: #ffffff;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #ff4b6e;
  outline: none;
}

.check-btn {
  position: absolute;
  top: 100%;              /* justo debajo de los inputs */
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 20px;
  border-radius: 24px;
  border: none;
  background: #ff4b6e;
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(255, 75, 110, 0.35);
}

.check-btn:hover {
  background: #ff2f5b;
}

#error-msg {
	display: none;
	margin-top: 12px;
	color: #ff4b6e;
	font-family: "Playfair Display", serif;
	font-size: 15px;
	text-align: center;
	animation: fadeIn 0.4s ease;
}

/* PLACEHOLDER */
.date-inputs input::placeholder {
  color: #ffb6c9;
}

/* FOCUS */
.date-inputs input:focus {
  border-color: #ff4b6e;
}

/* AÑO UN POCO MÁS ANCHO */
.date-inputs input:last-child {
  width: 75px;
}

.heart{
	position: fixed;
	font-size: 32px;
	animation: floatUp 1.5s ease-out forwards;
	pointer-events: none;
	z-index: 9999;
}

.card{
	background:#fff3e8;
	border-radius: 30px;
	padding: 40px 30px 50px;
	box-shadow: 0 20px 50px rgba(0,0,0,0.15);
	text-align: center;
	max-width: 420px;
	width: 90%;
	z-index: 10;
}

.card-title{
	font-family: "Playfair Display", serif;
	color: #ff4b6e;
	font-size: 22px;
	font-weight: 600;
	margin-bottom: 6px;
}

.card-subtitle {
	font-family: "Playfair Display", serif;
	color: #ff4b6e;
	font-size: 14px;
	font-weight: 600;
	opacity: 0.8;
	margin-bottom: 22px;
}

.floating{
	position: fixed;
	top: 0;
	pointer-events: none;
	font-size: 24px;
	z-index: 5;
	animation: fall linear forwards;

}

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


@keyframes fall {
	to {
		transform: translateY(110vh);
		opacity: 0;
	}
}

@keyframes floatUp {
	from {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
	to{
		opacity: 0;
		transform: translateY(-160px) scale(1.6);
	} 
}


/* ========================= */
/* ===== ESCRITORIO ======= */
/* ========================= */

@media (min-width: 768px) {

  .title {
    font-size: 32px;
  }

  .cake-container {
    width: 1100px;        /* TARTA MÁS GRANDE EN ORDENADOR */
  }

  .cake-img{
	  width:100%;
	  margin-left:0;
  }
  
  .date-inputs {
    gap: 14px;
  }

  .date-inputs input {
    width: 75px;
    height: 56px;
    font-size: 18px;
  }

  .date-inputs input:last-child {
    width: 100px;
  }
  
  .heart {
	  font-size: 40px;
  }
}
