:root {
  --primary: #DC463F;
  --primary-hover: #C53A34;
  --primary-light: #FDEEEC;
  --accent: #E75A53;
  --dark: #2C3E50;
  --text: #34495E;
  --text-muted: #7F8C8D;
  --bg-gradient-start: #FCF8F5;
  --bg-gradient-end: #F4ECE6;
  --card-bg: #FFFFFF;
  --card-border: rgba(220, 70, 63, 0.1);
  --shadow: 0 20px 45px -15px rgba(220, 70, 63, 0.12), 0 0 25px 0 rgba(0, 0, 0, 0.04);
}

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

html, body {
  width: 100%;
  max-width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: 'Outfit', sans-serif;
  /* cream gradient overlaid on top of the photo so the image shows through faintly */
  background-image: radial-gradient(circle at top right, rgba(253, 242, 233, 0.7) 0%, rgba(252, 248, 245, 0.7) 45%, rgba(244, 236, 230, 0.7) 100%), url('../images/cocina-index.png');
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  color: var(--text);
  padding: clamp(0.75rem, 3vh, 1.5rem);
  position: relative;
  overflow-x: hidden;
}

/* Decorative background shapes; fixed so their negative offsets never expand page scroll height */
.bg-circle {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.45;
  pointer-events: none;
}

.bg-circle-1 {
  top: -100px;
  right: -80px;
  width: 380px;
  height: 380px;
  background: #F8D7DA;
}

.bg-circle-2 {
  bottom: -100px;
  left: -80px;
  width: 420px;
  height: 420px;
  background: #FCEFD9;
}

.container {
  position: relative;
  z-index: 1;
  width: min(100%, 580px);
  margin: auto;
  box-sizing: border-box;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: clamp(1.25rem, 5vh, 3rem) clamp(1.25rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeIn 0.8s ease-out;
}

.logo-container {
  margin-bottom: clamp(0.75rem, 3vh, 2rem);
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  max-width: clamp(120px, 20vh, 230px);
  width: 100%;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.03);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  position: relative;
}

.status-dot::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: inherit;
  border-radius: 50%;
  animation: pulse 1.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

h1 {
  font-size: clamp(1.35rem, 4vh, 2rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 0.85rem;
}

.description {
  font-size: clamp(0.9rem, 2.2vh, 1.05rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: clamp(1rem, 3vh, 2.25rem);
  font-weight: 400;
}

.contact-section {
  border-top: 1px dashed rgba(220, 70, 63, 0.2);
  padding-top: clamp(0.85rem, 3vh, 2rem);
  margin-top: 1rem;
}

.contact-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: clamp(0.75rem, 2vh, 1.25rem);
}

.email-list {
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1.5vh, 0.85rem);
}

.email-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #FAFAFA;
  border: 1px solid rgba(220, 70, 63, 0.15);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  min-width: 0;
}

.email-card span {
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}

.email-card:hover {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(220, 70, 63, 0.22);
}

.email-card svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.25s ease;
  flex-shrink: 0;
}

.email-card:hover svg {
  stroke: #FFFFFF;
}

.footer {
  margin-top: clamp(0.75rem, 2.5vh, 2rem);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.8;
}

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

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

@media (max-width: 480px) {
  body {
    padding: 1rem;
  }

  .card {
    padding: 1.75rem 1.25rem;
    border-radius: 22px;
  }

  .logo-container {
    margin-bottom: 1.25rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  .description {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .contact-section {
    padding-top: 1.25rem;
  }

  .logo {
    max-width: 150px;
  }

  .email-card {
    font-size: 0.78rem;
    gap: 0.4rem;
    padding: 0.8rem 0.6rem;
    white-space: nowrap;
  }

  .email-card svg {
    width: 16px;
    height: 16px;
  }

  .footer {
    margin-top: 1.25rem;
  }
}

@media (max-width: 360px) {
  .email-card {
    font-size: 0.68rem;
  }
}

/* Below this width even the smallest single-line text can't fit; allow wrapping instead of clipping */
@media (max-width: 340px) {
  .email-card {
    white-space: normal;
    text-align: center;
  }
}

/* Extra safety net for very short windows (e.g. laptop browser with toolbars) */
@media (max-height: 500px) {
  .logo {
    max-width: 90px;
  }

  h1 {
    font-size: 1.2rem;
  }

  .description {
    display: none;
  }
}

