/*
Theme Name: AppMarket Elementor
Theme URI: https://example.com/appmarket
Author: AppMarket
Description: Tema premium negro y dorado para vender aplicaciones con Elementor y WooCommerce.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: appmarket-elementor
*/

:root {
  --am-bg: #0b0c0e;
  --am-surface: #141518;
  --am-gold: #c9a96a;
  --am-gold-light: #e1c17e;
  --am-ivory: #f3efe6;
  --am-muted: #aaa8a2;
  --am-line: rgba(201, 169, 106, .35);
  --am-radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--am-bg); color: var(--am-ivory); font-family: Inter, Arial, sans-serif; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.am-container { width: min(1320px, calc(100% - 48px)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.site-header { position: sticky; top: 0; z-index: 99; border-bottom: 1px solid rgba(201,169,106,.17); background: rgba(11,12,14,.94); backdrop-filter: blur(14px); }
.header-inner { min-height: 88px; display: flex; align-items: center; gap: 34px; }
.brand { display: flex; align-items: center; gap: 13px; margin-right: auto; }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--am-gold); border-radius: 12px; color: var(--am-gold); font: 700 25px Georgia, serif; }
.brand-name { font: 600 30px Georgia, serif; }
.brand-name span { color: var(--am-gold); }
.main-nav ul { display: flex; align-items: center; gap: 36px; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: #e5e1d9; font-weight: 500; }
.main-nav a:hover { color: var(--am-gold-light); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-link, .am-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; border: 1px solid var(--am-gold); border-radius: 8px; padding: 0 18px; color: var(--am-gold-light); transition: .2s ease; }
.icon-link:hover, .am-button:hover { background: rgba(201,169,106,.12); transform: translateY(-2px); }
.cart-count { min-width: 21px; height: 21px; display: grid; place-items: center; border-radius: 99px; background: var(--am-gold); color: #0b0c0e; font-size: 12px; font-weight: 800; }
.menu-toggle { display: none; background: transparent; border: 1px solid var(--am-line); color: var(--am-ivory); padding: 9px 12px; border-radius: 8px; }

.am-hero { position: relative; overflow: hidden; min-height: 680px; padding: 92px 0 70px; background: radial-gradient(circle at 83% 52%, rgba(201,169,106,.20), transparent 27%); }
.am-hero::after { content: "A"; position: absolute; right: 3%; top: 13%; color: transparent; -webkit-text-stroke: 1px rgba(201,169,106,.22); font: 600 510px/.8 Georgia, serif; pointer-events: none; }
.hero-content { position: relative; z-index: 1; max-width: 860px; }
.eyebrow { color: var(--am-gold); text-transform: uppercase; letter-spacing: .2em; font-size: 13px; font-weight: 700; }
.am-hero h1 { margin: 18px 0 27px; font: 500 clamp(58px, 7.8vw, 116px)/.92 Georgia, serif; letter-spacing: -.045em; }
.am-hero h1 em { color: var(--am-gold-light); font-style: normal; }
.am-hero p { max-width: 620px; color: var(--am-muted); font-size: clamp(18px, 2vw, 22px); }
.am-button.primary { margin-top: 22px; min-height: 62px; padding: 0 30px; background: linear-gradient(135deg, var(--am-gold-light), #b88b42); color: #111; border: 0; font-weight: 800; }

.am-section { padding: 96px 0; }
.am-section.alt { background: #101113; }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading h2 { margin: 8px 0 12px; font: 500 clamp(38px, 5vw, 66px)/1.02 Georgia, serif; }
.section-heading p { color: var(--am-muted); font-size: 18px; }
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.app-card, .benefit-card { border: 1px solid var(--am-line); border-radius: var(--am-radius); background: linear-gradient(145deg, #181a1d, #101113); padding: 30px; box-shadow: 0 18px 55px rgba(0,0,0,.24); transition: .25s ease; }
.app-card:hover, .benefit-card:hover { transform: translateY(-7px); border-color: rgba(201,169,106,.75); }
.app-icon { width: 76px; height: 76px; display: grid; place-items: center; border: 1px solid var(--am-line); border-radius: 16px; background: #111214; color: var(--am-gold-light); font-size: 34px; }
.app-card h3 { margin: 22px 0 5px; font: 500 31px Georgia, serif; }
.app-card p, .benefit-card p { color: var(--am-muted); }
.price { color: var(--am-gold-light); font-size: 23px; font-weight: 800; }
.card-link { display: inline-flex; margin-top: 16px; color: var(--am-gold-light); font-weight: 700; }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.benefit-card h3 { font-size: 19px; }
.steps-grid, .testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card { position: relative; padding: 34px; border-top: 1px solid var(--am-gold); background: linear-gradient(180deg, rgba(201,169,106,.08), transparent); }
.step-number { color: var(--am-gold); font: 500 48px Georgia, serif; opacity: .8; }
.step-card h3, .testimonial-card h3 { margin: 12px 0 8px; font: 500 25px Georgia, serif; }
.step-card p, .testimonial-card p { color: var(--am-muted); }
.testimonial-card { padding: 30px; border: 1px solid var(--am-line); border-radius: var(--am-radius); background: #141518; }
.stars { color: var(--am-gold-light); letter-spacing: .18em; }
.faq-list { display: grid; gap: 14px; max-width: 920px; }
.faq-list details { padding: 20px 24px; border: 1px solid var(--am-line); border-radius: 12px; background: #141518; }
.faq-list summary { cursor: pointer; color: var(--am-ivory); font-weight: 700; }
.faq-list p { color: var(--am-muted); }
.cta-panel { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 50px; border: 1px solid var(--am-line); border-radius: 24px; background: radial-gradient(circle at 90%, rgba(201,169,106,.18), transparent 38%), #141518; }
.cta-panel h2 { margin: 0; font: 500 clamp(36px, 5vw, 62px)/1 Georgia, serif; }

.site-main { min-height: 60vh; }
.content-page { padding: 70px 0 100px; }
.content-page h1, .woocommerce-products-header__title { font: 500 clamp(44px, 6vw, 76px)/1 Georgia, serif; }
.site-footer { border-top: 1px solid var(--am-line); padding: 48px 0; color: var(--am-muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 25px; }

/* WooCommerce */
.woocommerce .products ul, .woocommerce ul.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto!important; margin: 0!important; padding: 22px; border: 1px solid var(--am-line); border-radius: var(--am-radius); background: var(--am-surface); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--am-ivory); font-size: 22px; }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price { color: var(--am-gold-light); }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit { background: var(--am-gold)!important; color: #101113!important; border-radius: 8px!important; }
.woocommerce table.shop_table, .woocommerce form.checkout, .woocommerce form.login, .woocommerce form.register, .woocommerce-MyAccount-content { border-color: var(--am-line); background: #141518; padding: 24px; border-radius: 14px; }
.woocommerce input.input-text, .woocommerce textarea, .woocommerce select { background: #0f1012; color: var(--am-ivory); border: 1px solid var(--am-line); border-radius: 7px; padding: 12px; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--am-gold); background: #17181b; color: var(--am-ivory); }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; }
.woocommerce-MyAccount-navigation a { display: block; padding: 11px 15px; border-bottom: 1px solid var(--am-line); }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 88px; padding: 22px 24px; background: #0b0c0e; border-bottom: 1px solid var(--am-line); }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; }
  .header-actions .account-text { display: none; }
  .app-grid, .woocommerce .products ul, .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid, .testimonial-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .am-container { width: min(100% - 28px, 1320px); }
  .brand-name { font-size: 24px; }
  .header-actions .account-link { display: none; }
  .am-hero { min-height: 590px; padding-top: 72px; }
  .am-hero::after { opacity: .45; }
  .app-grid, .woocommerce .products ul, .woocommerce ul.products, .benefit-grid { grid-template-columns: 1fr; }
  .cta-panel, .footer-inner { align-items: flex-start; flex-direction: column; }
}
