@import url('https://fonts.googleapis.com/css2?family=Carattere&display=swap');

:root {
  --color-cafe-oscuro: #34291e;
  --color-dorado: rgb(180, 135, 58);
  --color-azul-mascotas: rgb(9, 99, 216);

  --fuente-principal: 'Lora', serif;
  --fuente-secundaria: 'EBGaramond Medium', sans-serif;
  --fuente-titulos: 'Carattere', sans-serif;
}

@font-face {
  font-family: 'EBGaramond Medium';
  font-style: normal;
  font-weight: normal;
  src: local('EBGaramond Medium'), url('../assets/fonts/EBGaramond-Medium.woff2') format('woff2');
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  overscroll-behavior: none;
}

h1 {
  font-family: var(--fuente-titulos);
  font-size: clamp(2.5rem, calc(3rem + 3vw), 3rem);
  font-weight: 100;
  letter-spacing: 2px;
}

h2 {
  font-family: var(--fuente-titulos);
  font-size: clamp(1.8rem, calc(1.4rem + 2.5vw), 2.8rem);
  font-weight: 400;
  letter-spacing: 2px;
}


h3 {
  font-family: var(--fuente-secundaria);
  font-size: clamp(1.4rem, calc(1.1rem + 2vw), 2rem);
  font-weight: 400;
}

h4 {
  font-family: var(--fuente-principal);
  font-size: clamp(1.2rem, calc(1rem + 1.5vw), 1.6rem);
  font-weight: 100;
}

p,
li,
a,
strong,
span,
button {
  font-family: var(--fuente-principal);
  font-size: clamp(0.95rem, calc(0.8rem + 1vw), 1.15rem);
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.8px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 2rem;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  position: relative;
  height: 40px;
}

.logo img {
  height: 100%;
  width: auto;
  transition: opacity 0.3s ease;
}

.logo-white {
  opacity: 1;
}

.logo-dark {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.header.scrolled .logo-white {
  opacity: 0;
}

.header.scrolled .logo-dark {
  opacity: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1.5px;
  bottom: -10px;
  left: 0;
  background: var(--color-dorado);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--color-dorado);
  pointer-events: none;
}

.nav-links a.active::after {
  width: 0;
}

.header.scrolled .nav-links a.active {
  color: var(--color-dorado);
}

.header.scrolled .nav-links a {
  color: rgba(0, 0, 0, 0.7);
}

.emergency-cta {
  background: var(--color-dorado);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 25px;
  text-decoration: none;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.emergency-cta:hover {
  transform: translateY(-4px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger {
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 3px 0;
  transition: background 0.3s ease;
}

.header.scrolled .hamburger {
  background: #333;
}

.menu-checkbox {
  display: none;
}

@media (max-width: 768px) {
  .header {
    padding: 1rem;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, .95);
    flex-direction: column;
    justify-content: center;
    transition: right 0.3s ease;
  }

  .menu-checkbox:checked~.nav {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .nav-links a {
    font-size: 1.8rem;
    color: #ccc;
    padding: 1rem;
  }

  .header.scrolled .nav-links a {
    color: #ccc;
  }

  .menu-checkbox:checked~.menu-toggle .hamburger:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 7px);
  }

  .menu-checkbox:checked~.menu-toggle .hamburger:nth-child(2) {
    opacity: 0;
  }

  .menu-checkbox:checked~.menu-toggle .hamburger:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -7px);
  }
}

.intro-bar {
  margin-top: 80px;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  color: #ccc;
}

.intro-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.intro-title,
.intro-back {
  margin: 0;
  font-weight: normal;
}

.intro-back:hover {
  text-decoration: underline;
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #25d366;
  border-radius: 50%;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float i {
  font-size: 30px;
  color: white;
}

.footer {
  background: linear-gradient(160deg, #000000 0%, #363636 50%);
  color: white;
  padding: 60px 5% 30px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 50px;
}

.footer-column h3 {
  margin-bottom: 20px;
  color: white;
}

.footer-logo img {
  height: 60px;
  width: auto;
  margin-bottom: 10px;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 40px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--color-dorado);
  font-size: 20px;
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-2px);
}

.footer-nav ul {
  list-style: none;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 12px;
}

.footer-nav a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--color-dorado);
}

.footer-contact a {
  display: flex;
  flex-direction: column;
  color: #ccc;
}

.footer-contact a:hover {
  color: var(--color-dorado);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #666;
  margin-top: 40px;
  padding-top: 25px;
  text-align: center;
  color: #ccc;
}

@media (max-width: 768px) {
  .footer {
    padding: 40px 20px 20px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
}

.block {
  opacity: 0;
  will-change: transform, opacity;
}

@keyframes appear {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate.block {
  animation: appear 1s cubic-bezier(.25, .8, .25, 1) forwards;
}

.block2 {
  opacity: 0;
  will-change: transform, opacity;
}

@keyframes appear2 {
  0% {
    opacity: 0;
    transform: translateY(60px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate.block2 {
  animation: appear2 1s cubic-bezier(.25, .8, .25, 1) forwards;
}