/* ==========================================================================
   Pet Shop - Estilos CSS Principales
   Diseño Minimalista, Profesional y Responsive
   ========================================================================== */

/* --- Custom Properties / Variables de Color y Diseño --- */
:root {
  --primary-color: #0e7490;      /* Teal / Ocean Emerald */
  --primary-dark: #155e75;
  --primary-light: #e0f2fe;
  --accent-color: #f59e0b;       /* Warm Amber Gold */
  --accent-hover: #d97706;
  --whatsapp-color: #25d366;     /* WhatsApp Green */
  --whatsapp-dark: #128c7e;
  --facebook-color: #1877f2;
  --instagram-color: #e1306c;
  
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-alt: #f1f5f9;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-full: 9999px;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(14, 116, 144, 0.15);
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  --container-width: 1100px;
}

/* --- Reset Básico --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
}

/* --- Layout Container --- */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

/* --- Tipografía y Encabezados --- */
h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  line-height: 1.25;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem auto;
}

.section-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--border-radius-full);
  margin-bottom: 0.75rem;
}

.section-badge.light {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* --- Botones --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--border-radius-full);
  transition: var(--transition-normal);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-lg {
  padding: 0.95rem 1.8rem;
  font-size: 1.05rem;
}

.btn-whatsapp {
  background-color: var(--whatsapp-color);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background-color: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.btn-secondary {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: #c7d2fe;
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-header {
  background-color: var(--whatsapp-color);
  color: #ffffff;
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
}

.btn-header:hover {
  background-color: #20bd5a;
}

.btn-outline-white {
  background: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
  margin-top: 1rem;
}

.btn-outline-white:hover {
  background: #ffffff;
  color: var(--primary-color);
  transform: translateY(-2px);
}

.btn-icon {
  width: 22px;
  height: 22px;
}

.icon-sm {
  width: 18px;
  height: 18px;
}

/* --- Header Fijo / Glassmorphism --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition-normal);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-logo {
  height: 42px;
  width: auto;
  border-radius: var(--border-radius-full);
}

.brand-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--primary-color);
  letter-spacing: -0.02em;
}

/* --- Hero Section --- */
.hero-section {
  padding-top: 110px;
  padding-bottom: 4rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f8fafc 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-container {
  display: flex;
  justify-content: center;
}

.profile-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 780px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--whatsapp-color));
}

.logo-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.hero-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: var(--border-radius-full);
  border: 4px solid var(--bg-card);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  background-color: #ffffff;
  padding: 4px;
}

.status-badge {
  position: absolute;
  bottom: 5px;
  right: -10px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: #059669;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: var(--shadow-sm);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.business-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
  letter-spacing: -0.03em;
}

.owner-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.owner-subtitle strong {
  color: var(--text-main);
}

.tagline {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--primary-dark);
  margin-bottom: 2rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

/* Ficha de datos rápidos */
.quick-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid #e2e8f0;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--bg-alt);
  padding: 0.85rem 1rem;
  border-radius: var(--border-radius-md);
  text-align: left;
}

.info-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.info-text strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 700;
}

.info-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Sección de Servicios --- */
.services-section {
  padding: 5rem 0;
  background-color: var(--bg-main);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.75rem;
}

.service-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.service-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

.service-icon-box.food { background-color: #fef3c7; color: #d97706; }
.service-icon-box.hygiene { background-color: #e0f2fe; color: #0284c7; }
.service-icon-box.grooming { background-color: #fce7f3; color: #db2777; }
.service-icon-box.delivery { background-color: #dcfce7; color: #16a34a; }

.service-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.service-list {
  margin-bottom: 1.25rem;
  margin-top: auto;
}

.service-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.service-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.service-note {
  font-size: 0.85rem;
  background-color: var(--bg-alt);
  padding: 0.75rem;
  border-radius: var(--border-radius-sm);
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Tarjeta Destacada de Domicilio */
.service-card.highlight-card {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #ffffff;
  border: none;
}

.service-card.highlight-card h3,
.service-card.highlight-card .service-desc,
.service-card.highlight-card .delivery-promo {
  color: #ffffff;
}

.service-card.highlight-card .service-icon-box {
  background-color: rgba(255, 255, 255, 0.2);
}

.delivery-promo {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 1rem;
}

/* --- Sección de Galería / Multimedia --- */
.gallery-section {
  padding: 5rem 0;
  background-color: #ffffff;
}

.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.tab-btn {
  background-color: var(--bg-alt);
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: var(--border-radius-full);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.tab-btn.active, .tab-btn:hover {
  background-color: var(--primary-color);
  color: #ffffff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background-color: var(--bg-alt);
  transition: var(--transition-normal);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.media-wrapper {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
}

.media-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.media-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0;
  transition: var(--transition-normal);
}

.media-wrapper:hover .media-overlay {
  opacity: 1;
}

.overlay-icon {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.overlay-text {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Videos - Dimensión 9:6 */
.video-card {
  aspect-ratio: 9 / 6;
  background-color: #000;
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.video-card video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 0.35rem 0.75rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  pointer-events: none;
}

/* --- Sección de Contacto --- */
.contact-section {
  padding: 5rem 0;
  background-color: var(--bg-main);
}

.contact-card {
  background: linear-gradient(135deg, var(--text-main) 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--border-radius-lg);
  padding: 3.5rem 2.5rem;
  box-shadow: var(--shadow-lg);
}

.contact-card .section-header h2 {
  color: #ffffff;
}

.contact-card .section-header p {
  color: #94a3b8;
}

.social-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.social-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.2rem;
  border-radius: var(--border-radius-md);
  transition: var(--transition-normal);
}

.social-box:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.25);
}

.social-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: var(--border-radius-sm);
}

.social-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.social-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
}

.social-detail {
  font-size: 0.85rem;
  color: #cbd5e1;
}

.social-arrow {
  font-size: 1.2rem;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.social-box:hover .social-arrow {
  transform: translateX(4px);
  color: #ffffff;
}

.hours-banner {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  text-align: center;
}

.clock-icon {
  font-size: 1.8rem;
}

.hours-banner strong {
  display: block;
  font-size: 0.95rem;
  color: #f59e0b;
}

.hours-banner p {
  font-size: 0.9rem;
  color: #e2e8f0;
}

/* --- Footer --- */
.site-footer {
  background-color: #090d16;
  color: #64748b;
  padding: 2.5rem 0;
  border-top: 1px solid #1e293b;
  text-align: center;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  height: 36px;
  width: auto;
  border-radius: 50%;
}

.footer-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: #f8fafc;
  font-size: 1.1rem;
}

.footer-copy {
  font-size: 0.85rem;
  max-width: 500px;
}

/* --- Botón Flotante WhatsApp --- */
.floating-whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  background-color: var(--whatsapp-color);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition-normal);
}

.floating-whatsapp img {
  width: 36px;
  height: 36px;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.floating-tooltip {
  position: absolute;
  right: 70px;
  background: var(--text-main);
  color: #ffffff;
  padding: 0.4rem 0.8rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.floating-whatsapp:hover .floating-tooltip {
  opacity: 1;
}

/* --- Modal Lightbox --- */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.modal-content {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--border-radius-md);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--accent-color);
}

#modal-caption {
  position: absolute;
  bottom: 25px;
  color: #ffffff;
  font-size: 1rem;
  text-align: center;
}

/* --- Adaptaciones Responsive (Media Queries) --- */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 90px;
    padding-bottom: 2.5rem;
  }

  .profile-card {
    padding: 2rem 1.25rem;
  }

  .business-title {
    font-size: 2.1rem;
  }

  .tagline {
    font-size: 1.05rem;
  }

  .hero-cta-buttons {
    flex-direction: column;
  }

  .btn-lg {
    width: 100%;
  }

  .quick-info-grid {
    grid-template-columns: 1fr;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .services-grid, .gallery-grid, .social-links-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 2rem 1.25rem;
  }

  .floating-tooltip {
    display: none;
  }
}
