/* AlvaradoGraphics - Diseño Profesional Mejorado */
:root {
  --ag-bg-primary: #0a0e27;
  --ag-bg-secondary: #0f1629;
  --ag-bg-card: #151b2e;
  --ag-accent-1: #6366f1;
  --ag-accent-2: #8b5cf6;
  --ag-accent-3: #ec4899;
  --ag-text-primary: #f8fafc;
  --ag-text-secondary: #94a3b8;
  --ag-text-muted: #64748b;
  --ag-border: #1e293b;
  --ag-shadow-sm: 0 2px 8px rgba(0,0,0,.3);
  --ag-shadow-md: 0 8px 24px rgba(0,0,0,.4);
  --ag-shadow-lg: 0 20px 50px rgba(0,0,0,.5);
  --ag-radius-sm: 12px;
  --ag-radius-md: 16px;
  --ag-radius-lg: 24px;
  --ag-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modo Claro */
[data-theme="light"] {
  --ag-bg-primary: #f8fafc;
  --ag-bg-secondary: #f1f5f9;
  --ag-bg-card: #ffffff;
  --ag-text-primary: #0f172a;
  --ag-text-secondary: #475569;
  --ag-text-muted: #64748b;
  --ag-border: #e2e8f0;
  --ag-shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --ag-shadow-md: 0 8px 24px rgba(0,0,0,.12);
  --ag-shadow-lg: 0 20px 50px rgba(0,0,0,.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--ag-bg-primary);
  color: var(--ag-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Botón de cambio de tema */
.ag-theme-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: var(--ag-bg-card);
  border: 2px solid var(--ag-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10000;
  box-shadow: var(--ag-shadow-lg);
  transition: var(--ag-transition);
  outline: none;
}

.ag-theme-toggle:hover {
  transform: scale(1.1) rotate(15deg);
  border-color: var(--ag-accent-1);
  box-shadow: 0 8px 32px rgba(99,102,241,.4);
}

.ag-theme-toggle svg {
  width: 24px;
  height: 24px;
  color: var(--ag-text-primary);
  stroke: var(--ag-text-primary);
  transition: var(--ag-transition);
}

.ag-theme-icon {
  display: none;
  position: absolute;
}

/* Por defecto (tema oscuro), mostrar el ícono del sol */
.ag-theme-icon-dark {
  display: block;
}

/* En tema claro, ocultar sol y mostrar luna */
[data-theme="light"] .ag-theme-icon-dark {
  display: none;
}

[data-theme="light"] .ag-theme-icon-light {
  display: block;
}

/* Hero Section Mejorado */
.ag-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,.15), transparent 70%),
              radial-gradient(ellipse at 80% 50%, rgba(236,72,153,.12), transparent 60%),
              var(--ag-bg-primary);
  overflow: hidden;
}

[data-theme="light"] .ag-hero {
  background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,.08), transparent 70%),
              radial-gradient(ellipse at 80% 50%, rgba(236,72,153,.06), transparent 60%),
              var(--ag-bg-primary);
}

.ag-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: 
    linear-gradient(135deg, transparent 0%, rgba(99,102,241,.03) 50%, transparent 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.01) 0px, transparent 2px, transparent 40px);
  pointer-events: none;
}

.ag-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.ag-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(99,102,241,.4);
  border-radius: 50%;
  animation: float-particle 20s linear infinite;
}

.ag-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

.ag-hero-logo {
  margin-bottom: 2rem;
  animation: fadeInScale 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ag-hero-logo img {
  max-width: 280px;
  height: auto;
  filter: drop-shadow(0 8px 32px rgba(99,102,241,.4));
}

#logoImage {
  transition: opacity 0.3s ease;
}

.ag-hero h1 {
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fadeInUp 1s 0.2s both;
}

[data-theme="light"] .ag-hero h1 {
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.ag-hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--ag-text-secondary);
  margin-bottom: 3rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s 0.4s both;
}

.ag-hero-nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s 0.6s both;
}

.ag-nav-link {
  padding: 1rem 2rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50px;
  color: var(--ag-text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: var(--ag-transition);
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .ag-nav-link {
  background: rgba(15,23,42,.08);
  border: 1px solid rgba(15,23,42,.15);
}

.ag-nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent);
  transition: left 0.6s;
}

.ag-nav-link:hover::before {
  left: 100%;
}

.ag-nav-link:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}

[data-theme="light"] .ag-nav-link:hover {
  background: rgba(99,102,241,.15);
  border-color: var(--ag-accent-1);
  box-shadow: 0 8px 24px rgba(99,102,241,.2);
}

.ag-nav-link.ag-btn-primary {
  background: linear-gradient(135deg, var(--ag-accent-1), var(--ag-accent-2));
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(99,102,241,.3);
}

.ag-nav-link.ag-btn-primary:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 32px rgba(99,102,241,.4);
}

.ag-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--ag-text-muted);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeIn 1s 1s both, bounce 2s 1s infinite;
}

.ag-scroll-hint::after {
  content: '';
  width: 24px;
  height: 24px;
  border: 2px solid currentColor;
  border-top: none;
  border-right: none;
  transform: rotate(-45deg);
}

/* Secciones */
.ag-section {
  padding: 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.ag-section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.ag-section-label {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: rgba(99,102,241,.1);
  border: 1px solid rgba(99,102,241,.3);
  border-radius: 50px;
  color: var(--ag-accent-1);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.ag-section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--ag-text-primary), var(--ag-text-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ag-section-description {
  font-size: 1.1rem;
  color: var(--ag-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Grid Mejorado */
.ag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.ag-grid-large {
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

/* Cards Mejoradas */
.ag-card {
  background: var(--ag-bg-card);
  border: 1px solid var(--ag-border);
  border-radius: var(--ag-radius-md);
  overflow: hidden;
  position: relative;
  transition: var(--ag-transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.ag-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,.1), rgba(236,72,153,.1));
  opacity: 0;
  transition: var(--ag-transition);
  pointer-events: none;
}

.ag-card:hover {
  transform: translateY(-8px);
  border-color: rgba(99,102,241,.3);
  box-shadow: var(--ag-shadow-lg);
}

.ag-card:hover::before {
  opacity: 1;
}

.ag-card-image {
  position: relative;
  width: 100%;
  padding-top: 60%;
  background: var(--ag-bg-secondary);
  overflow: hidden;
}

.ag-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--ag-transition);
}

.ag-card:hover .ag-card-image img {
  transform: scale(1.1);
}

.ag-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
  opacity: 0;
  transition: var(--ag-transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ag-card:hover .ag-card-overlay {
  opacity: 1;
}

.ag-card-overlay-icon {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  transform: scale(0.8);
  transition: var(--ag-transition);
}

.ag-card:hover .ag-card-overlay-icon {
  transform: scale(1);
}

.ag-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ag-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--ag-text-primary);
}

.ag-card-description {
  color: var(--ag-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
}

.ag-card-footer {
  display: flex;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ag-border);
  margin-top: auto;
}

.ag-card-tag {
  padding: 0.35rem 0.8rem;
  background: rgba(99,102,241,.1);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--ag-accent-1);
  font-weight: 600;
}

/* Clientes Badge */
.ag-client-badge {
  background: var(--ag-bg-card);
  border: 1px solid var(--ag-border);
  border-radius: var(--ag-radius-sm);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: var(--ag-transition);
  cursor: pointer;
}

.ag-client-badge:hover {
  transform: translateY(-4px);
  border-color: rgba(99,102,241,.3);
  box-shadow: var(--ag-shadow-md);
}

.ag-client-logo {
  width: 100px;
  height: 100px;
  background: var(--ag-bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.ag-client-logo img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.ag-client-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ag-text-primary);
  text-align: center;
}

/* Botón Load More */
.ag-load-more {
  display: block;
  margin: 0 auto;
  padding: 1rem 3rem;
  background: linear-gradient(135deg, var(--ag-accent-1), var(--ag-accent-2));
  border: none;
  border-radius: 50px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--ag-transition);
  box-shadow: 0 8px 24px rgba(99,102,241,.3);
}

.ag-load-more:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 32px rgba(99,102,241,.4);
}

.ag-load-more:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Footer */
.ag-footer {
  background: var(--ag-bg-secondary);
  border-top: 1px solid var(--ag-border);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--ag-text-muted);
  font-size: 0.9rem;
}

/* Modal */
.ag-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.3s;
}

.ag-modal.ag-active {
  display: flex;
}

.ag-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  animation: zoomIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ag-modal-image {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--ag-radius-md);
  box-shadow: var(--ag-shadow-lg);
}

.ag-modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--ag-transition);
}

.ag-modal-close:hover {
  background: rgba(255,255,255,.2);
  transform: rotate(90deg);
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) translateX(100px) rotate(360deg);
    opacity: 0;
  }
}

.ag-observe {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.ag-observe.ag-in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .ag-hero {
    min-height: 80vh;
    padding: 3rem 1.5rem;
  }
  
  .ag-hero-logo img {
    max-width: 200px;
  }
  
  .ag-section {
    padding: 4rem 1.5rem;
  }
  
  .ag-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .ag-grid-large {
    grid-template-columns: 1fr;
  }
  
  .ag-hero-nav {
    flex-direction: column;
  }
  
  .ag-nav-link {
    width: 100%;
    text-align: center;
  }
  
  .ag-theme-toggle {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
  }
}

/* WhatsApp Widget */
.ag-whatsapp-widget {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 9999;
}

.ag-whatsapp-btn {
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 211, 102, .4);
  transition: all 0.3s ease;
  border: none;
  position: relative;
}

.ag-whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, .6);
}

.ag-whatsapp-btn img {
  width: 32px;
  height: 32px;
}

.ag-whatsapp-btn::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25D366;
  animation: whatsapp-pulse 2s ease-out infinite;
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

.ag-whatsapp-menu {
  position: absolute;
  bottom: 75px;
  left: 0;
  background: var(--ag-bg-card);
  border: 2px solid var(--ag-border);
  border-radius: var(--ag-radius-md);
  padding: 1rem;
  min-width: 280px;
  box-shadow: var(--ag-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ag-whatsapp-menu.ag-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.ag-whatsapp-menu-header {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ag-text-primary);
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--ag-border);
}

.ag-whatsapp-menu-subtitle {
  font-size: 0.85rem;
  color: var(--ag-text-secondary);
  margin-bottom: 1rem;
}

.ag-whatsapp-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(37, 211, 102, .05);
  border: 1px solid rgba(37, 211, 102, .2);
  border-radius: var(--ag-radius-sm);
  cursor: pointer;
  transition: all 0.25s ease;
  margin-bottom: 0.5rem;
  text-decoration: none;
  color: var(--ag-text-primary);
}

.ag-whatsapp-option:last-child {
  margin-bottom: 0;
}

.ag-whatsapp-option:hover {
  background: rgba(37, 211, 102, .12);
  border-color: #25D366;
  transform: translateX(3px);
}

.ag-whatsapp-option-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.ag-whatsapp-option-text {
  font-size: 0.9rem;
  font-weight: 600;
}

.ag-whatsapp-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  color: var(--ag-text-secondary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}

.ag-whatsapp-close:hover {
  color: var(--ag-text-primary);
}

.ag-whatsapp-back {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  background: transparent;
  border: none;
  color: var(--ag-text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
  margin-bottom: 0.5rem;
}

.ag-whatsapp-back:hover {
  color: var(--ag-text-primary);
}

.ag-whatsapp-menu-projects {
  max-height: 400px;
  overflow-y: auto;
}

.ag-whatsapp-projects-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ag-whatsapp-project-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--ag-bg-secondary);
  border: 1px solid var(--ag-border);
  border-radius: var(--ag-radius-sm);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  color: var(--ag-text-primary);
}

.ag-whatsapp-project-item:hover {
  background: rgba(37, 211, 102, .08);
  border-color: #25D366;
  transform: translateX(3px);
}

.ag-whatsapp-project-thumb {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.ag-whatsapp-project-info {
  flex: 1;
  min-width: 0;
}

.ag-whatsapp-project-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ag-text-primary);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ag-whatsapp-project-desc {
  font-size: 0.8rem;
  color: var(--ag-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ag-whatsapp-loading {
  text-align: center;
  padding: 1rem;
  color: var(--ag-text-secondary);
  font-size: 0.9rem;
}

/* Sistema de Valoraciones */
.ag-reviews-section {
  padding: 4rem 2rem;
  background: var(--ag-bg-secondary);
  border-top: 1px solid var(--ag-border);
}

.ag-reviews-container {
  max-width: 1200px;
  margin: 0 auto;
}

.ag-reviews-header {
  text-align: center;
  margin-bottom: 3rem;
}

.ag-reviews-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--ag-text-primary);
}

.ag-reviews-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.ag-reviews-avg {
  font-size: 3rem;
  font-weight: 700;
  color: var(--ag-accent-1);
}

.ag-stars {
  display: inline-flex;
  gap: 0.25rem;
}

.ag-star {
  color: #cbd5e1;
  font-size: 1.5rem;
  transition: color 0.2s;
}

.ag-star.ag-filled {
  color: #fbbf24;
}

.ag-star.ag-half {
  position: relative;
  color: #cbd5e1;
}

.ag-star.ag-half::before {
  content: '★';
  position: absolute;
  left: 0;
  color: #fbbf24;
  width: 50%;
  overflow: hidden;
}

.ag-reviews-count {
  color: var(--ag-text-secondary);
  font-size: 0.95rem;
}

.ag-reviews-form {
  background: var(--ag-bg-card);
  border: 1px solid var(--ag-border);
  border-radius: var(--ag-radius-md);
  padding: 2rem;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.ag-reviews-form-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--ag-text-primary);
}

.ag-form-group {
  margin-bottom: 1.5rem;
}

.ag-form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--ag-text-primary);
}

.ag-form-input, .ag-form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--ag-bg-primary);
  border: 1px solid var(--ag-border);
  border-radius: var(--ag-radius-sm);
  color: var(--ag-text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--ag-transition);
}

.ag-form-input:focus, .ag-form-textarea:focus {
  outline: none;
  border-color: var(--ag-accent-1);
  box-shadow: 0 0 0 3px rgba(99,102,241,.1);
}

.ag-form-textarea {
  min-height: 120px;
  resize: vertical;
}

.ag-rating-input {
  display: flex;
  gap: 0.5rem;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.ag-rating-input input[type="radio"] {
  display: none;
}

.ag-rating-input label {
  cursor: pointer;
  font-size: 2rem;
  color: #cbd5e1;
  transition: color 0.2s;
}

.ag-rating-input label:hover,
.ag-rating-input label:hover ~ label,
.ag-rating-input input[type="radio"]:checked ~ label {
  color: #fbbf24;
}

.ag-form-submit {
  background: linear-gradient(135deg, var(--ag-accent-1), var(--ag-accent-2));
  color: white;
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--ag-transition);
  width: 100%;
}

.ag-form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99,102,241,.3);
}

.ag-form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.ag-reviews-list {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.ag-review-card {
  background: var(--ag-bg-card);
  border: 1px solid var(--ag-border);
  border-radius: var(--ag-radius-md);
  padding: 1.5rem;
  transition: var(--ag-transition);
}

.ag-review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ag-shadow-md);
}

.ag-review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.ag-review-author {
  font-weight: 700;
  color: var(--ag-text-primary);
  margin-bottom: 0.25rem;
}

.ag-review-date {
  font-size: 0.85rem;
  color: var(--ag-text-muted);
}

.ag-review-rating {
  display: flex;
  gap: 0.15rem;
}

.ag-review-rating .ag-star {
  font-size: 1rem;
}

.ag-review-comment {
  color: var(--ag-text-secondary);
  line-height: 1.6;
}

.ag-alert {
  padding: 1rem;
  border-radius: var(--ag-radius-sm);
  margin-bottom: 1rem;
}

.ag-alert-success {
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.3);
  color: #22c55e;
}

.ag-alert-error {
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.3);
  color: #ef4444;
}

.ag-views-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--ag-bg-card);
  border: 1px solid var(--ag-border);
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--ag-text-secondary);
}

.ag-views-counter-icon {
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .ag-whatsapp-widget {
    bottom: 1.5rem;
    left: 1.5rem;
  }
  
  .ag-whatsapp-btn {
    width: 56px;
    height: 56px;
  }
  
  .ag-whatsapp-btn img {
    width: 28px;
    height: 28px;
  }
  
  .ag-whatsapp-menu {
    min-width: 260px;
  }
  
  .ag-reviews-list {
    grid-template-columns: 1fr;
  }
  
  .ag-reviews-form {
    padding: 1.5rem;
  }
}
