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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: #fafafa;
    color: #111;
    min-height: 100vh;
}

/* --- TOP NAV --- */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #eee;
    width: 100%;
    padding: 22px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 26px;
    font-weight: 700;
    color: #111;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-link {
    margin-right: 25px;
    color: #444;
    font-size: 15px;
    text-decoration: none;
}

.btn-nav {
    padding: 8px 18px;
    background: #111;
    color: #fff;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
}

/* --- AUTH CARD (Login/Register) --- */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
}

.auth-card {
    background: #fff;
    padding: 45px;
    width: 100%;
    max-width: 420px;
    border-radius: 14px;
    box-shadow: 0 2px 18px rgba(0,0,0,0.08);
}

.auth-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 28px;
}

/* Inputs */
.input-group {
    margin-bottom: 18px;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: 0.18s ease;
    background: #fafafa;
}

.input-group input:focus {
    border-color: #111;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
    outline: none;
}

.btn-main {
    display: block;        /* cada botón en su propia línea */
    width: 100%;           /* que ocupen todo el ancho del formulario */
    padding: 12px 0;       /* más alto que ancho, uniforme */
    margin-top: 10px;      /* separación entre botones */
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    text-decoration: none; /* para <a> igual que botón */
    color: #fff;
    background-color: #111; /* color base para todos los botones */
}

.btn-main:hover {
    opacity: 0.9;
}

a.btn-main {
    display: block;         /* asegurar que los <a> se comporten igual que los botones */
}

/* Secondary button (landing hero) */
.secondary-btn {
    text-decoration: none;
    padding: 12px 20px;
    color: #111;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-weight: 500;
}

.secondary-btn:hover {
    background: #eee;
}

/* Auth footer */
.auth-switch {
    text-align: center;
    margin-top: 18px;
    font-size: 14px;
}

.auth-switch a {
    color: #111;
    font-weight: 600;
}

/* --- LANDING PAGE --- */
.hero {
    text-align: center;
    max-width: 850px;
    margin: 120px auto 0;
    padding: 0 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1px;
}

.hero-sub {
    margin-top: 20px;
    font-size: 20px;
    color: #555;
}

.hero-actions {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 18px;
}


/* --- STATS --- */
.stats-section {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 80px;
    padding: 0 20px;
}

.stat-card {
    background: #fff;
    padding: 30px 40px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 2px 14px rgba(0,0,0,0.07);
}

.stat-card h2 {
    font-size: 36px;
    font-weight: 700;
    color: #111;
}

.stat-card p {
    margin-top: 10px;
    color: #666;
    font-size: 15px;
}

/* -------------------------------------- */
/* HOW EXTENSIONS WORK SECTION */
/* -------------------------------------- */

.how-extensions {
    margin: 100px auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
}

.how-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 900px;
    width: 100%;
}

.how-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.how-text {
    font-size: 16px;
    color: #555;
    max-width: 600px;
}

.how-arrow {
    font-size: 40px;
    text-decoration: none;
    color: #111;
    font-weight: 300;
    transition: 0.2s ease;
    padding-left: 20px;
}

.how-arrow:hover {
    transform: translateX(8px);
}

/* -------------------------------------- */
/* BLACK EXTENSIONS CAROUSEL */
/* -------------------------------------- */

.extensions-black-section {
    margin: 80px 0;
    text-align: center;
}

.extensions-black-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
}

.extensions-black-carousel {
    display: flex;
    overflow-x: auto;
    gap: 25px;
    padding: 20px 40px;
    scroll-snap-type: x mandatory;
    justify-content: center;
}

.extensions-black-carousel::-webkit-scrollbar {
    display: none;
}

.ext-black-card {
    min-width: 220px;
    background: #111;
    color: #fff;
    padding: 25px;
    border-radius: 14px;
    text-align: left;
    text-decoration: none;
    scroll-snap-align: start;
    transition: 0.25s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}

.ext-black-card:hover {
    transform: translateY(-5px);
    background: #000;
}

.ext-black-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ext-black-card p {
    color: #ccc;
    font-size: 15px;
}

/* -------------------------------------- */
/* PAGE HEADER */
/* -------------------------------------- */
.page-header {
    margin-top: 120px;
    text-align: center;
}
.page-header h1 {
    font-size: 38px;
    font-weight: 700;
}
.page-header p {
    margin-top: 10px;
    color: #555;
    font-size: 17px;
}

/* -------------------------------------- */
/* SECTIONS */
/* -------------------------------------- */
.section-box {
    max-width: 900px;
    margin: 70px auto;
    padding: 0 20px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-text {
    font-size: 16px;
    color: #666;
    max-width: 700px;
    line-height: 1.5;
}

.install-list {
    margin-top: 10px;
    padding-left: 20px;
}

/* -------------------------------------- */
/* EXTENSIONS LIST */
/* -------------------------------------- */
.extensions-list {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    transition: 0.3s;
}

.extension-card {
    background: #111;
    color: #fff;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 4px 22px rgba(0,0,0,0.3);
    transition: 0.25s ease;
    opacity: 1;
}

.extension-card h3 {
    font-size: 19px;
    margin-bottom: 8px;
    font-weight: 600;
}

.extension-card p {
    color: #bbbbbb;
    font-size: 14px;
}

.extension-card:hover {
    transform: translateY(-5px);
}

/* -------------------------------------- */
/* LOCKED STATE */
/* -------------------------------------- */
.locked {
    filter: blur(6px);
    pointer-events: none;
    opacity: 0.6;
}

.locked-message {
    text-align: center;
    margin-top: -20px;
    color: #333;
    font-weight: 600;
    font-size: 16px;
}

.locked-message a {
    color: #4f46e5;
}

.extensions-detailed-section {
    margin: 80px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.extensions-section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

.category-title {
    font-size: 24px;
    font-weight: 600;
    margin: 30px 0 15px;
}

.extensions-carousel {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 20px;
    border-radius: 16px; 
    scroll-snap-type: x mandatory;
}

.extensions-carousel::-webkit-scrollbar {
    display: internal;
}


.extension-card {
    min-width: 260px;
    background: #111;
    color: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    scroll-snap-align: start;
    flex-shrink: 0;

    display: flex;
    flex-direction: column;
    align-items: start;
    transition: transform 0.2s ease;
}

.extension-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.extension-card h4 {
    margin: 0 0 8px;
    font-size: 18px;
    
}

.extension-card p {
    font-size: 14px;
    margin: 2px 0;
    color: #ccc;
}

.status {
    font-weight: 600;
    color: #f59e0b; /* orange for Soon 🚀 */
}

.subscription-info {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 10px;
}

.btn-link {
    text-decoration: none;
    color: #4f46e5;
    font-weight: 600;
    font-size: 14px;
    margin-top: auto;
}

.extension-card:hover {
    transform: translateY(-5px);
}

/* --------------------------------------------------
PAGE FORMAT
-------------------------------------------------- */
.page {
    max-width: 1100px;
    margin: auto;
    padding: 120px 20px 80px 20px;
}

/* --------------------------------------------------
HOW IT WORKS
-------------------------------------------------- */
.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.how-step {
    background: #f7f7f7;
    padding: 24px;
    border-radius: 12px;
}

/* CTA final */
.cta-final {
    text-align: center;
    margin-top: 80px;
}

.cta-final h2 {
    margin-bottom: 20px;
}

/* --------------------------------------------------
LOGIN / REGISTER
-------------------------------------------------- */
.top-return {
    display: inline-block;
    margin-bottom: 20px;
    color: #444;
}

.form-switch {
    margin-top: 20px;
    font-size: 14px;
    text-align: center;
}

/* --------------------------------------------------
DASHBOARD
-------------------------------------------------- */
.dash-title {
    font-size: 36px;
    font-weight: 700;
}

.dash-sub {
    color: #555;
    margin-top: 8px;
    margin-bottom: 40px;
}

.user-status {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}

.user-badge {
    margin-right: 16px;
    color: #111;
}


.status-label {
    padding: 6px 14px;
    border-radius: 12px;
    font-weight: 600;
}

.status-label.free {
    background: #eee;
}

.status-label.pro {
    background: #4a6bff;
    color: white;
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.dash-card {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #eee;
}

.dash-card.locked {
    opacity: 0.5;
    position: relative;
}

.dash-card .lock {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: #222;
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
}

.dashboard-logout {
    margin-top: 50px;
}

.dashboard-logout #logout-btn {
    background: #000000;      /* mismo color que Go Pro */
    color: #fff;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dashboard-logout #logout-btn:hover {
    background: #000000; /* mismo color que Go Pro */
}


.form-error {
  color: #f44336; /* rojo */
  font-size: 14px;
  margin-bottom: 12px;
  text-align: center;
  font-weight: 500;
}

.input-error {
  color: #f44336; /* rojo */
  font-size: 13px;
  margin-top: 4px;
  font-weight: 500;
  min-height: 18px; /* mantiene espacio aunque no haya error */
}

/* --------------------------------------------------
EXTRA CREDITS SECTION
-------------------------------------------------- */

.credits-card {
  margin-top: 30px;
  padding: 24px;
  border: 1px solid #eee;
  border-radius: 8px;
}

.credits-stats {
  display: flex;
  gap: 30px;
  margin-top: 20px;
}

.credit-item {
  text-align: center;
}

.credit-number {
  display: block;
  font-size: 28px;
  font-weight: 600;
  color: #111;
}

.credit-label {
  font-size: 13px;
  color: #666;
}

.credits-reset {
  margin-top: 15px;
  font-size: 13px;
  color: #888;
}

/* --------------------------------------------------
HERO LARGE
-------------------------------------------------- */
.hero-large {
    max-width: 900px;
}

.hero-large .hero-title {
    font-size: 54px;
    line-height: 1.05;
}

.hero-large .hero-sub {
    font-size: 21px;
    max-width: 720px;
    margin: 24px auto 0;
}

/* --------------------------------------------------
PRODUCTIVITY GRID
-------------------------------------------------- */
.productivity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.prod-card {
    background: #fff;
    padding: 24px;
    border-radius: 14px;
    border: 1px solid #eee;
}

.prod-card h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.prod-card p {
    font-size: 14px;
    color: #666;
}

/* --------------------------------------------------
SOFT SECTION
-------------------------------------------------- */
.soft-section {
    background: #f6f6f6;
    padding: 60px 20px;
    border-radius: 20px;
}

/* --------------------------------------------------
CTA FINAL
-------------------------------------------------- */
.cta-final {
    text-align: center;
    padding: 100px 20px 120px;
}

.cta-final h2 {
    font-size: 36px;
    margin-bottom: 30px;
}


/* PLAN CARDS */
.plans-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

.plan-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px 25px;
  text-align: center;
  width: 220px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
}

.plan-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 600;
}

.plan-card p {
  margin: 6px 0;
  color: #555;
}

.plan-price {
  display: block;
  font-size: 24px;
  font-weight: 700;
  margin-top: 12px;
}

/* Different colors per plan */
.plan-card.free { border-top: 4px solid #ccc; }
.plan-card.starter { border-top: 4px solid #4a6bff; }
.plan-card.growth { border-top: 4px solid #f59e0b; }
.plan-card.pro { border-top: 4px solid #10b981; }

/* HOW GRID */
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.how-step {
  background: #f7f7f7;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.how-step h4 {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 600;
}

.how-step p {
  font-size: 14px;
  color: #555;
}


.checkout-page {
    max-width: 1000px;
    margin: 120px auto 80px auto;
    padding: 0 20px;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
}

.page-sub {
    text-align: center;
    color: #555;
    margin-top: 8px;
    margin-bottom: 50px;
}

.plans-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-bottom: 50px;
}

/* Plan seleccionado */
.plan-card.selected {
    box-shadow: 0 4px 12px rgba(74,107,255,0.3);
    transform: translateY(-4px);
}

.plan-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.15);
}


extra-credits-container {
    max-width: 700px;          /* un poco más ancho */
    margin: 60px auto 50px auto; /* más separación arriba y abajo */
    padding: 30px 25px;        /* padding interno más generoso */
    background: #fff;           /* fondo blanco igual que plan cards */
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    text-align: center;
}

.extra-credits-container h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111;
}

.extra-credits-container p {
    font-size: 15px;
    color: #555;
    margin-bottom: 30px;
}

/* Contenedor de tarjetas de créditos */
.credits-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;  /* más separación entre tarjetas */
}

.checkout-summary {
    max-width: 600px;
    margin: 40px auto 0 auto;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hidden {
    display: none;
    opacity: 0;
    transform: translateY(-20px);
}

.credit-card {
    min-width: 160px;
    padding: 24px 20px;
    border-radius: 14px;
    border: 1px solid #eee;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    text-align: center;
    background: #fff; /* fondo blanco como plan-card */
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.credit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.15);
    border-color: #4a6bff;
}

.credit-card.selected {
    box-shadow: 0 8px 28px rgba(74,107,255,0.3);
    transform: translateY(-6px);
}
/* Créditos / número y etiqueta */
.credit-card .credit-number {
    font-size: 26px;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.credit-card .credit-label {
    font-size: 14px;
    color: #555;
}

/* Input custom */
.credit-card input {
    margin-top: 10px;
    width: 80%;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    outline: none;
    transition: 0.2s ease;
}

.credit-card input:focus {
    border-color: #4a6bff;
    box-shadow: 0 0 0 3px rgba(74,107,255,0.15);
}

/* Checkout summary */
.checkout-summary {
    margin-top: 60px;        /* más separación desde créditos */
    padding: 30px 25px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}

.checkout-summary h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #111;
}

.checkout-summary p {
    font-size: 16px;
    color: #555;
    margin: 8px 0;
}

/* Botón checkout */
#checkoutBtn {
    margin-top: 25px;
    padding: 14px 30px;
    font-size: 16px;
    border-radius: 10px;
    background: #4a6bff;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: 0.2s ease;
}

#checkoutBtn:hover {
    background: #3b55d1;
}