/* Mg Multiservicio S.C — Web corporativa desatascos Tenerife Norte */
:root {
  --mg-primary: #ea580c;
  --mg-primary-dark: #c2410c;
  --mg-navy: #0f172a;
  --mg-navy-light: #1e293b;
  --panel-url: https://api.mgmultiservicio.com/panel;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'DM Sans', sans-serif; color: #334155; line-height: 1.6; background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 15%, #fff 35%); min-height: 100vh; }
body::before { content: ''; position: fixed; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(15,23,42,.04) 1px, transparent 0); background-size: 28px 28px; pointer-events: none; z-index: 0; }
.header, main, .footer, .float-btns { position: relative; z-index: 1; }

/* Header */
.header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 1rem 1.5rem; background: rgba(255,255,255,.95); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(226,232,240,.8); box-shadow: 0 1px 3px rgba(15,23,42,.06); }
.header__logo { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.25rem; color: var(--mg-navy); text-decoration: none; }
.header__logo-accent { color: var(--mg-primary); }
.header__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.header__nav a { color: var(--mg-navy); text-decoration: none; font-weight: 500; font-size: .9375rem; }
.header__nav a:hover { color: var(--mg-primary); }
.header__nav .btn--primary { padding: .45rem .9rem; font-size: .875rem; }

/* Hero */
.hero { background: linear-gradient(145deg, #0c1222 0%, #0f172a 40%, #1a2744 80%, #0f172a 100%); padding: clamp(3rem, 10vw, 5rem) 1.5rem; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 100% 70% at 50% -10%, rgba(234,88,12,.2) 0%, transparent 50%), radial-gradient(circle at 80% 50%, rgba(234,88,12,.06) 0%, transparent 40%); pointer-events: none; }
.hero__inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.hero__title { font-family: 'Outfit', sans-serif; font-size: clamp(1.75rem, 5vw, 2.5rem); font-weight: 800; color: #fff; margin: 0 0 .75rem; line-height: 1.2; text-shadow: 0 2px 20px rgba(0,0,0,.2); }
.hero__subtitle { font-size: 1.0625rem; color: #94a3b8; margin: 0 0 1.5rem; }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem 1rem; }
.hero__cta { display: inline-block; padding: .875rem 1.5rem; font-size: 1rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--mg-primary) 0%, #f97316 100%); border-radius: 14px; text-decoration: none; box-shadow: 0 8px 28px rgba(234,88,12,.45); transition: transform .2s, box-shadow .2s; }
.hero__cta:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(234,88,12,.5); }
.hero__cta--wa { background: #25d366; box-shadow: 0 6px 20px rgba(37,211,102,.4); }
.hero__cta--wa:hover { box-shadow: 0 10px 28px rgba(37,211,102,.5); }
.hero__cta--outline { background: transparent; border: 2px solid rgba(255,255,255,.5); color: #fff; }
.hero__cta--outline:hover { background: rgba(255,255,255,.1); }

/* Sections */
.section { max-width: 900px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) 1.5rem; }
.section__title { font-family: 'Outfit', sans-serif; font-size: 1.75rem; font-weight: 700; color: var(--mg-navy); text-align: center; margin: 0 0 1rem; position: relative; display: inline-block; left: 50%; transform: translateX(-50%); }
.section__title::after { content: ''; position: absolute; bottom: -8px; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--mg-primary), transparent); border-radius: 2px; }
.section__intro { text-align: center; font-size: 1rem; color: #64748b; max-width: 560px; margin: 0 auto 1rem; }

/* Trust strip (por qué confiar) */
.trust-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; max-width: 900px; margin: 0 auto; padding: 1.5rem; background: linear-gradient(90deg, #fff 0%, #fffefb 50%, #fff 100%); border-left: 4px solid var(--mg-primary); box-shadow: 0 4px 24px rgba(15,23,42,.06); }
@media (min-width: 640px) { .trust-strip { grid-template-columns: repeat(3, 1fr); } }
.trust-strip__item { display: flex; align-items: flex-start; gap: .75rem; }
.trust-strip__icon { font-size: 1.5rem; line-height: 1; }
.trust-strip__title { font-weight: 700; color: var(--mg-navy); font-size: .9375rem; margin: 0 0 .2rem; }
.trust-strip__desc { font-size: .8125rem; color: #64748b; margin: 0; }

/* Services grid */
.services, .testimonials { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 768px) { .services, .testimonials { grid-template-columns: repeat(3, 1fr); } }
.service-card { background: #fff; border-radius: 20px; padding: 2rem; border: 1px solid rgba(226,232,240,.8); box-shadow: 0 4px 6px -1px rgba(15,23,42,.07), 0 10px 20px -5px rgba(15,23,42,.08); text-align: left; position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.service-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--mg-primary), var(--mg-primary-dark)); border-radius: 4px 0 0 4px; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -10px rgba(15,23,42,.12), 0 8px 16px -4px rgba(234,88,12,.1); border-color: rgba(234,88,12,.25); }
.service-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 1.25rem; background: linear-gradient(135deg, #fff7ed 0%, rgba(254,215,170,.4) 100%); color: var(--mg-primary); border-radius: 14px; }
.service-card__icon svg { width: 28px; height: 28px; }
.service-card__title { font-family: 'Outfit', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--mg-navy); margin: 0 0 .5rem; }
.service-card__text { font-size: .9375rem; color: #64748b; margin: 0; }

/* Por qué elegirnos */
.why-choose { display: grid; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 640px) { .why-choose { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .why-choose { grid-template-columns: repeat(3, 1fr); } }
.why-choose__item { background: #fff; border-radius: 16px; padding: 1.5rem; border: 1px solid rgba(226,232,240,.8); box-shadow: 0 2px 8px rgba(15,23,42,.06); }
.why-choose__icon { font-size: 1.75rem; margin-bottom: .5rem; }
.why-choose__title { font-family: 'Outfit', sans-serif; font-weight: 700; color: var(--mg-navy); margin: 0 0 .35rem; font-size: 1rem; }
.why-choose__text { font-size: .875rem; color: #64748b; margin: 0; }

/* App section — diseño tipo app premium */
.app-section { background: linear-gradient(160deg, #0f172a 0%, #1e293b 50%, #0f172a 100%); border-radius: 24px; padding: clamp(2rem, 5vw, 3rem) 1.5rem; margin: 0 1.5rem; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 20px 50px -15px rgba(0,0,0,.35); }
.app-section .section__title { color: #fff; }
.app-section .section__title::after { background: linear-gradient(90deg, transparent, var(--mg-primary), transparent); }
.app-section .section__intro { color: #94a3b8; }
.app-benefits { display: grid; gap: 1rem; margin-top: 1.5rem; margin-bottom: 2rem; }
@media (min-width: 640px) { .app-benefits { grid-template-columns: repeat(2, 1fr); } }
.app-benefit { display: flex; align-items: flex-start; gap: 1rem; padding: 1.25rem; background: rgba(255,255,255,.05); border-radius: 16px; border: 1px solid rgba(255,255,255,.08); }
.app-benefit__icon { width: 48px; height: 48px; flex-shrink: 0; background: linear-gradient(135deg, var(--mg-primary), #f97316); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.app-benefit__title { font-family: 'Outfit', sans-serif; font-weight: 700; color: #fff; margin: 0 0 .25rem; font-size: 1rem; }
.app-benefit__text { font-size: .875rem; color: #94a3b8; margin: 0; }
.app-cta { display: inline-block; padding: 1rem 2rem; font-size: 1.0625rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--mg-primary) 0%, #f97316 100%); border-radius: 14px; text-decoration: none; box-shadow: 0 8px 28px rgba(234,88,12,.45); transition: transform .2s, box-shadow .2s; }
.app-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(234,88,12,.5); color: #fff; }

/* Testimonials */
.testimonial-card { background: #fff; border-radius: 20px; padding: 2rem; box-shadow: 0 4px 6px -1px rgba(15,23,42,.07), 0 10px 20px -5px rgba(15,23,42,.08); position: relative; transition: transform .2s, box-shadow .2s; }
.testimonial-card::before { content: '"'; position: absolute; top: 1rem; left: 1.25rem; font-family: 'Outfit', sans-serif; font-size: 2.5rem; font-weight: 700; color: var(--mg-primary); opacity: .3; line-height: 1; }
.testimonial-card:hover { box-shadow: 0 16px 36px -10px rgba(15,23,42,.12); transform: translateY(-2px); }
.testimonial-card__text { font-size: 1rem; padding-left: .25rem; margin: 0 0 1rem; color: #475569; }
.testimonial-card__author { font-size: .875rem; color: #94a3b8; margin: 0; font-style: italic; }
.testimonials-cta { text-align: center; margin-top: 1.5rem; }
.testimonials-cta a { color: var(--mg-primary); font-weight: 600; text-decoration: none; }
.testimonials-cta a:hover { text-decoration: underline; }

/* Contact form */
.contact-form { max-width: 480px; margin: 0 auto; padding: 2rem; background: #fff; border-radius: 20px; border: 1px solid rgba(226,232,240,.8); box-shadow: 0 4px 6px -1px rgba(15,23,42,.07), 0 10px 20px -5px rgba(15,23,42,.08); }
.contact-form::before { content: 'Escríbenos'; display: block; margin: -2rem -2rem 1.5rem -2rem; padding: 1.25rem 2rem; background: linear-gradient(135deg, var(--mg-primary) 0%, #f97316 100%); color: #fff; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.2rem; border-radius: 20px 20px 0 0; }
.contact-form__label { display: block; font-size: .875rem; font-weight: 600; color: var(--mg-navy); margin-bottom: .35rem; margin-top: 1rem; }
.contact-form__label:first-of-type { margin-top: 0; }
.contact-form__input { width: 100%; padding: .75rem 1rem; font-size: 1rem; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; font-family: inherit; }
.contact-form__textarea { min-height: 100px; resize: vertical; }
.contact-form__submit { width: 100%; margin-top: 1.25rem; padding: 1rem; font-size: 1.0625rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--mg-primary) 0%, #f97316 100%); border: none; border-radius: 14px; cursor: pointer; box-shadow: 0 6px 20px rgba(234,88,12,.4); transition: transform .2s, box-shadow .2s; }
.contact-form__submit:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(234,88,12,.5); }
.btn--full { display: block; }

/* CTA block */
.cta-block { text-align: center; padding: 2.5rem 1.5rem; background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%); border-radius: 20px; margin: 0 1.5rem; }
.cta-block__title { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 700; color: #fff; margin: 0 0 .5rem; }
.cta-block__sub { color: #94a3b8; margin: 0 0 1.5rem; font-size: 1rem; }
.cta-block__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.cta-block__btns .btn { padding: .875rem 1.5rem; font-weight: 700; text-decoration: none; border-radius: 14px; font-size: 1rem; transition: transform .2s, box-shadow .2s; }
.cta-block__btns .btn--primary { background: linear-gradient(135deg, var(--mg-primary), #f97316); color: #fff; box-shadow: 0 6px 20px rgba(234,88,12,.4); }
.cta-block__btns .btn--wa { background: #25d366; color: #fff; }
.cta-block__btns .btn--outline { background: transparent; color: #fbbf24; border: 2px solid #fbbf24; }

/* Footer */
.footer { margin-top: 3rem; padding: 2.5rem 1.5rem; background: linear-gradient(180deg, #0f172a 0%, #020617 100%); color: #e2e8f0; position: relative; }
.footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--mg-primary), #f97316, var(--mg-primary)); opacity: .9; }
.footer__inner { max-width: 900px; margin: 0 auto; text-align: center; }
.footer__brand { font-family: 'Outfit', sans-serif; font-size: 1.25rem; font-weight: 700; margin: 0 0 1rem; }
.footer__brand-accent { color: var(--mg-primary); }
.footer__address { font-size: .9375rem; color: #94a3b8; margin: 0 0 .5rem; }
.footer__contact, .footer__hours { font-size: .9375rem; margin: 0 0 .5rem; }
.footer__contact a { color: #f1f5f9; text-decoration: none; }
.footer__links { margin: 1rem 0; font-size: .875rem; }
.footer__links a { color: #94a3b8; text-decoration: none; margin: 0 .5rem; }
.footer__links a:hover { color: #f1f5f9; }
.footer__social { margin: 1rem 0; }
.footer__social-link { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; background: rgba(255,255,255,.08); border-radius: 50%; color: #25d366; transition: background .2s, transform .2s; }
.footer__social-link:hover { background: rgba(37,211,102,.25); transform: scale(1.08); }
.footer__copy { font-size: .8125rem; color: #64748b; margin: 1rem 0 0; }

/* Botones flotantes — visibles en todas las páginas */
.float-btns { position: fixed; bottom: 1.25rem; right: 1.25rem; display: flex; flex-direction: column; gap: .5rem; z-index: 9999; }
.float-btns a { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; color: #fff; text-decoration: none; font-weight: 700; box-shadow: 0 4px 20px rgba(0,0,0,.25); transition: transform .2s, box-shadow .2s; }
.float-btns a:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(0,0,0,.3); color: #fff; }
.float-btns a.float-btns--call { background: linear-gradient(135deg, var(--mg-primary), #f97316); }
.float-btns a.float-btns--wa { background: #25d366; }
.float-btns a span { font-size: 1.5rem; }
@media (min-width: 768px) { .float-btns { bottom: 1.5rem; right: 1.5rem; } .float-btns a { width: 58px; height: 58px; } }

/* Zonas (links en landings) */
.zones { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.5rem; }
.zone-tag { display: inline-block; padding: .5rem 1rem; background: #f1f5f9; color: var(--mg-navy); font-weight: 600; font-size: .9375rem; border-radius: 12px; border: 1px solid #e2e8f0; text-decoration: none; transition: border-color .2s, background .2s; }
.zone-tag:hover { border-color: var(--mg-primary); background: #fff7ed; color: var(--mg-navy); }

/* Página área clientes (contenido centrado) */
.page-area-clientes main { padding-bottom: 4rem; }
.page-area-clientes .app-section { max-width: 720px; margin-left: auto; margin-right: auto; }
