/* ============================
   RESET BÁSICO
   ============================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Myriad Variable Concept", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #f1ede1;
  color: #1f1f1f;
  -webkit-font-smoothing: antialiased;
}

/* Imágenes y enlaces */
img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================
   VARIABLES
   ============================ */
:root {
  --color-bg-main: #f1ede1;
  --color-bg-strong: #f05526;
  --color-bg-dark: #252525;
  --color-text-main: #1f1f1f;
  --color-text-light: #f1ede1;
  --color-accent: #f05526;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-soft: 0 20px 50px rgba(0, 0, 0, 0.18);
  --max-width: 1080px;
}

/* ============================
   LAYOUT GENERAL
   ============================ */

.page {
  min-height: 100vh;
}

.section {
  padding: 3.5rem 1.5rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Etiqueta pequeña encima de títulos */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(31, 31, 31, 0.7);
}

.section-label::before {
  content: "";
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background-color: rgba(31, 31, 31, 0.4);
}

.section-title {
  margin: 0.6rem 0 1rem;
  font-family: "Myriad Variable Concept", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.9rem;
  line-height: 1.15;
  letter-spacing: 0.03em;
}

.section-lead {
  margin: 0 0 1.2rem;
  font-size: 1rem;
  line-height: 1.7;
}

/* ============================
   SECCIÓN LOGO
   ============================ */

.section-logo {
  background-color: var(--color-bg-main);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 4.5rem;
  padding-bottom: 3rem;
}

.logo-wrapper {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.logo-img {
  width: min(420px, 80vw);
  margin: 0 auto 1rem;
}

.logo-tagline {
  margin: 0;
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.7);
}

/* Mascota sobre el logo */
.mascota {
  margin: -30px auto -55px;
  width: 90px;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Animaciones de entrada del logo, mascota y tagline */
.logo-img {
  opacity: 0;
  animation: slideInRight 2s ease-out 0.10s forwards;
}

.logo-tagline {
  opacity: 0;
  animation: slideInLeft 2s ease-out 0.10s forwards;
}

.mascota {
  opacity: 0;
  animation: slideInLeft 2s ease-out 0.10s forwards;
}

/* Animación para títulos entrando desde la izquierda */
.slide-in-left {
  opacity: 0;
  animation: slideInLeft 2s ease-out 0.10s forwards;
}

/* Keyframes */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Si el usuario prefiere menos movimiento, desactiva animaciones */
@media (prefers-reduced-motion: reduce) {
  .logo-img,
  .logo-tagline,
  .mascota,
  .slide-in-left {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================
   SECCIÓN CONCEPTO
   ============================ */

.section-concepto {
  background-color: #ffffff;
}

.section-concepto .container {
  max-width: 780px;
}

.section-concepto p {
  margin-top: 0;
  margin-bottom: 0.9rem;
}

.section-highlight {
  padding: 1rem 1.1rem;
  background-color: rgba(240, 85, 38, 0.06);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-md);
  font-weight: 600;
}

/* Reveal suave en los párrafos de CONCEPTO */
.concepto-line {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.concepto-line.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Si el usuario prefiere menos movimiento, los dejamos visibles sin animar */
@media (prefers-reduced-motion: reduce) {
  .concepto-line {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================
   BOTÓN GENERAL
   ============================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background-color 0.12s ease;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-text-light);
  box-shadow: 0 8px 20px rgba(240, 85, 38, 0.5);
}

.btn-primary:hover {
  background-color: #d64820;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(240, 85, 38, 0.55);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(240, 85, 38, 0.45);
}

/* ============================
   SECCIÓN CARTA
   ============================ */

.section-carta {
  background-color: var(--color-bg-strong);
  color: var(--color-text-light);
  text-align: center;
}

.section-carta .btn-primary {
  background-color: #f1ede1;
  color: #f05526;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.section-carta .btn-primary:hover {
  background-color: #fff7e8;
}

.section-carta .section-label::before {
  background-color: rgba(241, 237, 225, 0.7);
}

.section-carta .section-label {
  color: rgba(241, 237, 225, 0.85);
}

.section-carta .section-title {
  font-size: 1.8rem;
}

.section-carta .section-lead {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.section-carta .btn-primary {
  margin-top: 0.5rem;
}

.section-note {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  opacity: 0.85;
}

/* Sección que "cae" en la pantalla */
.section-drop {
  opacity: 0;
  transform: translateY(-60px);
}

/* Cuando se activa, hace la animación de caída con rebote suave */
.section-drop.is-visible {
  animation: dropIn 4s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

/* Keyframes de caída */
@keyframes dropIn {
  0% {
    opacity: 0;
    transform: translateY(-60px);
  }
  70% {
    opacity: 1;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Si el usuario prefiere menos movimiento, la mostramos normal sin animación */
@media (prefers-reduced-motion: reduce) {
  .section-drop {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* ============================
   SECCIÓN UBICACIÓN
   ============================ */

.section-ubicacion {
  background-color: #ffffff;
}

.container-ubicacion {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.ubicacion-texto .direccion {
  margin: 0.5rem 0 0.8rem;
  font-weight: 600;
}

.link-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--color-accent);
}

.mapa-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background-color: #000;
}

.mapa-frame iframe {
  width: 100%;
  min-height: 260px;
  border: 0;
}

/* ============================
   SECCIÓN HORARIOS
   ============================ */

.section-horarios {
  background-color: var(--color-bg-main);
}

.horarios-grid {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.4rem;
  grid-template-columns: 1fr;   /* mobile: una columna */
}

.horarios-card {
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-md);
  background-color: #f6f4ef;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.horarios-card h3 {
  margin: 0.1rem 0 0.1rem;
  padding: 0;
  font-family: "Myriad Variable Concept", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.05rem;
}

.horarios-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.horarios-card li {
  display: flex;
  justify-content: flex-start;
  gap: 0;
  font-size: 0.95rem;
  padding: 0.25rem 0;
}

.horarios-card li span:last-child {
  font-weight: 600;
}

.horarios-datos p {
  margin: 0.25rem 0;
  font-size: 0.95rem;
}

/* 🖥️ En desktop: 2 columnas */
@media (min-width: 768px) {
  .horarios-grid {
    grid-template-columns: repeat(2, minmax(260px, 320px)); /* ancho de cada tarjeta */
    justify-content: center;                               /* centra el bloque */
    column-gap: 2rem;                                      /* espacio entre ellas */
  }
}


/* ============================
   SECCIÓN REDES
   ============================ */

.section-redes {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  text-align: center;
}

.container-redes {
  max-width: 780px;
  margin: 0 auto;
}

.section-redes .section-label {
  color: rgba(241, 237, 225, 0.9);
}

.section-redes .section-label::before {
  background-color: rgba(241, 237, 225, 0.8);
}

/* MOBILE FIRST: columna, botones tipo pastilla ancha */
.redes-icons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1.6rem;
  width: 100%;
}

.red-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 90%;
  max-width: 420px;
  padding: 0.9rem 1.2rem;
  gap: 0.5rem;
  border-radius: 999px;
  background-color: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(241, 237, 225, 0.25);
}

.icon-circle {
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-accent);
  background-color: transparent;
}

.icon-svg {
  width: 1.4rem;
  height: 1.4rem;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 1.6;
}

.red-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 0.92rem;
}

.red-label span:last-child {
  opacity: 0.9;
  font-size: 0.84rem;
}

/* ESCRITORIO: botones en fila */
@media (min-width: 768px) {
  .redes-icons {
    flex-direction: row;
    justify-content: center;
  }

  .red-icon {
    flex-direction: row;
    align-items: center;
    text-align: left;
    max-width: none;
  }

  .red-label {
    align-items: flex-start;
    text-align: left;
  }
}

/* ============================
   FOOTER + MASCOTA
   ============================ */

.site-footer {
  background-color: #111111;
  color: rgba(241, 237, 225, 0.9);
  padding: 1.6rem 1.5rem 1.9rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  text-align: left;
}

.footer-text p {
  margin: 0;
  font-size: 0.9rem;
}

.footer-small {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  opacity: 0.8;
}

.footer-mascota {
  flex-shrink: 0;
}

.mascota-img {
  width: 74px;
  height: auto;
}

/* ============================
   RESPONSIVE GENERAL
   ============================ */

@media (min-width: 640px) {
  .section {
    padding: 4rem 2rem;
  }

  .section-title {
    font-size: 1.9rem;
  }

  .section-carta .section-title {
    font-size: 2.2rem;
  }
}

@media (min-width: 768px) {
  .container-ubicacion {
    flex-direction: row;
    align-items: flex-start;
  }

  .ubicacion-texto,
  .ubicacion-mapa {
    flex: 1 1 0;
  }

  .ubicacion-mapa {
    max-width: 460px;
  }

  .mapa-frame iframe {
    min-height: 320px;
  }

  .horarios-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 320px)); /* 2 columnas fijas */
    justify-content: center;                               /* centra las columnas */
    column-gap: 2rem;                                      /* espacio entre tarjetas */
  }
}

  .redes-icons {
    flex-direction: row;
  }

  .red-icon {
    flex: 1 1 0;
  }
}

@media (max-width: 480px) {
  .section {
    padding-inline: 1.2rem;
  }

  .horarios-card li {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================
   MOBILE: CENTRAR PÁGINA, REDES, FOOTER Y TIPOGRAFÍA
   ============================ */

@media (max-width: 767px) {
  /* texto centrado */
  body {
    text-align: center;
    font-size: 0.95rem;
  }

  .section,
  .section-concepto .container,
  .section-ubicacion .container,
  .section-horarios .container,
  .section-redes .container {
    text-align: center;
  }

  /* Ubicación centrada */
  .container-ubicacion {
    align-items: center;
  }

  .ubicacion-texto {
    text-align: center;
  }

  /* Horarios: filas una debajo de otra */
  .horarios-card li {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .horarios-card li span:last-child {
    margin-top: 0.1rem;
  }

  /* Títulos y textos más chicos */
  .section-title {
    font-size: 1.6rem;
  }

  .section-carta .section-title {
    font-size: 1.3rem;
  }

  .section-lead {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .logo-tagline {
    font-size: 0.85rem;
  }

  .horarios-card li,
  .horarios-datos p {
    font-size: 0.9rem;
  }

  .red-label {
    font-size: 0.9rem;
  }

  .red-label span:last-child {
    font-size: 0.8rem;
  }

  .footer-text p {
    font-size: 0.85rem;
  }

  .footer-small {
    font-size: 0.75rem;
  }

  /* Footer centrado */
  .footer-inner {
    flex-direction: column;
    align-items:center;
    text-align: center;
  }

  .footer-mascota {
    align-self: center;
  }
}
