/* ==========================================================================
   pages-home.css – SOLO estilos exclusivos de la página principal
   Última actualización: marzo 2026
   ========================================================================== */


/* =========================================================
   1. HEADER
   ========================================================= */


.logo-paw {
  font-size: 2.2rem;
  color: #f7630c;
}

.logo span {
  color: var(--text-dark);
}

/* Auth buttons */


/* Secondary navigation */
.nav-secondary {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0.8rem 0;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
}

.nav-secondary a {
  color: #333;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-secondary a:hover {
  color: var(--primary, #3ba676);
}

/* =========================================================
   1. HEADER movil
   ========================================================= */

@media (max-width: 768px) {
  .auth-links {
    display: none !important;
  }
}



/* =========================================================
   2. SIDEBAR
   ========================================================= */

.sidebar {
  position: fixed;
  top: 0;
  left: -25%;
  width: 25%;
  height: 100%;
  background-color: #fff;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
  transition: left 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
}

.sidebar.open {
  left: 0;
}

.sidebar-header {
  position: relative;
  padding: 1.5rem 1rem;
  background-color: #2c3e50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin: 0 auto;
}

.header-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.welcome-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.auth-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  max-width: 180px;
  margin: 0 auto;
}

.auth-btn {
  background-color: #fff;
  color: #2c3e50;
  border: none;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.auth-btn:hover {
  background-color: #e0e0e0;
}

.close-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 1.2rem;
  color: #fff;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: #e74c3c;
}

.sidebar-nav {
  padding: 1rem;
}

.sidebar-nav ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav ul li {
  display: block;
  width: 100%;
  margin-bottom: 0.75rem;
}

.sidebar-nav ul li a {
  display: block;
  width: 100%;
  padding: 0.15rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  color: #1b3b2f;
  font-weight: 200;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s;
}

.sidebar-nav ul li a:hover {
  background-color: #f6efea;
  color: #f7630c;
}

/* =========================================================
   Sidebar móvil
   ========================================================= */

@media (max-width: 768px) {

  .sidebar {
    width: 100%;
    left: -100%;
  }

  .sidebar.open {
    left: 0;
  }
  
  
  .close-btn {
  right: 2.5rem;
  }

}



/* =========================================================
   3. HERO MOVIL
   ========================================================= */
   
   

.modern-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
  color: var(--text-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.45) 100%),
    url('https://thumbs.dreamstime.com/b/heartwarming-silhouette-loyal-dog-welcomes-home-its-owner-leash-mouth-capturing-moment-captivating-captures-359588698.jpg')
    center/cover no-repeat;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.2rem 3.8rem;
  margin: 1rem 0rem;
  max-width: 800px;
  width: 100%;
  box-shadow: var(--shadow-soft);
  text-align: center;
  animation: fadeInUp 1.3s ease-out forwards;
}

.hero-title {
  font-size: clamp(1.2rem, 6vw, 5.5rem);
  line-height: 1.05;
  margin: 0 0 1.8rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.hero-subtitle {
  font-size: clamp(0.4rem, 4vw, 5.5rem);
  line-height: 1.7;
  margin: 0 0 2rem;
  font-weight: 500;
}

.hero-value-props {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 3.5rem;
  margin-bottom: 2.8rem;
}

.value-item {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.4rem, 4vw, 5.5rem);
  font-weight: 500;
}

.value-icon {
  font-size: 1.2rem;
  opacity: 0.9;
}

.cta-big {
  display: flex;
  flex-direction: column; /* móvil */
  align-items: center;
  text-align: center;
  font-size: clamp(0.8rem, 4vw, 1.5rem)!important;
  border-radius: 25px!important;
}

.cta-big.primary-gradient {
  background: linear-gradient(135deg,#3ba676,#2e8b57);
  color: white;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 12px 35px rgba(59,166,118,0.35);
  min-width: 255px;
}

.cta-big.primary-gradient:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 25px 60px rgba(59,166,118,0.5);
}

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


/* =========================================================
   3. HERO
   ========================================================= */
   
@media (min-width: 1024px) {
.modern-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
  color: var(--text-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.45) 100%),
    url('https://thumbs.dreamstime.com/b/heartwarming-silhouette-loyal-dog-welcomes-home-its-owner-leash-mouth-capturing-moment-captivating-captures-359588698.jpg')
    center/cover no-repeat;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.2rem 3.8rem;
  margin: 1rem 0rem;
  max-width: 800px;
  width: 100%;
  box-shadow: var(--shadow-soft);
  text-align: center;
  animation: fadeInUp 1.3s ease-out forwards;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.05;
  margin: 0 0 1.8rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.hero-subtitle {
  font-size: 1.3rem;
  line-height: 1.7;
  margin: 0 0 2rem;
  font-weight: 500;
}

.hero-value-props {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 3.5rem;
  margin-bottom: 2.8rem;
}

.value-item {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 500;
}

.value-icon {
  font-size: 2.2rem;
  opacity: 0.9;
}

  .cta-big {
    flex-direction: row; /* desktop */
  }

.cta-big.primary-gradient {
  background: linear-gradient(135deg,#3ba676,#2e8b57);
  color: white;
  font-weight: 700;
  font-size: 1.4rem;
  padding: 1.3rem 3rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  transition: var(--transition);
  box-shadow: 0 12px 35px rgba(59,166,118,0.35);
  min-width: 320px;
}

.cta-big.primary-gradient:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 25px 60px rgba(59,166,118,0.5);
}

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


/* =========================================================
   4. SECCIONES GENERALES
   ========================================================= */

.section {
  padding: 5rem 2rem;
  margin: 0 auto;
  max-width: 1400px;
}



/* =========================================================
   5. MAPA
   ========================================================= */

.map-container {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226,232,240,0.6);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.07);
  margin: 2rem auto 0;
  max-width: 1240px;
}

#map {
  height: 520px;
}



/* =========================================================
   6. CARRUSEL MASCOTAS
   ========================================================= */

.carousel-section {
  padding: 2rem;
  background: linear-gradient(to bottom,#f8fafc,#ffffff);
}

.carousel-viewport {
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
  padding: 0 1rem;
}

#petsCarousel {
  padding: 1rem 0 3rem;
}

.pet-card-carousel {
  height: 480px;
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  transition: all .35s cubic-bezier(.16,1,.3,1);
  max-width: 340px;
  margin: 0 auto;
}

.pet-card-carousel:hover {
  transform: translateY(-14px) scale(1.02);
  box-shadow: 0 28px 60px rgba(59,166,118,0.22);
}

.pet-image {
  height: 240px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.pet-image img {
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .6s ease;
}

.pet-card-carousel:hover .pet-image img {
  transform:scale(1.12);
}

.pet-overlay {
  position:absolute;
  inset:0;
  background:linear-gradient(to top,rgba(0,0,0,.6),transparent 60%);
  opacity:0;
  transition:opacity .4s;
  display:flex;
  align-items:flex-end;
  padding:1.2rem;
}

.pet-card-carousel:hover .pet-overlay {
  opacity:1;
}

.pet-status {
  background:rgba(255,107,53,.9);
  color:white;
  padding:.4rem 1rem;
  border-radius:50px;
  font-size:.85rem;
  font-weight:600;
}

.pet-info {
  padding:1.4rem 1.6rem;
  flex:1;
  display:flex;
  flex-direction:column;
  text-align:center;
}

.pet-info h3 {
  font-size:1.4rem;
  margin:0 0 .6rem;
}

.pet-location-carousel {
  font-size:0.8rem;
  color:var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pet-desc-carousel {
  flex:1;
  font-size:.95rem;
  line-height:1.5;
  color:#4b5563;
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  margin:0 0 1.4rem;
}

.btn-view {
  margin-top:auto!important;
  padding:0.5rem 1.4rem;
  font-size:1rem;
  border-radius:50px;
  background: linear-gradient(135deg,#3ba676,#2e8b57);
  transition: var(--transition);
  box-shadow: 0 12px 35px rgba(59,166,118,0.35);
  color:white;
  text-decoration:none;
  font-weight:600;
  transition:.3s;
  width:100%;
  box-sizing:border-box;
  text-align:center;
  flex-shrink:0;
}

.btn-view:hover {
  background:var(--primary-dark);
  transform:translateY(-2px);
}



/* =========================================================
   7. SWIPER - Sobrescritura fuerte para botones
   ========================================================= */

/* Botones de navegación - Sobrescritura completa */
#petsCarousel .swiper-button-next,
#petsCarousel .swiper-button-prev {
  position: absolute !important;
  top: 42% !important;
  width: 40px !important;
  height: 40px !important;
  margin-top: 0 !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px) !important;
  border: 2px solid rgba(230, 81, 0, 0.25) !important;
  border-radius: 50% !important;
  color: #e65100 !important;
  box-shadow: 0 8px 25px rgba(230, 81, 0, 0.15) !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  z-index: 20 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  --swiper-navigation-size: 20px !important;
}

/* Hover */
#petsCarousel .swiper-button-next:hover,
#petsCarousel .swiper-button-prev:hover {
  background: #ffffff !important;
  border-color: #e65100 !important;
  color: #e65100 !important;
  transform: scale(1.18) translateY(-3px) !important;
  box-shadow: 0 14px 32px rgba(230, 81, 0, 0.25) !important;
}

/* Flechas internas */
#petsCarousel .swiper-button-next::after,
#petsCarousel .swiper-button-prev::after {
  font-size: 28px !important;
  font-weight: 700 !important;
}

/* Paginación */
#petsCarousel .swiper-pagination {
  bottom: 22px !important;
}

#petsCarousel .swiper-pagination-bullet {
  background:var(--primary) !important;
  opacity: 0.3 !important;
  width: 9px !important;
  height: 9px !important;
  transition: all 0.3s ease !important;
}

#petsCarousel .swiper-pagination-bullet-active {
  background: #e65100 !important;
  opacity: 1 !important;
  transform: scale(1.5) !important;
  width: 11px !important;
  height: 11px !important;
}

/* Ajustes generales del contenedor */
#petsCarousel {
  padding: 1.5rem 0 4.5rem !important;
}

#petsCarousel .swiper-wrapper {
  align-items: stretch !important;
}

#petsCarousel .swiper-slide {
  height: auto !important;
  display: flex !important;
}

/* Móvil */
@media (max-width: 768px) {
  #petsCarousel .swiper-button-next,
  #petsCarousel .swiper-button-prev {
    width: 50px !important;
    height: 50px !important;
    top: 38% !important;
    --swiper-navigation-size: 20px !important;
  }
  
  #petsCarousel .swiper-pagination {
    bottom: 16px !important;
  }
}


/* =========================================================
   8. FORMULARIO REPORTE
   ========================================================= */

.report-section {
  background:linear-gradient(to bottom,var(--bg-light),#ffffff);
  padding:6rem 2rem 8rem;
}

.center-title {
  text-align:center;
  font-size:clamp(2.2rem,5vw,3.2rem);
  margin-bottom:1rem;
  color:var(--text-dark);
  font-weight:700;
}

.center-subtitle {
  text-align:center;
  max-width:720px;
  margin:0 auto 3.5rem;
  font-size:1.15rem;
  color:var(--text-muted);
  line-height:1.7;
}

.report-form {
  max-width:780px;
  width:100%;
  margin:0 auto!important;
  background:var(--glass-bg);
  backdrop-filter:blur(16px);
  border:1px solid var(--glass-border);
  border-radius:var(--radius-lg);
  padding:3.5rem 2.8rem!important;
  box-shadow:var(--shadow-soft);
  transition:all .35s ease;
  box-sizing:border-box;
}

.report-form:hover,
.report-form:focus-within {
  box-shadow:0 20px 60px rgba(59,166,118,.18);
  transform:translateY(-6px);
}

.form-grid {
  display:grid;
  grid-template-columns:1fr;
  gap:2.2rem;
  width:100%!important;
}



/* =========================================================
   9. INPUT FILE
   ========================================================= */

.file-group.full-width {
  width:100%;
  text-align:center;
  margin:0 auto;
}

.file-group input[type="file"] { display:none; }

.file-label {
  display:inline-block;
  padding:1rem 2rem;
  background:#f0f0f0;
  border:1px solid #ccc;
  border-radius:8px;
  color:#333;
  font-size:1rem;
  font-weight:500;
  cursor:pointer;
  text-align:center;
  margin:0 auto 1rem auto;
  min-width:220px;
}

.file-label:hover {
  background:#e0e0e0;
}

.file-preview {
  margin-top:1rem;
  display:flex;
  flex-wrap:wrap;
  gap:1rem;
  justify-content:center;
}

textarea {
  min-height:130px;
  resize:vertical;
}



/* =========================================================
   10. ESTADÍSTICAS
   ========================================================= */

.stats-section {
  padding:2rem 2rem;
  background:linear-gradient(to bottom,#ffffff,var(--bg-light));
  text-align:center;
}

.stats-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:2.5rem;
  max-width:1200px;
  margin:3rem auto 0;
}

.stat-card {
  background:white;
  border-radius:20px;
  padding:2.5rem 1.8rem;
  box-shadow:0 10px 30px rgba(0,0,0,.06);
  transition:all .35s cubic-bezier(.16,1,.3,1);
}

.stat-card:hover {
  transform:translateY(-12px);
  box-shadow:0 25px 60px rgba(59,166,118,.18);
}

.stat-icon {
  font-size:4.5rem;
  margin-bottom:1.2rem;
  color:var(--primary);
  opacity:.9;
}

.stat-number {
  font-size:clamp(3rem,8vw,5rem);
  font-weight:800;
  margin:0 0 .8rem;
}

.stat-text {
  font-size:1.15rem;
  color:var(--text-muted);
}



/* =========================================================
   11. BLOG
   ========================================================= */

.blog-articles {
  padding:6rem 2rem;
  background:linear-gradient(to bottom,var(--bg-light),#ffffff);
}

.recent-articles-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(340px,1fr));
  gap:2.2rem;
  max-width:1280px;
  margin:0 auto;
}

.article-card {
  background:var(--glass-bg);
  backdrop-filter:blur(12px) saturate(140%);
  border:1px solid var(--glass-border);
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:var(--shadow-soft);
  transition:var(--transition);
  height:100%;
  display:flex;
  flex-direction:column;
}

.article-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-card:hover {
  transform:translateY(-12px);
  box-shadow:0 30px 70px rgba(59,166,118,.22);
}

.article-image {
  height:220px;
  overflow:hidden;
  position:relative;
  flex-shrink:0;
}

.article-image img {
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .55s cubic-bezier(.16,1,.3,1);
}

.article-content {
  padding:1.8rem 1.6rem 2rem;
  display:flex;
  flex-direction:column;
  flex:1;
  gap:1rem;
}

.article-text { flex:1; }

.article-text h3 {
  font-size:1.45rem;
  line-height:1.3;
  margin:0 0 .8rem;
}

.article-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;

  overflow: hidden;
}

.read-story-btn {
  margin-top:auto;
  padding:.9rem 1.4rem;
  font-size:.95rem;
  font-weight:600;
  color:var(--primary);
  background:rgba(59,166,118,.08);
  border:1px solid rgba(59,166,118,.2);
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.6rem;
}



/* =========================================================
   12. RESPONSIVE
   ========================================================= */

@media (max-width:768px){

  .modern-hero {
    min-height:75vh;
    padding:6rem 1.5rem 4rem;
  }
  



  .hero-value-props {
    gap:1.8rem;
    flex-direction:column;
  }

  #petsCarousel { overflow-x:auto; }

  .recent-articles-grid { gap:1.8rem; }

  .article-image { height:200px; }

}
