/* =========================================
   FUENTES
   ========================================= */
@font-face {
  font-family: 'Bugaki';
  src: url('../bugaki/Bugaki.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Bugaki';
  src: url('../bugaki/Bugaki Oblique.ttf') format('truetype');
  font-weight: normal;
  font-style: oblique;
}

/* =========================================
   ACCESIBILIDAD
   ========================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --azul:       #2D2DE4;
  --amarillo:   #FFB70D;
  --blanco:     #FFFFFF;
  --gris-texto: #94A3B8;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  background-color: var(--blanco);
  font-family: 'Inter', sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
}

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: clamp(48px, 7vh, 90px);
  overflow: hidden;
}

/* --- Centro: casa + botón --- */
.hero-centro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  z-index: 2;
  position: relative;
}

/* --- Casa --- */
.casa-wrapper {
  width: clamp(340px, 36vw, 560px);
}

.casa-svg {
  width: 100%;
  height: auto;
}

/* --- Botón DONAR --- */
.botones-wrapper {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.btn-donar {
  display: inline-block;
  background-color: var(--amarillo);
  color: var(--azul);
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.85rem, 1vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 18px 0;
  width: 200px;
  text-align: center;
  border: none;
  border-radius: 50px;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn-donar:hover {
  opacity: 0.88;
}

/* --- Perros full desktop --- */
.perros-full {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 1;
  pointer-events: none;
}

/* Perros móvil: oculto en desktop */
.perros-movil {
  display: none;
}


/* =========================================
   FOOTER
   ========================================= */
.footer {
  background-color: var(--blanco);
  padding: 48px 60px 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto;
}

/* --- Logo + descripción --- */
.footer-col--left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-circular {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.footer-logo-texto {
  width: 130px;
  height: auto;
}

.footer-descripcion {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--gris-texto);
  line-height: 1.7;
  text-align: left;
}

/* --- Redes sociales --- */
.footer-col--center {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding-top: 16px;
}

.footer-redes {
  display: flex;
  gap: 28px;
  align-items: center;
}

.footer-redes a img {
  width: 28px;
  height: 28px;
  filter: brightness(0) saturate(100%) invert(18%) sepia(96%) saturate(4000%) hue-rotate(230deg) brightness(90%);
  transition: opacity 0.2s ease;
}

.footer-redes a:hover img {
  opacity: 0.7;
}

/* --- Contacto --- */
.footer-col--right {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: 16px;
}

.footer-contacto {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-style: normal;
}

.contacto-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contacto-item img {
  width: 20px;
  height: 20px;
  filter: brightness(0) saturate(100%) invert(77%) sepia(93%) saturate(629%) hue-rotate(345deg) brightness(103%);
}

.contacto-item span {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gris-texto);
  letter-spacing: 0.04em;
}

/* --- Créditos --- */
.footer-creditos {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--gris-texto);
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

/* =========================================
   RESPONSIVE — MÓVIL
   ========================================= */
@media (max-width: 768px) {

  /* Hero */
  .hero {
    height: auto;
    min-height: auto;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 32px;
    overflow: visible;
  }

  .hero-centro {
    gap: 24px;
    width: 100%;
    padding: 0 16px;
    position: relative;
    z-index: 2;
  }

  .casa-wrapper {
    width: 88vw;
  }

  .botones-wrapper {
    width: 100%;
  }

  .btn-donar {
    flex: 1;
    width: auto;
    padding: 16px 20px;
    font-size: 0.95rem;
  }

  /* Perros desktop: oculto en móvil */
  .perros-full {
    display: none;
  }

  /* Perros móvil: visible, en flujo normal bajo el botón */
  .perros-movil {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 24px;
    position: relative;
    z-index: 1;
  }

  /* Footer */
  .footer {
    padding: 40px 24px 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-col--left {
    order: 1;
  }

  .footer-col--right {
    order: 2;
    justify-content: flex-start;
  }

  .footer-col--center {
    order: 3;
    justify-content: center;
    padding-top: 0;
  }

  .footer-redes {
    gap: 32px;
    justify-content: center;
  }

  .footer-redes a img {
    width: 32px;
    height: 32px;
  }
}
