/* ============================================================
   WebMensual.com - Main Stylesheet (optimized, no bloat)
   What! Marketing SL
   ============================================================ */

/* --- Custom Properties --- */
:root {
    --black: #1a1a1a;
    --dark: #2d2d2d;
    --white: #ffffff;
    --cream: #f8f7f4;
    --light: #f0efec;
    --gray: #6b6b6b;
    --mid: #999999;
    --border: #e3e1dd;
    --green: #25D366;
    --green-hover: #1da851;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --max-w: 1200px;
    --h-h: 76px;
    --r: 12px;
    --rs: 8px;
}

/* --- Reset --- */
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:auto;-webkit-text-size-adjust:100%}
body{font-family:var(--font);font-size:16px;line-height:1.6;color:var(--dark);background:var(--white);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}

/* --- Container --- */
.container{width:100%;max-width:var(--max-w);margin:0 auto;padding:0 24px}

/* --- Utility --- */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.section-title{font-size:clamp(28px,3.5vw,42px);font-weight:700;line-height:1.15;letter-spacing:-0.02em;color:var(--black);margin-bottom:12px}
.section-subtitle{font-size:clamp(16px,1.2vw,19px);color:var(--gray);max-width:640px;line-height:1.5}
.text-center{text-align:center}
.mx-auto{margin-left:auto;margin-right:auto}

/* --- Buttons --- */
.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    font-family:var(--font);
    font-size:15px;
    font-weight:600;
    line-height:1;
    padding:14px 28px;
    border:none;
    border-radius:var(--rs);
    cursor:pointer;
    transition:background .2s,color .2s;
    text-decoration:none;
    -webkit-appearance:none;
    appearance:none;
    user-select:none;
    -webkit-user-select:none;
    touch-action:manipulation;
}
.btn:active{transform:scale(0.98)}
.btn-primary{background:var(--black);color:var(--white)}
.btn-primary:hover{background:#333}
.btn-whatsapp{background:var(--green);color:var(--white)}
.btn-whatsapp:hover{background:var(--green-hover)}
.btn-outline{background:transparent;color:var(--black);border:2px solid var(--black)}
.btn-outline:hover{background:var(--black);color:var(--white)}
.btn-lg{padding:16px 36px;font-size:16px}
.btn-sm{padding:10px 20px;font-size:14px}

/* ============================================================
   HEADER
   ============================================================ */
.header{
    position:fixed;
    top:0;left:0;right:0;
    height:var(--h-h);
    background:var(--white);
    border-bottom:1px solid var(--border);
    z-index:100;
}
.header .container{
    display:flex;
    align-items:center;
    justify-content:space-between;
    height:100%;
}
.header-logo{
    display:flex;
    align-items:center;
    gap:10px;
    flex-shrink:0;
}
.header-logo img{width:36px;height:36px}
.header-logo span{font-size:16px;font-weight:700;color:var(--black);white-space:nowrap}

.header-nav{
    display:flex;
    align-items:center;
    gap:8px;
}
.header-nav a{
    font-size:14px;
    font-weight:500;
    color:var(--gray);
    padding:6px 14px;
    border-radius:6px;
    white-space:nowrap;
}
.header-nav a:hover{color:var(--black);background:var(--light)}

.header-actions{
    display:flex;
    align-items:center;
    gap:12px;
    flex-shrink:0;
}

/* Language Selector */
.lang-selector{
    display:flex;
    align-items:center;
    gap:2px;
}
.lang-selector a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
    font-weight:600;
    color:var(--gray);
    padding:4px 6px;
    border-radius:4px;
    text-transform:uppercase;
    letter-spacing:.5px;
}
.lang-selector a:hover{color:var(--black);background:var(--light)}
.lang-selector a.active{color:var(--black);background:var(--light)}
.lang-separator{width:1px;height:12px;background:var(--border)}

.header-phone{
    font-size:14px;
    font-weight:600;
    color:var(--black);
    white-space:nowrap;
    padding:6px 12px;
    border-radius:6px;
}
.header-phone:hover{background:var(--light)}

/* Mobile Menu Toggle */
.menu-toggle{
    display:none;
    width:40px;
    height:40px;
    background:none;
    border:none;
    cursor:pointer;
    padding:8px;
    -webkit-appearance:none;
    appearance:none;
}
.menu-toggle span{
    display:block;
    width:22px;
    height:2px;
    background:var(--black);
    border-radius:2px;
    transition:all .3s;
}
.menu-toggle span+span{margin-top:6px}
.menu-toggle.active span:nth-child(1){transform:rotate(45deg);margin-top:8px}
.menu-toggle.active span:nth-child(2){opacity:0}
.menu-toggle.active span:nth-child(3){transform:rotate(-45deg);margin-top:-16px}

/* Mobile Menu */
.mobile-menu{
    display:none;
    position:fixed;
    top:var(--h-h);
    left:0;right:0;bottom:0;
    background:var(--white);
    z-index:99;
    padding:24px;
    flex-direction:column;
    gap:8px;
    overflow-y:auto;
}
.mobile-menu.open{display:flex}
.mobile-menu a{
    display:block;
    font-size:18px;
    font-weight:500;
    color:var(--dark);
    padding:14px 16px;
    border-radius:var(--rs);
}
.mobile-menu a:hover{background:var(--light)}
.mobile-menu .btn{display:flex;width:100%;justify-content:center;margin-top:8px}
.mobile-lang-selector{
    display:flex;
    align-items:center;
    gap:4px;
    padding:14px 16px;
    border-top:1px solid var(--border);
    margin-top:12px;
    padding-top:20px;
}
.mobile-lang-selector a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:14px;
    font-weight:600;
    color:var(--gray);
    padding:6px 12px;
    border-radius:4px;
    text-transform:uppercase;
    width:auto;
}
.mobile-lang-selector a:hover{color:var(--black);background:var(--light)}
.mobile-lang-selector a.active{color:var(--black);background:var(--light)}

/* ============================================================
   HERO
   ============================================================ */
.hero{padding:120px 0 80px;background:var(--cream)}
.hero-inner{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center}
.hero-content{max-width:580px}
.hero-badge{
    display:inline-flex;align-items:center;gap:6px;
    font-size:13px;font-weight:600;color:var(--gray);
    background:rgba(0,0,0,.05);padding:6px 14px;border-radius:100px;margin-bottom:20px;
}
.hero-title{
    font-size:clamp(36px,5vw,58px);font-weight:700;line-height:1.08;
    letter-spacing:-.03em;color:var(--black);margin-bottom:20px;
}
.hero-title em{font-style:normal;text-decoration:underline;text-decoration-thickness:3px;text-underline-offset:6px}
.hero-subtitle{
    font-size:clamp(17px,1.3vw,20px);color:var(--gray);line-height:1.6;
    margin-bottom:32px;max-width:520px;
}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-bottom:40px}
.hero-features{display:flex;flex-wrap:wrap;gap:12px}
.hero-feature{
    display:inline-flex;align-items:center;gap:6px;
    font-size:14px;color:var(--gray);background:rgba(0,0,0,.03);
    padding:6px 14px;border-radius:100px;
}
.hero-feature svg{width:16px;height:16px;flex-shrink:0}
.hero-visual{display:flex;justify-content:center;align-items:center}
.hero-card{
    background:var(--white);border-radius:var(--r);padding:32px;
    box-shadow:0 20px 60px rgba(0,0,0,.06);max-width:420px;width:100%;
}
.hero-card-icon{width:48px;height:48px;background:var(--cream);border-radius:12px;display:flex;align-items:center;justify-content:center;margin-bottom:16px;font-size:22px}
.hero-card h3{font-size:18px;font-weight:700;color:var(--black);margin-bottom:8px}
.hero-card p{font-size:14px;color:var(--gray);line-height:1.5}

/* ============================================================
   FORM
   ============================================================ */
.form-section{padding:80px 0;background:var(--white)}
.form-section-header{margin-bottom:40px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;max-width:640px;margin:0 auto}
.form-group{display:flex;flex-direction:column;gap:6px}
.form-group.full-width{grid-column:1/-1}
.form-group label{font-size:13px;font-weight:600;color:var(--dark)}
.form-group label .required{color:#e74c3c}
.form-group input,.form-group select,.form-group textarea{
    font-family:var(--font);font-size:15px;padding:12px 16px;
    border:1.5px solid var(--border);border-radius:var(--rs);
    background:var(--white);color:var(--dark);width:100%;
    -webkit-appearance:none;appearance:none;
}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:var(--black)}
.form-group textarea{min-height:100px;resize:vertical}
.form-group select{
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%236b6b6b'/%3E%3C/svg%3E");
    background-repeat:no-repeat;background-position:right 14px center;padding-right:36px;
}
.form-checkbox{grid-column:1/-1;display:flex;align-items:flex-start;gap:10px;padding:4px 0}
.form-checkbox input[type="checkbox"]{width:18px;height:18px;margin-top:2px;flex-shrink:0;-webkit-appearance:checkbox;appearance:checkbox;border:none;padding:0}
.form-checkbox label{font-size:13px;color:var(--gray);line-height:1.4}
.form-checkbox label a{color:var(--black);text-decoration:underline}
.form-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:12px;padding-top:8px}
.form-note{font-size:13px;color:var(--mid);margin-top:16px;text-align:center}

/* ============================================================
   PLANS
   ============================================================ */
.plans-section{padding:80px 0;background:var(--cream)}
.plans-header{margin-bottom:48px}
.plans-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;align-items:start}
.plan-card{
    background:var(--white);border-radius:var(--r);padding:36px 32px;
    border:1px solid var(--border);display:flex;flex-direction:column;
}
.plan-card:hover{box-shadow:0 10px 25px rgba(0,0,0,.08)}.plan-card.featured{border-color:var(--black);position:relative}
.plan-card.featured::before{
    content:'MÁS POPULAR';position:absolute;top:-12px;left:50%;transform:translateX(-50%);
    background:var(--black);color:var(--white);font-size:11px;font-weight:700;
    letter-spacing:1px;padding:4px 16px;border-radius:100px;
}
.plan-name{font-size:14px;font-weight:700;text-transform:uppercase;letter-spacing:1.5px;color:var(--mid);margin-bottom:8px}
.plan-price{font-size:42px;font-weight:700;color:var(--black);line-height:1;margin-bottom:4px}
.plan-price span{font-size:18px;font-weight:500;color:var(--gray)}
.plan-period{font-size:14px;color:var(--gray);margin-bottom:24px}
.plan-features{list-style:none;margin-bottom:32px;flex-grow:1}
.plan-features li{
    font-size:14px;color:var(--dark);padding:8px 0;padding-left:24px;
    position:relative;line-height:1.4;border-bottom:1px solid var(--light);
}
.plan-features li:last-child{border-bottom:none}
.plan-features li::before{
    content:'';position:absolute;left:0;top:13px;
    width:14px;height:14px;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231a1a1a'%3E%3Cpath d='M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z'/%3E%3C/svg%3E");
    background-size:contain;background-repeat:no-repeat;
}
.plan-card .btn{width:100%}

/* ============================================================
   INCLUDES
   ============================================================ */
.includes-section{padding:80px 0;background:var(--white)}
.includes-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:40px}
.include-item{padding:28px;border-radius:var(--r);border:1px solid var(--border)}
.include-item:hover{box-shadow:0 10px 25px rgba(0,0,0,.08)}
.include-icon{width:44px;height:44px;background:var(--cream);border-radius:10px;display:flex;align-items:center;justify-content:center;margin-bottom:16px;font-size:20px}
.include-item h3{font-size:17px;font-weight:700;color:var(--black);margin-bottom:8px}
.include-item p{font-size:14px;color:var(--gray);line-height:1.5}

/* ============================================================
   PROCESS
   ============================================================ */
.process-section{padding:80px 0;background:var(--cream)}
.process-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;margin-top:48px}
.process-step{text-align:center;padding:32px 20px}
.process-step-number{
    width:48px;height:48px;background:var(--black);color:var(--white);
    border-radius:50%;display:flex;align-items:center;justify-content:center;
    font-size:18px;font-weight:700;margin:0 auto 16px;
}
.process-step h3{font-size:17px;font-weight:700;color:var(--black);margin-bottom:8px}
.process-step p{font-size:14px;color:var(--gray);line-height:1.5}

/* ============================================================
   FAQ
   ============================================================ */
.faq-section{padding:80px 0;background:var(--white)}
.faq-list{max-width:720px;margin:40px auto 0}
.faq-item{border-bottom:1px solid var(--border);padding:20px 0}
.faq-question{
    display:flex;justify-content:space-between;align-items:center;
    width:100%;background:none;border:none;cursor:pointer;
    font-family:var(--font);font-size:16px;font-weight:600;color:var(--dark);text-align:left;padding:4px 0;
    -webkit-appearance:none;appearance:none;
}
.faq-question:hover{color:var(--black)}
.faq-arrow{width:20px;height:20px;flex-shrink:0;transition:transform .3s}
.faq-item.open .faq-arrow{transform:rotate(180deg)}
.faq-answer{max-height:0;overflow:hidden;transition:max-height .3s;padding:0}
.faq-item.open .faq-answer{max-height:300px;padding-top:12px}
.faq-answer p{font-size:15px;color:var(--gray);line-height:1.6}

/* ============================================================
   CTA
   ============================================================ */
.cta-section{padding:100px 0;background:var(--black);color:var(--white);text-align:center}
.cta-title{font-size:clamp(30px,3.5vw,44px);font-weight:700;line-height:1.12;letter-spacing:-.02em;margin-bottom:16px;color:var(--white)}
.cta-text{font-size:18px;color:rgba(255,255,255,.7);max-width:540px;margin:0 auto 36px;line-height:1.5}
.cta-section .btn-primary{background:var(--white);color:var(--black)}
.cta-section .btn-primary:hover{background:rgba(255,255,255,.9)}
.cta-section .btn-whatsapp{background:var(--green);color:var(--white)}
.cta-section .btn-whatsapp:hover{background:var(--green-hover)}

/* ============================================================
   FOOTER
   ============================================================ */
.footer{padding:48px 0 32px;background:var(--dark);color:rgba(255,255,255,.6)}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:40px;margin-bottom:40px}
.footer-brand p{font-size:14px;line-height:1.6;margin-top:12px;max-width:300px}
.footer h4{font-size:14px;font-weight:700;color:var(--white);margin-bottom:16px;text-transform:uppercase;letter-spacing:.5px}
.footer-links{list-style:none}
.footer-links li{margin-bottom:10px}
.footer-links a{font-size:14px;color:rgba(255,255,255,.6)}
.footer-links a:hover{color:var(--white)}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding-top:24px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px}
.footer-bottom p{font-size:13px}
.footer-legal{display:flex;gap:16px;flex-wrap:wrap}
.footer-legal a{font-size:13px;color:rgba(255,255,255,.5)}
.footer-legal a:hover{color:var(--white)}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width:1024px){
    .hero-inner{grid-template-columns:1fr;gap:40px}
    .hero-content,.hero-subtitle{max-width:100%}
    .hero-visual{order:-1}
    .hero-card{max-width:100%}
    .plans-grid{grid-template-columns:repeat(2,1fr)}
    .plans-grid .plan-card:last-child{grid-column:1/-1;max-width:400px;margin:0 auto}
    .includes-grid{grid-template-columns:repeat(2,1fr)}
    .process-steps{grid-template-columns:repeat(2,1fr)}
    .footer-grid{grid-template-columns:1fr 1fr}
}

@media(max-width:768px){
    :root{--h-h:64px}
    .container{padding:0 16px}
    .header-nav{display:none}
    .header-actions .header-phone,.header-actions .btn{display:none}
    .header-actions .lang-selector{display:none}
    .menu-toggle{display:flex}
    .hero{padding:100px 0 60px}
    .hero-actions{flex-direction:column;width:100%}
    .hero-actions .btn{width:100%;justify-content:center}
    .hero-features{flex-direction:column;align-items:flex-start}
    .form-grid{grid-template-columns:1fr}
    .form-group.full-width,.form-checkbox,.form-actions,.form-note{grid-column:1}
    .form-actions{flex-direction:column}
    .form-actions .btn{width:100%;justify-content:center}
    .plans-grid{grid-template-columns:1fr}
    .plans-grid .plan-card:last-child{max-width:100%}
    .includes-grid,.process-steps{grid-template-columns:1fr}
    .process-steps{max-width:360px;margin-left:auto;margin-right:auto}
    .footer-grid{grid-template-columns:1fr;gap:24px}
    .footer-bottom{flex-direction:column;text-align:center}
    .cta-section{padding:60px 0}
}

@media(max-width:480px){
    .hero-title{font-size:30px}
    .plan-price{font-size:34px}
    .section-title{font-size:26px}
}
