/* ====================================================================
   VARIABLES
   ==================================================================== */
:root {
  --color-primary: #1b1b1b;
  --color-secondary: #0d6efd;
  --color-secondary-strong: #0b5ed7;
  --color-text-dark: #161515;
  --color-text-light: #ffffff;
  --color-bg-light: #f7f7f7;
  --font-main: 'Vend Sans', sans-serif;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --z-navbar: 1000;
  --z-whatsapp: 9999;
}

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

/* ====================================================================
   TIPOGRAFÍA
   ==================================================================== */
body {
  font-family: var(--font-main);
}

h1 {
  font-size: 100px;
  font-weight: 100;
  color: rgb(160, 152, 152);
  text-transform: uppercase;
}

h3 {
  font-size: 50px;
  color: rgb(72, 132, 156);
  font-weight: 100;
}

h6 {
  font-size: 30px;
  color: rgb(23, 44, 53);
  font-weight: 100;
}

a {
  text-decoration: none;
  font-weight: 600;
  color: var(--color-text-light);
  transition: all var(--transition-base);
}

a:hover {
  color: var(--color-secondary);
  transform: scale(1.05);
}

a:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

a:active {
  transform: scale(0.98);
}

/* ====================================================================
   ANIMACIONES
   ==================================================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounceInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -3000px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.animate--fade-in {
  opacity: 0;
  transform: translateY(8px);
  animation-name: fadeIn;
  animation-duration: 3s;
  animation-delay: 0ms;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-fill-mode: both;
  will-change: transform, opacity;
}

.animate--slide-up {
  opacity: 0;
  transform: translateY(20px);
  animation-name: slideUp;
  animation-duration: 4s;
  animation-delay: 0ms;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-fill-mode: both;
  will-change: transform, opacity;
}

.animate--zoom-in {
  opacity: 0;
  transform: translateY(20px);
  animation-name: zoomIn;
  animation-duration: 10s;
  animation-delay: 5ms;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-fill-mode: both;
  will-change: transform, opacity;
}

.animate--fast {
  animation-duration: 3s !important;
}

.animate--slow {
  animation-duration: 3s !important;
}

.animate__animated {
  animation-fill-mode: both;
}

.animate__bounceInDown {
  animation-name: bounceInDown;
  animation-duration: 5ms;
}

/* ====================================================================
   HEADER
   ==================================================================== */
.encabezado {
  background-color: var(--color-primary);
  color: rgb(214, 114, 114);
  text-align: center;
  padding: 40px 0;
}

.encabezado .img-logo {
  width: 50vh;
  margin: 0 auto;
  border-radius: 50%;
  display: block;
}

/* ====================================================================
   NAVBAR
   ==================================================================== */
.sticky {
  position: sticky;
  top: 0;
  background-color: #0e0d0d;
  z-index: var(--z-navbar);
  width: 100%;
  left: 0;
  padding: 5px;
}

.navbar .nav-link {
  color: var(--color-text-light) !important;
  transition: color 0.2s ease;
}

.navbar .nav-link:hover {
  color: var(--color-secondary) !important;
  transform: none;
}

.navbar .nav-link.active {
  color: var(--color-secondary) !important;
  font-weight: 600;
}

.navbar .navbar-brand {
  color: var(--color-text-light) !important;
}

.navbar .navbar-brand:hover {
  color: var(--color-secondary) !important;
}

/* ====================================================================
   GRID
   ==================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid--responsive {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid--center {
  place-items: center;
}

/* ====================================================================
   BOTONES
   ==================================================================== */
button {
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  cursor: pointer;
}

/* Botón de WhatsApp */
.whatsapp-button {
  background-color: #25D366;
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  z-index: var(--z-whatsapp);
}

.whatsapp-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.whatsapp-button:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(13, 110, 253, 0.25);
}

.whatsapp-button i {
  font-size: 3rem;
}

/* Botón fijo en la esquina inferior derecha */
.whatsapp-fixed {
  position: fixed;
  right: 20px;
  bottom: 20px;
}

/* ====================================================================
   FOOTER
   ==================================================================== */
footer {
  text-align: center;
  padding: 20px;
}

footer .link-instagram {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  color: var(--color-secondary);
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

footer .link-instagram:hover {
  background-color: var(--color-secondary-strong);
  color: var(--color-text-light);
  transform: translateY(-2px);
}

/* ====================================================================
   SERVICIOS
   ==================================================================== */
.services {
  display: grid;
  gap: 1rem;
}

.services .service-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  padding: 1rem;
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.services .service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.services .service-card img {
  width: 100%;
  border-radius: var(--radius-md);
  transition: transform var(--transition-base);
}

.services .service-card:hover img {
  transform: scale(1.05);
}

/* ====================================================================
   HOME
   ==================================================================== */
.imagen-inicial {
  width: 90%;
  display: block;
  height: auto;
  margin: 40px auto;
  border-radius: 12px;
  will-change: transform, opacity;
}

.img-blog {
  display: block;
  width: 100%;
  max-width: 260px;
  height: auto;
  margin: 12px auto;
  border-radius: 12px;
}

/* ====================================================================
   FORMULARIOS
   ==================================================================== */
form {
  max-width: 720px;
  margin: 0 auto;
}

form label {
  font-weight: 600;
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid #ccc;
}

form input:focus,
form select:focus,
form textarea:focus {
  border-color: var(--color-secondary);
  outline: none;
}

form button {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}

form button:hover {
  background-color: var(--color-secondary);
}

/* ====================================================================
   RESPONSIVE
   ==================================================================== */
@media (min-width: 768px) {
  .img-blog {
    max-width: 360px;
  }
}

@media (min-width: 992px) {
  .img-blog {
    max-width: 440px;
  }
}

@media (min-width: 700px) {
  .services {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1024px) {
  h1 {
    font-size: 48px;
  }
  h3 {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 32px;
  }
  h3 {
    font-size: 20px;
  }
  .img-logo {
    width: 90px;
  }
}
