@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Merriweather:ital,wght@0,300;0,400;0,700;1,300&display=swap');

body {
    font-family: 'Inter', sans-serif;
}

.font-serif {
    font-family: 'Merriweather', serif;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hover-lift {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gradient-overlay {
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
}

.category-badge {
    background-color: #f97316;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Search Animation */
.search-container {
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.search-container.active {
    width: 200px;
    opacity: 1;
    margin-right: 10px;
}

@media (max-width: 768px) {
    .search-container.active {
        width: 150px;
    }
}

/* Social Reels Block */
.social-reels-block {
  padding: 2rem;
  border-radius: 1rem;
  color: white;
  margin: 2rem 0;
}

.social-reels-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-reels-title {
  font-size: 1.75rem;
  font-weight: 700;
  font-family: serif;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-reels-title i {
  color: #e1306c;
}

.social-reels-subtitle {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.social-reels-follow-btn {
  background: transparent;
  border: 1px solid #e1306c;
  color: #e1306c;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.social-reels-follow-btn:hover {
  background: #e1306c;
  color: white;
}

/* Desktop: horizontal grid */
.social-reels-container {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 220px;
  gap: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.social-reels-container::-webkit-scrollbar {
  display: none;
}

/* Mobile: slider with scroll-snap */
@media (max-width: 768px) {
  .social-reels-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    grid-auto-flow: unset;
    grid-auto-columns: unset;
  }

  .reel-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }
}

.reel-card {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: transform 0.2s;
}

.reel-card:hover {
  transform: translateY(-4px);
}

.reel-card-link {
  display: block;
  color: white;
  text-decoration: none;
}

.reel-card-image {
  position: relative;
  aspect-ratio: 9 / 16;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.reel-card-image-placeholder {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.3);
}

.reel-card-platform {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.reel-card-platform--instagram { color: #e1306c; }
.reel-card-platform--youtube { color: #ff0000; }
.reel-card-platform--facebook { color: #1877f2; }
.reel-card-platform--tiktok { color: #ff0050; }

.reel-card-views {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.reel-card-views i {
  font-size: 0.6rem;
  color: #e1306c;
}

.reel-card-content {
  padding: 0.75rem;
}

.reel-card-title {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.5rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reel-card-description {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Dot navigation (mobile only) */
.social-reels-dots {
  display: none;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .social-reels-dots {
    display: flex;
  }
}

.social-reels-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: background 0.2s;
  cursor: pointer;
}

.social-reels-dot.active {
  background: white;
}

/* Articulo internal page styles (sdd/articulo-internal PR 1) */

/* Article typography */
.article-content p { margin-bottom: 1.5rem; line-height: 1.8; color: #374151; }
.article-content h2 { font-size: 1.75rem; font-weight: 700; margin-top: 2.5rem; margin-bottom: 1.25rem; color: #0f172a; font-family: 'Merriweather', serif; }

/* Drop-cap (REQ-DROPCAP-1) */
.drop-cap::first-letter { float: left; font-size: 4.5rem; line-height: 0.8; font-weight: 900; margin-right: 0.75rem; margin-top: 0.2rem; color: #f97316; font-family: 'Merriweather', serif; }

/* Pull-quote placeholder */
.pull-quote { border-left: 6px solid #f97316; padding: 1.5rem 2rem; font-style: italic; font-size: 1.5rem; color: #334155; margin: 3rem 0; background-color: #f8fafc; border-radius: 0 1rem 1rem 0; font-family: 'Merriweather', serif; }

/* Share buttons */
.share-btn { transition: all 0.2s ease-in-out; }
.share-btn:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

/* Custom scrollbar */
.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 2px; }

/* Drupal Login Form Styling */
#user-login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#user-login-form .form-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#user-login-form label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b; /* text-slate-800 */
}

#user-login-form input[type="text"],
#user-login-form input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1; /* border-slate-300 */
    border-radius: 0.5rem; /* rounded-lg */
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s ease-in-out;
    background-color: #f8fafc; /* bg-slate-50 */
}

#user-login-form input[type="text"]:focus,
#user-login-form input[type="password"]:focus {
    border-color: #f97316; /* border-orange-500 */
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
    background-color: #ffffff;
}

#user-login-form .form-actions {
    margin-top: 0.5rem;
}

#user-login-form input[type="submit"].form-submit {
    width: 100%;
    background-color: #f97316; /* bg-orange-500 */
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    padding: 0.875rem 1.5rem;
    border-radius: 0.5rem; /* rounded-lg */
    border: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 6px -1px rgba(249, 115, 22, 0.2), 0 2px 4px -1px rgba(249, 115, 22, 0.1);
}

#user-login-form input[type="submit"].form-submit:hover {
    background-color: #ea580c; /* bg-orange-600 */
    box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.3), 0 4px 6px -4px rgba(249, 115, 22, 0.3);
    transform: translateY(-1px);
}

#user-login-form input[type="submit"].form-submit:active {
    transform: translateY(0);
}

/* Drupal validation / description messages styling */
#user-login-form .description {
    font-size: 0.75rem;
    color: #64748b; /* text-slate-500 */
    margin-top: 0.25rem;
}

/* Drupal message status / warning overrides (based on home identity) */
.messages {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.messages--error {
    background-color: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.messages--status {
    background-color: #f0fdf4;
    border-left: 4px solid #22c55e;
    color: #166534;
}

.messages--warning {
    background-color: #fffbeb;
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

