/* ==========================================================================
   CIRCOOL — Landing Page
   Paleta y tipografía tomadas del Manual de marca oficial (Azul #1009E8,
   Negro #1C1C1C, Naranja #EC6C36, Naranja claro #F6C980, Celeste #78ACD8)
   y tipografía Albert Sans (Google Font).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Albert+Sans:wght@300;400;500;600;700;900&display=swap');

:root {
  /* Colores base — grafito oscuro (fondo), Negro de marca en textos/acentos */
  --bg: #1c1c1e;
  --bg-elevated: #232326;
  --bg-card: #29292c;
  --border: #38383c;

  --text-primary: #ffffff;
  --text-secondary: #a3a3a8;
  --text-muted: #6f6f75;

  /* Colores principales de marca */
  --brand-azul: #1009e8;
  --brand-negro: #1c1c1c;

  /* Colores secundarios de marca */
  --brand-naranja: #ec6c36;
  --brand-naranja-claro: #f6c980;
  --brand-celeste: #78acd8;

  /* Degradado de marca (uso puntual): naranja -> naranja claro -> celeste -> azul */
  --gradient-text: linear-gradient(90deg, var(--brand-naranja), var(--brand-naranja-claro), var(--brand-celeste), var(--brand-azul));
  --gradient-ring: conic-gradient(from 200deg, var(--brand-naranja), var(--brand-naranja-claro), var(--brand-celeste), var(--brand-azul), var(--brand-naranja));

  --accent-btn: var(--brand-azul);
  --accent-btn-border: var(--brand-azul);
  --accent-btn-hover: #2c1ff2;
  --accent-orange-card: var(--brand-naranja);
  --accent-blue-card: var(--brand-celeste);

  /* Tipografía */
  --font-base: 'Albert Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --max-width: 1320px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-base);
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-label {
  color: var(--brand-naranja);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--border);
  color: var(--text-primary);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--text-secondary);
}

.btn-primary {
  background: var(--accent-btn);
  border-color: var(--accent-btn-border);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-btn-hover);
}

.btn-gradient {
  background: var(--accent-btn);
  border-color: var(--accent-btn-border);
  color: #fff;
}

.btn-gradient:hover {
  background: var(--accent-btn-hover);
}

.btn-secondary {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: var(--text-secondary);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.85rem;
}

/* ---------------------------------------------------------------------- */
/* HEADER                                                                  */
/* ---------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.logo img {
  height: 34px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.nav-links a {
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  opacity: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-actions .btn {
  padding: 10px 22px;
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
}

/* ---------------------------------------------------------------------- */
/* HERO                                                                    */
/* ---------------------------------------------------------------------- */

.hero {
  padding: 90px 0 60px;
  position: relative;
}

.hero-heading {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.15;
  max-width: 900px;
  margin-bottom: 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.hero-copy p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 20px;
  text-align: justify;
}

.hero-copy .leer-mas {
  color: var(--text-primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-icon-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid #262626;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 28px 0 36px;
}

.hero-icon-ring img {
  width: 34px;
  height: 34px;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-stat .stat-number {
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--text-primary);
}

.hero-stat .stat-label {
  color: var(--text-secondary);
  font-size: 1rem;
}

.hero-stat .stat-sublabel {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.hero-media {
  position: relative;
}

.hero-media .media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #cfe0ef, #7c93b8 60%, #4e5e82);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-media .media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media .media-frame .img-placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
}

.floating-card {
  position: absolute;
  border-radius: var(--radius-md);
  padding: 18px 26px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.floating-card .fc-number {
  font-size: 2.6rem;
  font-weight: 600;
  color: #fff;
  line-height: 1;
}

.floating-card .fc-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 6px;
}

.floating-card.fc-orange {
  background: var(--accent-orange-card);
  top: -32px;
  right: -20px;
}

.floating-card.fc-blue {
  background: var(--accent-blue-card);
  bottom: -32px;
  left: -30px;
}

/* ---------------------------------------------------------------------- */
/* GENERIC SECTION LAYOUTS                                                 */
/* ---------------------------------------------------------------------- */

.section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.section-header {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-header.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Descarga la app */
.app-download {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.store-badges {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.store-badge {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-mock {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 44px;
  max-width: 280px;
  margin: 0 auto;
  padding: 12px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

/* Volume buttons (left) and power button (right) on the bezel */
.phone-mock::before,
.phone-mock::after {
  content: "";
  position: absolute;
  width: 4px;
  background: var(--border);
}

.phone-mock::before {
  left: -4px;
  top: 110px;
  height: 40px;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 54px 0 var(--border);
}

.phone-mock::after {
  right: -4px;
  top: 150px;
  height: 64px;
  border-radius: 0 2px 2px 0;
}

.phone-mock img {
  display: block;
  width: 100%;
  border-radius: 32px;
}

/* Comunidad */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
}

.feature-card .fc-icon {
  height: 48px;
  width: auto;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Marcas */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.brand-logo-slot {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.blog-card .blog-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #23232a, #17171b);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.blog-card .blog-body {
  padding: 24px;
}

.blog-card .blog-tag {
  color: var(--brand-naranja);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blog-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 10px 0;
}

.blog-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Eventos */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event-row {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
}

.event-date {
  min-width: 90px;
  text-align: center;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
}

.event-date .day {
  font-size: 1.6rem;
  font-weight: 700;
  display: block;
}

.event-date .month {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.event-info h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.event-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.event-row .btn {
  margin-left: auto;
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* Contacto */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-item .label {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.contact-info-item .value {
  font-size: 1.1rem;
  font-weight: 500;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form input,
.contact-form textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--text-primary);
  font-family: var(--font-base);
  font-size: 0.95rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form button {
  align-self: flex-start;
  margin-top: 8px;
}

/* ---------------------------------------------------------------------- */
/* FOOTER                                                                  */
/* ---------------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-logo img {
  height: 30px;
  margin-bottom: 16px;
}

.footer-logo p {
  color: var(--text-muted);
  font-size: 0.85rem;
  max-width: 260px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
}

.social-links svg {
  width: 20px;
  height: 20px;
}

/* ---------------------------------------------------------------------- */
/* RESPONSIVE                                                              */
/* ---------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .hero-grid,
  .app-download,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .brands-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-media {
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }

  .nav-links,
  .header-actions .btn-outline {
    display: none;
  }

  .nav-links.nav-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }

  .nav-toggle {
    display: flex;
  }

  .header .container {
    height: 72px;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero-heading {
    margin-bottom: 36px;
  }

  .section {
    padding: 64px 0;
  }

  .card-grid,
  .brands-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .event-row {
    flex-wrap: wrap;
  }

  .event-row .btn {
    margin-left: 0;
  }

  .floating-card {
    padding: 12px 18px;
  }

  .floating-card .fc-number {
    font-size: 1.8rem;
  }
}

/* ---------------------------------------------------------------------- */
/* AVISO DE COOKIES                                                        */
/* ---------------------------------------------------------------------- */

.cookie-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  max-width: 460px;
  margin: 0 auto;
  padding: 20px 44px 20px 20px;
  background: rgba(35, 35, 38, 0.92);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.cookie-consent.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-consent-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.cookie-consent-text a {
  color: var(--brand-celeste);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.cookie-consent-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  line-height: 1;
  padding: 4px;
  cursor: pointer;
}

.cookie-consent-close:hover {
  color: var(--text-primary);
}

@media (min-width: 768px) {
  .cookie-consent {
    left: 24px;
    right: auto;
    bottom: 24px;
    margin: 0;
  }
}

/* ---------------------------------------------------------------------- */
/* PÁGINAS LEGALES (Términos / Privacidad)                                 */
/* ---------------------------------------------------------------------- */

.legal-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 72px 24px 90px;
}

.legal-main h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  margin-bottom: 8px;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 42px;
}

.legal-main h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 36px 0 12px;
}

.legal-main h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 24px 0 10px;
}

.legal-main p,
.legal-main li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.legal-main ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 12px;
}

.legal-main a {
  color: var(--brand-celeste);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal-links a {
  color: var(--text-muted);
}

.footer-legal-links a:hover {
  color: var(--text-primary);
}
