:root {
  --color-text-green: #6B7556;
  --color-text-pink: #C87D87;
  --color-btn-bg: #C87D87;
  --font-serif: 'Lora', serif;
  --font-script: 'Pinyon Script', cursive;
  --font-alice: 'Alice', serif;
  --font-alegreya: 'Alegreya', serif;
}

/* ========== CONTENEDOR PRINCIPAL ========== */

.invitation-card {
  position: relative;
  width: 100%;
  max-width: 700px;
  /* min-height: 100dvh; */
  background-color: #fff;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 40px 40px 40px;
}



/* ========== DECORACIONES ========== */

.decoration {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.flores-superior {
  width: clamp(50px, 48vw, 300px);
  flex-shrink: 0;
  margin-top: 0;
  margin-right: -40px;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(1px 22px 0px #fff) drop-shadow(4px -30px 1px #fff);
}

.flores-inferior {
  width: clamp(50px, 48vw, 300px);
  flex-shrink: 0;
  margin-bottom: -40px;
  margin-left: -40px;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(-20px 48px 0px #fff) drop-shadow(-20px -18px 1px #fff);
}



/* ========== HEADER ========== */

.invitation-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  line-height: 1.3;
  padding-top: clamp(10px, 3vw, 30px);
  margin-bottom: 0;
  font-family: var(--font-alice);
}

.frase_p {
  flex: 1;
  font-size: 24px;
  text-align: left;
  padding-top: clamp(8px, 2.5vw, 24px);
}

.frase_p span {
  display: block;
}

/* ========== CONTENIDO PRINCIPAL ========== */

.baby-name {
  font-family: var(--font-script);
  font-size: 5rem;
  color: var(--color-text-pink);
  font-weight: normal;
  margin-top: clamp(-60px, -8vw, -120px);
  margin-bottom: 10px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.curved-text-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: -20px;
  z-index: 5;
  position: relative;
}

.curved-text-container svg {
  width: 350px;
  height: auto;
  overflow: visible;
}

.curved-text {
  font-size: 56px;
  font-weight: 600;
  font-variant: normal;
  fill: var(--color-text-green);
  letter-spacing: 6px;
  font-family: var(--font-alegreya);
}

.rabbit-container {
  margin-bottom: 30px;
  z-index: 2;
  position: relative;
  display: flex;
  justify-content: center;
}

.rabbit-img {
  width: 180px;
  height: auto;
}

/* ========== DETALLES ========== */

.details {
  margin-bottom: 40px;
  z-index: 2;
}

.date-day {
  font-size: 1.5rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.date-full {
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.separator {
  font-size: 1rem;
  color: var(--color-text-pink);
  opacity: 0.6;
}

.date-number {
  font-size: 2rem;
  font-weight: 600;
}

.time {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.location-address p {
  font-size: 1.2rem;
  line-height: 1.4;
}

/* ========== BOTONES ========== */

.actions {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
  /* Reduced from 50px */
  z-index: 10;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  background: linear-gradient(to bottom, #d49ca3, #c27680);
  width: 180px;
  height: 54px;
  gap: 10px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.25);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-icon {
  width: 24px;
  height: auto;
  margin-right: 15px;
  filter: brightness(0) invert(1);
}

.btn-text {
  font-family: var(--font-serif);
  font-size: 12px;
  text-align: center;
  text-transform: uppercase;
}

/* ========== FOOTER ========== */

.invitation-footer {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 10px;
  margin-top: clamp(-120px, -25vw, -180px);
  z-index: 5;
}

.footer_p {
  flex: 1;
  font-size: 1.5rem;
  font-family: var(--font-alice);
  text-align: right;
  margin-bottom: clamp(8px, 3vw, 20px);
}

/* ========== MEDIA QUERIES ========== */

@media screen and (max-width: 660px) {

  .frase_p,
  .footer_p {
    font-size: 20px;
  }

  .baby-name {
    font-size: 4rem;
  }

  .flores-inferior {
    filter: drop-shadow(6px 0px 0px #fff) drop-shadow(-12px -16px 1px #fff);
  }
}

@media screen and (max-width: 600px) {
  .baby-name {
    font-size: 3rem;
  }

  .btn {
    width: 140px;
    height: 46px;
  }

  .btn-text {
    font-size: 10px;
  }
}

@media screen and (max-width: 560px) {
  .invitation-header {
    margin-bottom: 0;
  }

  .baby-name {
    margin-bottom: 0;
  }

  .frase_p,
  .footer_p {
    font-size: 16px;
  }

  .btn-icon {
    margin-right: 10px;
  }
}

@media screen and (max-width: 500px) {
  .invitation-header {
    gap: 15px;
  }

  .invitation-footer {
    position: relative;
    margin-top: -95px;
    display: block;
  }

  .footer_p {
    position: absolute;
    bottom: 12px;
    right: 12px;
    margin: 0;
    padding: 0;
    margin-bottom: 5%;
  }

  .date-day,
  .time,
  .location-address p {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .date-full {
    font-size: 20px;
  }

  .rabbit-img {
    width: 137px;
  }

  .curved-text {
    font-size: 56px;
  }

  .details {
    margin-bottom: 10px;
  }

  .btn {
    width: 120px;
    gap: 0px;
  }

  .btn-icon {
    margin-right: 4px;
  }

  .btn-text,
  .btn-secondary {
    font-size: 10px;
    font-weight: 100;
  }

  .icono {
    width: 14px;
  }

  .frase_p,
  .footer_p {
    font-size: 12px;
  }

  .flores-inferior {
    margin-left: -22px;
    margin-bottom: 10px;
  }
}

@media screen and (max-width: 480px) {
  .curved-text {
    font-size: 48px;
  }


  .actions {
    gap: 15px;
    margin-bottom: 20px;
  }
}

@media screen and (max-width: 430px) {
  .curved-text {
    font-size: 40px;
  }

  .date-day,
  .time,
  .location-address p {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .date-full {
    font-size: 18px;
  }

}

@media screen and (max-width: 400px) {
  .flores-inferior {
    margin-left: -30px;
    margin-bottom: 10px;
  }
}