/* ==========================================================================
   1. VARIABLES & CONFIGURATION
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* Paleta oficial de Vetty: azul, menta, turquesa, durazno y marfil */
:root {
  --ink: #173f5f;
  --green: #63cdb0;
  --teal: #39b6d0;
  --mint: #e4f7f0;
  --cream: #fffcf6;
  --coral: #f5ad72;
  --muted: #74879a;
  --line: #dfe7e9;
}

/* ==========================================================================
   2. BASE STYLES & TYPOGRAPHY
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--cream);
  color: var(--ink);
  font-family: "Poppins", Arial, sans-serif;
  position: relative; /* Necesario para posicionar el fondo */
  z-index: 0;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../assets/background.svg");
  opacity: 0.3; /* Aquí controlas la opacidad deseada */
  z-index: -1; /* Envía el fondo detrás de todo el contenido */
  pointer-events: none; /* Evita que bloquee clics en la página */
}

.hero h1 em, 
.cta h2 em {
  color: var(--teal);
  font-weight: 100;
  font-style: normal;
}

.intro h2 em {
  color: var(--green);
  font-style: normal;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Fredoka", Arial, sans-serif;
}

h1 b, h2 b, h3 b, h4 b, h5 b, h6 b {
  font-weight: 500;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(1160px, calc(100% - 40px));
  margin: auto;
}

/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */

.nav-stacked {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 0 20px;
  gap: 20px;
}

.brand.centered {
  display: flex;
  justify-content: center;
}

.brand.centered .brand-logo {
  width: 150px;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.nav-bottom-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-weight: 500;
}

nav {
  display: flex;
  gap: 32px;
  font-size: 20px;
  color: var(--ink);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: "Fredoka", Arial, sans-serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -1px;
  min-width: 130px;
}

.brand-logo {
  display: block;
  width: 70px;
  height: 70px;
  object-fit: contain;
  object-position: left center;
}

.footer-logo {
  width: 120px;
  height: 52px;
}

.pill {
  border: 1px solid #b7d8d2;
  border-radius: 30px;
  padding: 12px 19px;
  font-size: 16px;
  font-weight: 700;
}

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 40px;
  padding: 65px 0 85px;
}

.eyebrow {
  color: var(--green);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.eyebrow:before {
  content: "●";
  color: var(--coral);
  font-size: 16px;
  margin-right: 9px;
}

.hero h1 {
  font-family: "Fredoka", Arial, sans-serif;
  font-size: clamp(54px, 6vw, 59px);
  font-weight: 100;
  line-height: .99;
  letter-spacing: -3.8px;
  margin: 22px 0 25px;
}

.hero h1 em, 
.intro h2 em {
  color: var(--teal);
  font-weight: 500;
}

.hero-copy > p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 590px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 36px;
}

.button {
  background: linear-gradient(100deg, var(--green), var(--teal));
  color: white;
  border-radius: 30px;
  padding: 16px 22px;
  font-size: 14px;
  font-weight: bold;
  display: inline-flex;
  gap: 25px;
  align-items: center;
  box-shadow: 0 13px 28px #39b6d02b;
}

/* Estilo para el botón secundario del PDF */
.button.secondary {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none; /* Quitamos la sombra del principal */
}

.button.white {
  background: white;
  color: var(--ink);
  box-shadow: none;
  position: relative;
}

.soon {
  font-size: 16px;
  color: var(--muted);
}

.soon:before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #63b889;
  box-shadow: 0 0 0 5px #63b88920;
  margin-right: 10px;
}

/* ==========================================================================
   5. VISUAL MOCKUP & PHONE
   ========================================================================== */

.visual {
  height: 500px;
  position: relative;
  display: grid;
  place-items: center;
}

.visual:before, 
.visual:after {
  content: "";
  position: absolute;
  border: 1px solid #a5d2ca88;
  border-radius: 50%;
  width: 430px;
  height: 430px;
}

.visual:after {
  width: 520px;
  height: 520px;
}

.phone {
  width: 278px;
  height: 500px;
  border: 7px solid var(--ink);
  border-radius: 38px;
  background: white;
  box-shadow: 0 28px 65px #173f5f25;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.phone-head {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  font-size: 10px;
}

.phone-head b {
  font-size: 14px;
}

.pet-cover {
  height: 125px;
  background: linear-gradient(135deg, #dff6ed, #a9e7e9);
  display: grid;
  place-items: center;
  position: relative;
}

.pet {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 5px solid #ffffff88;
  display: grid;
  place-items: center;
  font-size: 39px;
}

.active {
  position: absolute;
  top: 10px;
  right: 10px;
  background: white;
  color: var(--green);
  font-size: 7px;
  font-weight: bold;
  padding: 6px 8px;
  border-radius: 20px;
}

.pet-info {
  padding: 17px 18px 11px;
}

.pet-info small, 
.card small {
  font-size: 16px;
  color: var(--teal);
  font-weight: 800;
  letter-spacing: 1.3px;
}

.pet-info h3 {
  font-size: 25px;
  font-weight: 600;
  margin: 5px 0 3px;
}

.pet-info p {
  font-size: 9px;
  color: var(--muted);
  margin: 0;
}

.quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 13px;
}

.quick div {
  background: #eef9f6;
  border-radius: 13px;
  padding: 11px;
}

.quick span, 
.quick b {
  display: block;
  font-size: 8px;
}

.quick span {
  color: var(--muted);
  margin-bottom: 5px;
}

.health {
  margin: 12px 13px;
  background: #fff6ee;
  border: 1px solid #f8dfca;
  border-radius: 13px;
  padding: 12px;
  font-size: 9px;
  color: #e69150;
}

.float {
  position: absolute;
  z-index: 3;
  background: #fffffff2;
  border: 1px solid white;
  border-radius: 15px;
  padding: 13px 15px;
  box-shadow: 0 16px 38px #173c3c1b;
}

.float small, 
.float b {
  display: block;
}

.float small {
  font-size: 7px;
  color: var(--muted);
  letter-spacing: 1px;
}

.float b {
  font-size: 10px;
  margin-top: 4px;
}

.qr {
  left: 1%;
  top: 20%;
}

.date {
  right: -2%;
  bottom: 18%;
}

/* ==========================================================================
   6. TRUST / SOCIAL PROOF
   ========================================================================== */

.trust {
  background: white;
  border-block: 1px solid var(--line);
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 65px;
}

.trust > span {
  font-size: 16px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.trust div {
  display: flex;
  gap: 50px;
}

.trust b {
  font-family: "Fredoka", Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
}

/* ==========================================================================
   7. SECTIONS & CARDS
   ========================================================================== */

.section {
  padding-top: 112px;
  padding-bottom: 100px;
}

.label {
  font-size: 16px;
  color: var(--teal);
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 30px;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 100px;
}

.intro h2, 
.process h2 {
  font-family: "Fredoka", Arial, sans-serif;
  font-size: clamp(40px, 5vw, 59px);
  font-weight: 100;
  line-height: 1.08;
  letter-spacing: -2px;
  margin: 0;
}

.intro-text {
  border-left: 1px solid var(--line);
  padding-left: 42px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.intro-text p:first-child {
  margin-top: 0;
}

.cards {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 18px;
  padding-bottom: 115px;
}

.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 25px;
  padding: 34px;
  min-height: 390px;
  box-shadow: 0 8px 30px #173c3c08;
}

.card.dark {
  background: var(--ink);
  color: white;
}

.icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--mint);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 45px;
}

.card h3 {
  font-size: 28px;
  font-weight: 500;
  margin: 10px 0 14px;
}

.card p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}

.dark p, 
.card.dark p {
  color: #c2d1dc;
}

.demo {
  margin-top: 24px;
  padding: 13px;
  background: #ffffff12;
  border: 1px solid #ffffff1b;
  border-radius: 14px;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
}

.card:not(.dark) .demo {
  background: #fff7f0;
  border-color: #f6e0cf;
}

.tags {
  display: flex;
  gap: 6px;
  margin-top: 25px;
}

.tags span {
  background: #e8f8f2;
  color: #35a985;
  font-size: 16px;
  border-radius: 20px;
  padding: 8px 10px;
}

/* ==========================================================================
   8. PROCESS & CALL TO ACTION (CTA)
   ========================================================================== */

.process {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 100px;
}

.process-copy > p {
  color: var(--muted);
  line-height: 1.8;
}

.step {
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 20px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.step > span {
  font-family: "Fredoka", Arial, sans-serif;
  font-size: 27px;
  font-weight: 500;
  color: var(--coral);
}

.step h3 {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 7px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.cta {
  margin: 0 20px;
  background: linear-gradient(125deg, var(--ink), #245f78);
  color: white;
  border-radius: 34px;
  min-height: 485px;
  text-align: center;
  padding: 90px 25px 55px;
  position: relative;
  overflow: hidden;
}

.cta:before, 
.cta:after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border: 1px solid #ffffff20;
  border-radius: 50%;
  top: -100px;
}

.cta:before {
  left: -260px;
}

.cta:after {
  right: -260px;
}

.cta h2 {
  font-family: "Fredoka", Arial, sans-serif;
  font-size: clamp(39px, 5vw, 58px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -2px;
  max-width: 800px;
  margin: 23px auto 17px;
  position: relative;
}

.cta p {
  max-width: 590px;
  margin: 0 auto 30px;
  color: #d8e5ec;
  line-height: 1.7;
}

.note {
  font-size: 14px;
  color: #b8d8e2;
  margin-top: 40px;
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */

footer {
  min-height: 125px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
}

footer p {
  text-align: center;
  color: var(--muted);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 16px;
  font-style: italic;
}

footer > span {
  text-align: right;
  font-size: 16px;
  color: #849795;
}

/* ==========================================================================
   10. YOUTUBE VIDEO SECTION STYLES
   ========================================================================== */

.video-section {
  text-align: center;
  background: white;
  border-block: 1px solid var(--line);
  padding: 80px 0;
}

.video-container-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.video-container-wrapper h2 {
  font-family: "Fredoka", Arial, sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 100;
  letter-spacing: -1.5px;
  margin-bottom: 40px;
  color: var(--ink);
}

.youtube-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(23, 63, 95, 0.15);
  border: 4px solid var(--mint);
  background: #000;
}

.youtube-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   11. MEDIA QUERIES
   ========================================================================== */

@media(max-width: 900px) {
  nav {
    display: none;
  }
  
  .nav-stacked {
    padding: 20px 0;
  }

  .nav-bottom-bar {
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
  }
  
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-copy > p {
    margin-inline: auto;
  }
  
  .actions {
    justify-content: center;
  }
  
  .visual {
    margin-top: 35px;
  }
  
  .intro-grid, 
  .process {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  
  .intro-text {
    border: 0;
    padding: 0;
  }
  
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  
  .dark {
    grid-column: 1 / -1;
  }
  
  .trust {
    gap: 22px;
    flex-direction: column;
    padding: 25px;
  }
  
  .trust div {
    gap: 28px;
  }
  
  footer {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 35px 0;
  }
  
  footer .brand {
    justify-content: center;
  }
  
  footer .brand-logo {
    object-position: center;
  }
  
  footer p, 
  footer > span {
    text-align: center;
    margin: 5px;
  }
}

@media(max-width: 600px) {
  .wrap {
    width: min(100% - 34px, 1160px);
  }
  
  .nav-stacked {
    padding: 15px 0;
  }
  
  .pill {
    padding: 10px 13px;
  }
  
  .hero {
    padding: 45px 0 60px;
  }
  
  .hero h1 {
    font-size: 47px;
    letter-spacing: -2.3px;
  }
  
  .hero-copy > p {
    font-size: 16px;
  }
  
  .actions {
    flex-direction: column;
    gap: 15px; /* Ajuste de espacio entre botones en móvil */
  }
  
  .visual {
    height: 470px;
    transform: scale(.86);
    margin-inline: -20px;
  }
  
  .qr {
    left: -5%;
  }
  
  .date {
    right: -7%;
  }
  
  .trust div {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .section {
    padding-top: 78px;
    padding-bottom: 75px;
  }

  .cards {
    grid-template-columns: 1fr;
    padding-bottom: 80px;
  }
  
  .dark {
    grid-column: auto;
  }
  
  .cta {
    margin: 0 8px;
    border-radius: 25px;
    padding-top: 72px;
  }
  
  .cta h2 {
    font-size: 39px;
  }
}

@media(prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Botón Volver al Inicio */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--teal);
  color: white;
  border-radius: 50%;
  display: none; /* Oculto por defecto */
  align-items: center;
  justify-content: center;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 1000;
  transition: background-color 0.3s, transform 0.3s, opacity 0.3s;
  opacity: 0;
}

.back-to-top.show {
  display: flex;
  opacity: 1;
}

.back-to-top:hover {
  background-color: var(--ink);
  transform: scale(1.1);
}
