/*
Theme Name: HostingRD
Theme URI: https://hostingrd.com
Author: HostingRD
Description: Tema comercial para HostingRD con planes cPanel, Plesk y búsqueda de dominios integrada con WHMCS.
Version: 1.1.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: hostingrd
*/

:root {
  --hrd-red: #ef3340;
  --hrd-red-dark: #c51f2d;
  --hrd-coral: #ff5a5f;
  --hrd-ink: #17212b;
  --hrd-slate: #4c5967;
  --hrd-cloud: #f4f7fa;
  --hrd-line: #dce3ea;
  --hrd-white: #ffffff;
  --hrd-green: #16a36a;
  --hrd-radius: 22px;
  --hrd-shadow: 0 18px 50px rgba(23, 33, 43, .11);
  --hrd-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--hrd-ink);
  background: var(--hrd-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input { font: inherit; }
.container { width: min(calc(100% - 40px), var(--hrd-width)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; padding: 12px 18px; background: #fff; color: #111; border-radius: 8px; }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(220, 227, 234, .8);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
}
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 850; font-size: 1.25rem; letter-spacing: -.03em; }
.brand-mark { position: relative; width: 38px; height: 38px; transform: rotate(30deg) skewY(-9deg); border-radius: 9px; background: linear-gradient(145deg, var(--hrd-coral), var(--hrd-red)); box-shadow: -7px 8px 0 #ff8a53, -13px 15px 0 #3f4c58; }
.brand span { color: var(--hrd-red); }
.brand-image { flex: 0 0 auto; line-height: 0; }
.brand-logo { display: block; width: 150px; height: auto; }
.site-nav { display: flex; align-items: center; font-weight: 650; color: #354250; }
.site-nav-list { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.site-nav a:hover { color: var(--hrd-red); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.menu-toggle { display: none; border: 0; background: transparent; font-size: 1.5rem; }

.btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; padding: 0 21px; border: 1px solid transparent; border-radius: 12px; font-weight: 780; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--hrd-red); color: #fff; box-shadow: 0 10px 24px rgba(239, 51, 64, .28); }
.btn-primary:hover { background: var(--hrd-red-dark); }
.btn-dark { background: var(--hrd-ink); color: #fff; }
.btn-outline { border-color: var(--hrd-line); background: #fff; color: var(--hrd-ink); }
.btn-light { background: #fff; color: var(--hrd-red-dark); }
.btn-disabled { pointer-events: none; background: #e6ebf0; color: #7e8994; box-shadow: none; }

.hero { position: relative; overflow: hidden; padding: 105px 0 90px; background: radial-gradient(circle at 82% 18%, rgba(255, 90, 95, .2), transparent 26%), linear-gradient(140deg, #fff 0%, #f8fafc 60%, #fff1f1 100%); }
.hero::before { content: ""; position: absolute; inset: auto -180px -280px auto; width: 660px; height: 660px; border: 90px solid rgba(239, 51, 64, .055); border-radius: 50%; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 70px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--hrd-red-dark); font-size: .82rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 24px; height: 3px; border-radius: 4px; background: var(--hrd-red); }
h1, h2, h3 { margin-top: 0; line-height: 1.1; letter-spacing: -.04em; }
.hero h1 { max-width: 760px; margin-bottom: 22px; font-size: clamp(2.75rem, 6vw, 5.3rem); }
.hero h1 span { color: var(--hrd-red); }
.hero-copy { max-width: 650px; margin: 0 0 30px; color: var(--hrd-slate); font-size: 1.16rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px 26px; margin-top: 34px; color: #4b5865; font-size: .93rem; font-weight: 650; }
.trust-row span::before { content: "✓"; display: inline-grid; width: 22px; height: 22px; margin-right: 7px; place-items: center; border-radius: 50%; background: #dff8ed; color: var(--hrd-green); font-weight: 900; }

.server-visual { position: relative; min-height: 430px; }
.server-card { position: absolute; inset: 25px 20px 25px 45px; overflow: hidden; padding: 34px; border: 1px solid rgba(255,255,255,.12); border-radius: 28px; background: linear-gradient(145deg, #24313e, #101820); color: #fff; box-shadow: 0 35px 80px rgba(23, 33, 43, .28); }
.server-card::after { content: ""; position: absolute; inset: -80px -120px auto auto; width: 300px; height: 300px; border-radius: 50%; background: rgba(239,51,64,.2); filter: blur(4px); }
.server-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; color: #cbd5df; font-size: .88rem; }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status i { width: 9px; height: 9px; border-radius: 50%; background: #39d98a; box-shadow: 0 0 0 6px rgba(57,217,138,.12); }
.rack { display: grid; gap: 13px; }
.rack-unit { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; min-height: 74px; padding: 14px 18px; border: 1px solid rgba(255,255,255,.08); border-radius: 15px; background: rgba(255,255,255,.055); }
.rack-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 11px; background: rgba(239,51,64,.2); color: #ff7a83; font-size: 1.2rem; }
.rack-unit strong { display: block; font-size: .98rem; }
.rack-unit small { color: #99a8b7; }
.lights { display: flex; gap: 5px; }
.lights i { width: 6px; height: 6px; border-radius: 50%; background: #32d583; }
.float-card { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid #eef1f4; border-radius: 16px; background: #fff; box-shadow: var(--hrd-shadow); font-weight: 800; }
.float-card small { display: block; color: var(--hrd-slate); font-size: .72rem; font-weight: 650; }
.float-card.one { left: 0; bottom: 30px; }
.float-card.two { right: 0; top: 0; }
.float-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; background: #fff0f1; color: var(--hrd-red); }

.domain-section { position: relative; z-index: 3; margin-top: -1px; padding: 38px 0; background: var(--hrd-red); color: #fff; }
.domain-grid { display: grid; grid-template-columns: .72fr 1.28fr; align-items: center; gap: 40px; }
.domain-section h2 { margin-bottom: 8px; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.domain-section p { margin: 0; color: rgba(255,255,255,.82); }
.domain-form { display: flex; gap: 10px; padding: 8px; border-radius: 16px; background: #fff; box-shadow: 0 16px 38px rgba(120, 12, 22, .22); }
.domain-form input[type="text"] { flex: 1; min-width: 0; padding: 0 16px; border: 0; outline: 0; color: var(--hrd-ink); }
.domain-prices { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 13px; font-size: .82rem; color: rgba(255,255,255,.85); }

.section { padding: 94px 0; }
.section-muted { background: var(--hrd-cloud); }
.section-heading { max-width: 720px; margin: 0 auto 42px; text-align: center; }
.section-heading h2 { margin-bottom: 15px; font-size: clamp(2.1rem, 4vw, 3.4rem); }
.section-heading p { margin: 0; color: var(--hrd-slate); font-size: 1.05rem; }
.plan-switch { display: flex; width: fit-content; margin: 0 auto 42px; padding: 5px; border: 1px solid var(--hrd-line); border-radius: 14px; background: #fff; }
.plan-switch button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 10px; background: transparent; color: var(--hrd-slate); font-weight: 800; cursor: pointer; }
.plan-switch button.active { background: var(--hrd-ink); color: #fff; }
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; padding: 31px; border: 1px solid var(--hrd-line); border-radius: var(--hrd-radius); background: #fff; box-shadow: 0 10px 35px rgba(23,33,43,.05); transition: transform .2s ease, box-shadow .2s ease; }
.plan-card:hover { transform: translateY(-5px); box-shadow: var(--hrd-shadow); }
.plan-card.featured { border: 2px solid var(--hrd-red); box-shadow: 0 22px 55px rgba(239,51,64,.13); }
.plan-badge { position: absolute; top: 18px; right: 18px; padding: 6px 10px; border-radius: 99px; background: #fff0f1; color: var(--hrd-red-dark); font-size: .7rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.plan-kicker { margin-bottom: 10px; color: var(--hrd-red-dark); font-size: .75rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.plan-card h3 { margin-bottom: 12px; font-size: 1.55rem; }
.plan-intro { min-height: 52px; margin: 0 0 22px; color: var(--hrd-slate); font-size: .92rem; }
.price { display: flex; align-items: flex-end; gap: 6px; margin-bottom: 23px; }
.price strong { font-size: 2.7rem; line-height: 1; letter-spacing: -.06em; }
.price span { padding-bottom: 4px; color: var(--hrd-slate); font-size: .86rem; }
.features { display: grid; flex: 1; gap: 11px; margin: 0 0 27px; padding: 0; list-style: none; }
.features li { position: relative; padding-left: 27px; color: #354250; font-size: .92rem; }
.features li::before { content: "✓"; position: absolute; left: 0; top: 1px; color: var(--hrd-green); font-weight: 900; }
.plan-note { min-height: 35px; margin: 12px 0 0; color: #7a5260; font-size: .76rem; text-align: center; }
.plan-panel[hidden] { display: none; }

.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.benefit { padding: 25px; border: 1px solid var(--hrd-line); border-radius: 18px; background: #fff; }
.benefit-icon { display: grid; width: 48px; height: 48px; margin-bottom: 19px; place-items: center; border-radius: 13px; background: #fff0f1; color: var(--hrd-red); font-size: 1.35rem; font-weight: 900; }
.benefit h3 { margin-bottom: 9px; font-size: 1.08rem; letter-spacing: -.02em; }
.benefit p { margin: 0; color: var(--hrd-slate); font-size: .9rem; }

.cta { padding: 72px 0; background: linear-gradient(135deg, #131d26, #263746); color: #fff; }
.cta-wrap { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta h2 { max-width: 720px; margin-bottom: 10px; font-size: clamp(2rem, 4vw, 3.2rem); }
.cta p { margin: 0; color: #b9c5cf; }

.site-footer { padding: 64px 0 24px; background: #0f171e; color: #d8e0e7; }
.footer-grid { display: grid; grid-template-columns: 1.35fr repeat(3, .65fr); gap: 40px; }
.footer-brand p { max-width: 330px; color: #8fa0ae; font-size: .9rem; }
.footer-logo-wrap { display: inline-flex; padding: 10px 14px; border-radius: 14px; background: #fff; }
.footer-logo { display: block; width: 190px; height: auto; }
.footer-col h3 { margin-bottom: 16px; color: #fff; font-size: .86rem; letter-spacing: .05em; text-transform: uppercase; }
.footer-col a { display: block; margin: 9px 0; color: #9eacb8; font-size: .9rem; }
.footer-col a:hover { color: #fff; }
.footer-menu { margin: 0; padding: 0; list-style: none; }
.footer-menu li { margin: 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); color: #778895; font-size: .8rem; }

.home-extra-section:nth-of-type(even) { background: var(--hrd-cloud); }
.home-extra-section .entry-content { width: min(100%, 900px); margin-inline: auto; }
.home-extra-section .entry-content > :first-child { margin-top: 0; }

.page-hero { padding: 75px 0 55px; background: var(--hrd-cloud); }
.page-hero h1 { margin-bottom: 10px; font-size: clamp(2.3rem, 5vw, 4rem); }
.content-wrap { width: min(calc(100% - 40px), 880px); margin: 0 auto; padding: 65px 0 90px; }
.entry-content h2, .entry-content h3 { margin-top: 2em; }
.entry-content a { color: var(--hrd-red-dark); text-decoration: underline; }
.entry-content p, .entry-content li { color: #3f4b57; }

@media (max-width: 980px) {
  .site-nav { display: none; position: absolute; inset: 76px 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 22px; border-bottom: 1px solid var(--hrd-line); background: #fff; }
  .site-nav.open { display: flex; }
  .site-nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { padding: 12px 0; }
  .menu-toggle { display: block; }
  .nav-actions .btn-outline { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .server-visual { min-height: 390px; max-width: 600px; }
  .domain-grid { grid-template-columns: 1fr; gap: 22px; }
  .plans-grid { grid-template-columns: 1fr; max-width: 650px; margin-inline: auto; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--hrd-width)); }
  .nav-actions .btn-primary { display: none; }
  .brand-logo { width: 135px; }
  .hero { padding: 72px 0 60px; }
  .hero h1 { font-size: 2.75rem; }
  .server-visual { min-height: 330px; }
  .server-card { inset: 18px 0; padding: 22px; }
  .float-card { display: none; }
  .domain-form { flex-direction: column; }
  .domain-form input[type="text"] { min-height: 48px; }
  .section { padding: 70px 0; }
  .plan-switch { width: 100%; }
  .plan-switch button { flex: 1; padding-inline: 10px; }
  .benefits-grid, .footer-grid { grid-template-columns: 1fr; }
  .cta-wrap { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; }
}
