/*
Theme Name: NoCost Theme
Author: Ignacio Gil
Version: 1.0
Description: Minimal multilingual theme (English/Spanish)
Text Domain: nocost-theme
*/

body {
  font-family: system-ui, sans-serif;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #222;
  line-height: 1.6;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem;
}

a {
  color: #0073aa;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* --- Header --- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: #f5f7fa;
  border-bottom: 1px solid #ddd;
	font-weight:bold;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-branding img {
  height: 48px;
  width: auto;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  color: #003366;
}

.login-link a {
  font-size: 0.95rem;
  color: #0073aa;
  text-decoration: none;
}

.login-link a:hover {
  text-decoration: underline;
}

/* --- Footer --- */
.site-footer {
  background: #10b28a;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #fff;
	font-weight:bold;
}

.site-footer a {
  color: #fff;
  text-decoration: underline;
}

.intro-text h2 {
  text-align: center;
  font-size: 1.8rem;
  margin: 2rem auto;
  max-width: 700px;
}

.intro-text h3 {
  font-weight:400;
  text-align: center;
  font-size: 1.5rem;
  margin: 2rem auto;
  max-width: 700px;
}

.form-block-placeholder {
  border-radius: 10px;
  margin-bottom: 3rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

/* Feature grid */
.features-grid h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.cards-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* tres columnas fijas */
  gap: 1.5rem;
}

.feature-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.feature-card h3 {
  margin-top: 0;
  color: #00C896;
  font-size: 1.1rem;
}

.feature-card .icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.feature-card {
  text-align: center;
}

.use-cases {
  margin: 4rem 0;
  text-align: center;
}

.use-cases h2 {
  font-size: 2rem;
  margin-bottom: 2.5rem;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.use-case-card {
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  text-align: center;
  transition: all 0.3s ease;
}

.use-case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.use-case-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #00C896;
}

.use-case-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #00C896;
}

.use-case-card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1rem;
}

.use-case-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  font-size: 0.95rem;
  color: #333;
}

.use-case-card ul li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.how-it-works, .why-free, .cta {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 2rem;
  text-align: center;
}

.how-it-works ol {
  text-align: left;
  margin: 2rem auto;
  max-width: 700px;
  padding-left: 1.2rem;
  list-style: decimal;
}

.how-it-works li {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #333;
}

.why-free p {
  font-size: 1rem;
  color: #444;
  max-width: 700px;
  margin: 1.5rem auto 0;
}

.cta {
  background: #10b28a;
  color: #fff;
  padding: 3rem 2rem;
  border-radius: 12px;
}

.cta h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.button-large {
  display: inline-block;
  background: #fff;
  color: #00C896;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  border-radius: 8px;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.button-large:hover {
  background: #f4f4f4;
}

/* --- My Account Page --- */

.account-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.account-header {
  text-align: center;
  margin-bottom: 3rem;
}

.account-header h1 {
  font-size: 2.3rem;
  margin-bottom: 0.5rem;
  color: #003366;
}

.account-header p {
  color: #666;
}

.account-notice {
  text-align: center;
  background: #e6ffed;
  color: #237804;
  padding: 1rem;
  margin-bottom: 2rem;
  border: 1px solid #b7eb8f;
  border-radius: 8px;
}

/* Full-width top card */
.full-card {
  margin-bottom: 2.5rem;
}

/* Grid of two cards */
.account-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Card styling */
.account-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}

.account-card h2 {
  margin-top: 0;
  font-size: 1.3rem;
  color: #00C896;
  margin-bottom: 1rem;
}

.account-card label {
  display: block;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.3rem;
}

.account-card input {
  width: 100%;
  padding: 0.65rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.account-card button,
.btn-secondary {
  display: inline-block;
  margin-top: 1.2rem;
  background: #00C896;
  color: #fff;
  padding: 0.6rem 1.3rem;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.account-card button:hover,
.btn-secondary:hover {
  background: #00b285;
}

.btn-danger {
  background: #e03131;
}

.btn-danger:hover {
  background: #c92a2a;
}

/* --- Auth Modal --- */
.auth-modal {
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-overlay {
  position: absolute;
  background: rgba(0, 0, 0, 0.5);
  inset: 0;
}
.auth-box {
  position: relative;
  background: white;
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  padding: 2rem;
  z-index: 10;
}
.auth-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.4rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
}

.auth-tabs {
  display: flex;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #ddd;
}
.auth-tab {
  flex: 1;
  padding: 0.5rem;
  background: none;
  border: none;
  font-weight: bold;
  color: #888;
  cursor: pointer;
  border-bottom: 3px solid transparent;
}
.auth-tab.active {
  color: #00C896;
  border-bottom: 3px solid #00C896;
}
.auth-form {
  display: none;
}
.auth-form.active {
  display: block;
}
.auth-form label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
}
.auth-form input {
  width: 95%;
  padding: 0.6rem;
  margin-top: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.auth-form button {
  margin-top: 1.5rem;
  background: #00C896;
  color: white;
  border: none;
  padding: 0.7rem 1.3rem;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
}
.auth-form button:hover {
  background: #00b285;
}

.hidden {
  display: none;
}

.auth-tab {
  flex: 1;
  padding: 0.7rem 1rem;
  font-weight: bold;
  color: #888;
  border: none;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: background 0.3s ease;
  border-radius: 6px 6px 0 0;
}
.auth-tab:hover {
  background: #d3fff4;
}
.auth-tab.active {
  background: #00C896;
  color: white;
  border-bottom: none;
}

html {
  scroll-behavior: smooth;
}

/* --- AI Form --- */
/* ===== GENERAL FORM LAYOUT ===== */
.ai-form {
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgb(170 213 209);
}
.form-generator label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #333;
}
.form-generator input[type="text"],
.form-generator textarea,
.form-generator select {
  width: 97%;
  padding: 0.6rem;
  margin-bottom: 1.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.form-generator textarea {
  min-height: 80px;
}

/* ===== CONTENT TYPE TABS ===== */
.tab-selector {
  margin-bottom: 2rem;
  border-bottom: 2px solid #ddd;
}
.tabs {
  display: flex;
}
.tab-label {
  flex: 1;
  text-align: center;
  padding: 1rem;
  background: #fff;
  font-weight: bold;
  cursor: pointer;
  border-bottom: none;
  transition: background 0.2s ease;
}
#tab-articles:checked ~ .tabs label[for="tab-articles"],
#tab-products:checked ~ .tabs label[for="tab-products"] {
  background: #00a885;
  border-bottom: 2px solid transparent;
  color: #fff;
  z-index: 2;
  position: relative;
}

/* ===== LANGUAGE FLAGS ===== */
.language-select {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
}
.language-select input[type="radio"] {
  display: none;
}
.language-select label {
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 4px;
  cursor: pointer;
  transition: border 0.2s ease;
}
.language-select img {
  width: 36px;
  height: 24px;
  display: block;
}
.language-select input:checked + label {
  border: 2px solid #00a885;
}

/* ===== SLIDERS ===== */
.slider-group, .slider-pair {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.slider-pair > div {
  flex: 1;
}
.slider-group input,
.slider-pair input {
  width: 100%;
}
.slider-group span,
.slider-pair span {
  font-weight: bold;
  min-width: 2ch;
}

/* ===== TOGGLE INSTRUCTIONS ===== */
.toggle-instructions {
  margin-top: 2rem;
}
.toggle-button {
  background: #eee;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 1rem;
}
.instructions-fields {
  padding: 1rem;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
}

/* ===== HIGHLIGHTED SECTION (Formatting & Writer) ===== */
.highlighted-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 12px;
}
.section-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #00a885;
  font-weight: bold;
}

/* ===== VERTICAL CARDS ===== */
.vertical-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.v-card {
  border: 2px solid #eee;
  border-radius: 10px;
  padding: 1rem;
  background: #fff;
  cursor: pointer;
  transition: border 0.2s, box-shadow 0.2s;
  position: relative;
}
.v-card input {
  display: none;
}
.v-card-body {
  text-align: center;
}
.v-card .icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.v-card strong {
  display: block;
  margin-bottom: 0.3rem;
  color: #222;
}
.v-card p {
  font-size: 0.9rem;
  color: #555;
}
.v-card:hover {
  border-color: #00a885;
  box-shadow: 0 0 0 3px rgba(0,168,133,0.15);
}
.v-card input:checked + .v-card-body,
.v-card input:checked ~ .v-card-body {
  border-color: #00a885;
  box-shadow: 0 0 0 3px rgba(0,168,133,0.25);
}

/* ===== SUBMIT BUTTON ===== */
.generate-button {
  display: block;
  width: 100%;
  margin-top: 2rem;
  padding: 1rem;
  background: #00a885;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease;
}
.generate-button:hover {
  background: #008e73;
}

.instructions-fields label.same-title,
.instructions-fields label.same-outline,
.instructions-fields label.same-content {
  display: none;
  margin-bottom: 1.5rem;
  display: block; /* se anula con JS según el número de artículos */
}

.language-cards {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.lang-card {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ccc;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  font-weight: bold;
  background: #f9f9f9;
  transition: all 0.2s ease-in-out;
}

.lang-card input[type="radio"] {
  display: none;
}

.lang-card:hover {
  border-color: #00c896;
  background: #e6fff7;
}

.lang-card input[type="radio"]:checked + span {
  color: #00c896;
}

.lang-card span {
  pointer-events: none;
}

.section-subtitle{
	text-align:center;
}

.form-divider {
  border: none;
  height: 1px;
  background: linear-gradient(to right, #eee, #ccc, #eee);
  margin: 4rem auto;
  width: 80%;
}

.inline-cards {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.mini-card {
  border: 2px solid #ccc;
  border-radius: 8px;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  font-weight: bold;
  background: #f9f9f9;
  transition: all 0.2s ease-in-out;
  display: flex;
  align-items: center;
}

.mini-card input[type="checkbox"] {
  display: none;
}

.mini-card:hover {
  border-color: #00c896;
  background: #e6fff7;
}

.mini-card input[type="checkbox"]:checked + span {
  color: #00c896;
}

.mini-card span {
  pointer-events: none;
}

select {
  width: 220px;
  padding: 0.65rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.btn-danger {
    background: #e53935 !important;
}

.btn-danger:hover {
  background-color: #c62828 !important;
}

.account-menu {
  position: relative;
  display: inline-block;
}

.account-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  padding: 0.5rem 1rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  z-index: 999;
  min-width: 150px;
}

.account-dropdown a {
  display: block;
  color: #333;
  text-decoration: none;
  margin: 0.25rem 0;
}

.account-dropdown a:hover {
  color: #0073aa;
}

.account-menu:hover .account-dropdown {
  display: block;
}

.checkbox-large {
  width: 25px !important;
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 900px) {
  .cards-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cards-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1100px) {
  .vertical-cards {
    grid-template-columns: repeat(5, 1fr);
  }