/* ==========================================================================
   1. CONFIGURACIÓN GENERAL Y VARIABLES (COLOR ROSITA PASTEL)
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Pacifico&family=Luckiest+Guy&family=Fredoka:wght@300;400;600;700&display=swap");

:root {
  --primary-color: #ff9aa2;
  --primary-hover: #ff7b85;
  --bg-color: #fff0f3;
  --card-bg: #ffffff;
  --text-main: #4a4a4a;
  --text-muted: #707070;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Fredoka", system-ui, sans-serif;
  background-color: var(--bg-color);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ctext y='30' font-size='16' opacity='0.10'%3E%E2%9D%A4%3C/text%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Ctext x='10' y='45' font-size='14' opacity='0.07'%3E%E2%AD%90%3C/text%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='110'%3E%3Ctext x='15' y='60' font-size='20' opacity='0.06'%3E%F0%9F%92%95%3C/text%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='75' height='75'%3E%3Ctext x='5' y='40' font-size='13' opacity='0.08'%3E%F0%9F%8E%80%3C/text%3E%3C/svg%3E");
  background-size:
    60px 60px,
    90px 90px,
    110px 110px,
    75px 75px;
  background-position:
    0 0,
    35px 35px,
    18px 55px,
    55px 12px;
  color: var(--text-main);
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  width: 100%;
}

/* ==========================================================================
   2. ENCABEZADO (HEADER)
   ========================================================================== */
header {
  background-color: #ffffff;
  padding: 12px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #ffe3e8;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 54px;
  width: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffb3c1;
  box-shadow: 0 3px 10px rgba(255, 154, 162, 0.4);
  flex-shrink: 0;
}

.logo {
  font-family: "Pacifico", cursive;
  font-size: 22px;
  color: #ff7b85;
  white-space: nowrap;
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  margin-left: 25px;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.2s ease;
}

nav a:hover,
nav a.active {
  background-color: var(--primary-color);
  color: white;
}

/* ==========================================================================
   3. SECCIÓN HERO
   ========================================================================== */
.hero {
  text-align: center;
  padding: 40px 30px;
  background-color: var(--card-bg);
  border-radius: 24px;
  margin-bottom: 40px;
  box-shadow: 0 10px 25px rgba(255, 154, 162, 0.15);
  border: 1px solid #ffe3e8;
}

.hero h1 {
  font-family: "Pacifico", cursive;
  color: #ff6b76;
  font-size: 2.8rem;
  margin: 0 0 15px 0;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   3.5 VIDEO DE BIENVENIDA (dentro del hero)
   ========================================================================== */
.hero-video {
  max-width: 640px;
  margin: 25px auto 0 auto;
}

/* ==========================================================================
   4. GRILLA DE VIDEOS Y SHORTS
   ========================================================================== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.video-card {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(255, 154, 162, 0.12);
  border: 1px solid #ffe3e8;
  text-align: left;
}

.video-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ff6b76;
  margin-top: 0;
  margin-bottom: 15px;
}

.short-card {
  grid-column: span 2;
  max-width: 380px;
  margin: 10px auto 0 auto;
  width: 100%;
}

.iframe-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  background-color: #000;
  border-radius: 16px;
  overflow: hidden;
}

.iframe-container.short-container {
  padding-bottom: 177.77%;
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   5. CAJA LEGAL Y FORMULARIO
   ========================================================================== */
.legal-box {
  background: #ffffff;
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(255, 154, 162, 0.12);
  border: 1px solid #ffe3e8;
  max-width: 700px;
  margin: 40px auto;
  line-height: 1.7;
}

/* ==========================================================================
   6. NUBE DE CONTACTO
   ========================================================================== */
.nube-bloque {
  position: relative;
  width: 100%;
  margin: 10px auto 40px auto;
  text-align: center;
}

.nube-bloque img.nube-img {
  width: 100%;
  display: block;
}

.nube-contenido {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58%;
}

.nube-contenido h1 {
  font-family: "Luckiest Guy", cursive;
  color: #ff6cb6;
  font-size: 2.4rem;
  font-style: italic;
  margin: 0 0 10px 0;
  letter-spacing: 1px;
}

.nube-contenido .nube-emoji {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 8px;
}

.nube-contenido p {
  font-family: "Fredoka", sans-serif;
  color: #ff7b85;
  font-size: 1rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   7. FORMULARIO DE CONTACTO
   ========================================================================== */
.contact-form {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
}

.contact-form label {
  font-weight: 600;
  margin-top: 15px;
  color: var(--text-main);
}

.contact-form input,
.contact-form textarea {
  font-family: "Fredoka", sans-serif;
  padding: 14px;
  margin-top: 8px;
  border: 2px solid #ffe3e8;
  border-radius: 14px;
  font-size: 16px;
  background-color: #fffcfd;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}

.contact-form button {
  font-family: "Fredoka", sans-serif;
  margin-top: 30px;
  padding: 16px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 18px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 6px 15px rgba(255, 154, 162, 0.4);
  transition: all 0.2s ease;
}

.contact-form button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

/* ==========================================================================
   8. PIE DE PÁGINA
   ========================================================================== */
footer {
  background-color: #ffffff;
  border-top: 2px solid #ffe3e8;
  color: var(--text-muted);
  text-align: center;
  padding: 40px 20px;
  margin-top: auto;
  font-size: 0.95rem;
}

.footer-links {
  margin-top: 15px;
}

.footer-links a {
  color: #ff7b85;
  text-decoration: none;
  margin: 0 10px;
  font-weight: 600;
}

/* ==========================================================================
   9. RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 16px 20px;
    gap: 12px;
  }

  nav a {
    margin: 0 5px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .video-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .short-card {
    grid-column: span 1;
  }

  .nube-contenido h1 {
    font-size: 1.6rem;
  }

  .nube-contenido p {
    font-size: 0.85rem;
  }
}
