/* ==========================================================================
   AR ESTÉTICA PROFESIONAL - GOOGLE REVIEWS EMBED DESIGN SYSTEM
   Basado en design-system.html y los tokens de marca oficiales
   ========================================================================== */

/* 1. Fuentes Oficiales del Proyecto */
@import url('https://fonts.googleapis.com/css2?family=Montserrat+Alternates:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

@font-face {
  font-family: "Editor's Note";
  src: url("https://raw.githubusercontent.com/danielmonkda-lang/t1p0gr4f14/main/Editor'sNote-Regular.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* 2. Variables del Sistema de Diseño (Design Tokens) */
:root {
  /* Palette Oficial */
  --color-nude-bg: #f4f0e5;       /* Warm Nude/Cream Background */
  --color-nude-dark: #eae4d6;     /* Darker Nude Gradient Step */
  --color-card-bg: #faf8f5;       /* Luxury Off-white Surface */
  --color-white: #ffffff;
  
  --color-black: #1a1714;         /* High Contrast Solid Black / Deep Charcoal */
  --color-black-hover: #332d28;   /* Dark Charcoal Hover */
  --color-taupe: #c9b79f;         /* Warm Taupe Gold Accent */
  --color-muted: #7d7468;        /* Muted Taupe Text */
  --color-border: #dbd5c6;       /* Ultra-fine Beige Border */
  
  --star-gold: #c9b79f;           /* Oro Taupe de Marca */
  --google-blue: #4285f4;
  
  /* Typography */
  --font-title: "Editor's Note", serif;
  --font-body: 'Montserrat Alternates', sans-serif;
  
  /* Shadows & Radii */
  --shadow-sm: 0 2px 6px rgba(26, 23, 20, 0.04);
  --shadow-md: 0 16px 36px -8px rgba(26, 23, 20, 0.08);
  --shadow-btn: 0 4px 14px rgba(26, 23, 20, 0.15);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
  
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 3. Reseteo y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

html, body {
  background: transparent !important;
  color: var(--color-black);
  margin: 0;
  padding: 12px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: auto;
}

/* 4. Contenedor Principal Embed */
.google-embed-container {
  width: 100%;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 auto;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* ==========================================================================
   5. TARJETA DE CARRUSEL DE TESTIMONIOS (ARRIBA)
   ========================================================================== */
.google-carousel-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

/* Botones de Flechas Circulares */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-black);
  border: 2px solid var(--color-card-bg);
  color: var(--color-card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}

.nav-arrow:hover {
  background: var(--color-black-hover);
  transform: translateY(-50%) scale(1.06);
  border-color: var(--color-taupe);
}

.nav-prev {
  left: -18px;
}

.nav-next {
  right: -18px;
}

/* Tarjeta Principal de la Reseña */
.google-review-card {
  width: 100%;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  min-height: 270px;
  justify-content: center;
}

.google-review-card:hover {
  border-color: var(--color-taupe);
}

/* Fila de 5 Estrellas (Oro Taupe) */
.card-stars-row {
  display: flex;
  gap: 4px;
  color: var(--color-taupe);
  font-size: 1.35rem;
  line-height: 1;
  margin-bottom: 16px;
}

/* Texto del Testimonio */
.card-text {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--color-black);
  max-width: 640px;
  margin-bottom: 8px;
  transition: all var(--transition);
  font-weight: 400;
  quotes: none;
}

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

/* Botón Leer Más */
.btn-read-more {
  background: transparent;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  margin-bottom: 20px;
  transition: all var(--transition);
  display: inline-block;
  outline: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-read-more:hover {
  color: var(--color-black);
  text-decoration: underline;
}

/* Sección del Autor */
.card-author-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.author-avatar-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-black);
  color: var(--color-card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--color-card-bg);
  overflow: hidden;
}

.author-name-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.author-name {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-black);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.verified-badge {
  color: var(--color-taupe);
  display: inline-flex;
  align-items: center;
}

.author-subinfo {
  font-size: 0.78rem;
  color: var(--color-muted);
  font-weight: 500;
}

.google-link {
  color: var(--color-black);
  text-decoration: underline;
  font-weight: 600;
  transition: color var(--transition);
}

.google-link:hover {
  color: var(--color-taupe);
}

/* ==========================================================================
   6. PUNTOS DE PAGINACIÓN
   ========================================================================== */
.carousel-dots-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: -4px;
  margin-bottom: 4px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
}

.carousel-dot.active {
  background: var(--color-black);
  transform: scale(1.3);
}

.carousel-dot:hover {
  background: var(--color-black-hover);
}

/* ==========================================================================
   7. TARJETA RESUMEN GOOGLE & DEJANOS TU OPINION (ABAJO)
   ========================================================================== */
.google-header-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
}

.google-header-card:hover {
  border-color: var(--color-taupe);
}

.google-title-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.google-g-icon {
  flex-shrink: 0;
}

.google-title {
  font-family: var(--font-title);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-black);
  line-height: 1.2;
}

.google-score-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 18px;
}

.star-single {
  color: var(--color-taupe);
  font-size: 1.15rem;
  line-height: 1;
}

.score-text {
  font-size: 0.88rem;
  color: var(--color-muted);
}

.score-text strong {
  font-weight: 700;
  color: var(--color-black);
}

/* Botón Pastilla Primario (Estilo Oficial AR Estética) */
.btn-review-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-black);
  color: var(--color-card-bg);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 30px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-btn);
  transition: all var(--transition);
  cursor: pointer;
  border: 1px solid var(--color-black);
}

.btn-review-pill:hover {
  background: var(--color-black-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(26, 23, 20, 0.25);
}

/* ==========================================================================
   8. RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
  .google-review-card {
    padding: 32px 22px;
  }
  
  .nav-prev {
    left: -10px;
  }
  
  .nav-next {
    right: -10px;
  }
  
  .nav-arrow {
    width: 38px;
    height: 38px;
  }
  
  .google-title {
    font-size: 1.25rem;
  }
  
  .card-text {
    font-size: 0.92rem;
  }
}

@media (max-width: 480px) {
  .google-embed-container {
    gap: 14px;
  }
  
  .google-header-card {
    padding: 22px 16px;
  }
  
  .google-review-card {
    padding: 26px 16px;
  }
  
  .nav-prev {
    left: 2px;
  }
  
  .nav-next {
    right: 2px;
  }
  
  .btn-review-pill {
    width: 100%;
    font-size: 0.8rem;
    padding: 11px 18px;
  }
}
