/*
Theme Name: Mudanzas Sito
Theme URI: https://www.mudanzassito.com/
Author: Mudanzas Sito
Description: Tema a medida para la migración de Joomla a WordPress de Mudanzas Sito.
Version: 1.0.0
Text Domain: mudanzas-sito
*/

:root {
  --orange: #f36b25;
  --orange-dark: #d95112;
  --black: #080808;
  --ink: #252525;
  --muted: #666;
  --paper: #fff;
  --soft: #f3f3f3;
  --line: #dedede;
  --container: 1170px;
  --radius: 5px;
  --shadow: 0 12px 35px rgba(0, 0, 0, .1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--orange-dark); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover, a:focus-visible { color: var(--black); }
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .65em;
  color: #1e1e1e;
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.45rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); }
h4 { font-size: 1.25rem; }
p { margin: 0 0 1.15em; }
ul, ol { padding-left: 1.35em; }
table { width: 100%; border-collapse: collapse; }
td, th { padding: .5rem; vertical-align: top; }
input, select, textarea, button { font: inherit; }
button, .button, .sppb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .7rem 1.2rem;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
button:hover, .button:hover, .sppb-btn:hover { background: var(--black); color: #fff; transform: translateY(-1px); }
:focus-visible { outline: 3px solid rgba(243, 107, 37, .45); outline-offset: 3px; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 10000; top: 10px; left: 10px; width: auto; height: auto; clip: auto; padding: .65rem 1rem; background: #fff; }

.site-topbar { background: var(--black); color: #fff; font-size: .92rem; }
.topbar-inner { display: flex; justify-content: flex-end; align-items: center; min-height: 40px; gap: 1.5rem; }
.topbar-inner a { color: #fff; text-decoration: none; }
.topbar-inner a:hover { color: var(--orange); }
.contact-icon { color: var(--orange); margin-right: .38rem; }
.site-header { position: sticky; z-index: 100; top: 0; background: var(--orange); box-shadow: 0 3px 12px rgba(0,0,0,.13); }
.header-inner { display: flex; align-items: stretch; min-height: 68px; }
.brand { display: flex; align-items: center; align-self: stretch; width: 160px; margin-right: 2rem; padding: 7px 14px; background: #fff; }
.brand img { width: 132px; }
.site-nav { display: flex; flex: 1; align-items: stretch; }
.site-nav > ul { display: flex; align-items: stretch; justify-content: flex-end; width: 100%; margin: 0; padding: 0; list-style: none; }
.site-nav li { position: relative; display: flex; }
.site-nav a { display: flex; align-items: center; padding: 0 .8rem; color: #fff; font-size: .82rem; font-weight: 500; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.site-nav > ul > li.current > a, .site-nav > ul > li > a:hover { background: rgba(0,0,0,.12); }
.site-nav .sub-menu { position: absolute; top: 100%; left: 0; display: none; width: 260px; margin: 0; padding: .4rem 0; list-style: none; background: #fff; box-shadow: var(--shadow); }
.site-nav li:hover .sub-menu, .site-nav li:focus-within .sub-menu { display: block; }
.site-nav .sub-menu li { display: block; }
.site-nav .sub-menu a { padding: .68rem 1rem; color: var(--ink); font-size: .88rem; text-transform: none; white-space: normal; }
.site-nav .sub-menu a:hover { background: var(--soft); color: var(--orange-dark); }
.menu-toggle { display: none; margin-left: auto; padding: .4rem .7rem; background: transparent; font-size: 1.5rem; }

.breadcrumbs { background: #fff; border-bottom: 1px solid var(--line); font-size: .9rem; }
.breadcrumbs .container { display: flex; align-items: center; min-height: 46px; gap: .45rem; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs span:last-child { color: var(--orange-dark); }
.page-header { padding: clamp(2rem, 5vw, 4rem) 0 1.5rem; text-align: center; }
.page-header h1 { margin: 0; color: var(--orange); }
.site-main { min-height: 55vh; }
.content-card { margin-bottom: 3.5rem; background: #fff; box-shadow: 0 8px 28px rgba(0,0,0,.06); }

.hero { position: relative; overflow: hidden; background: #555; }
.hero-track { position: relative; height: 350px; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide > img:first-child { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay { position: absolute; left: 50%; top: 24px; width: min(70%, 1045px); transform: translateX(-50%); }
.hero-overlay.hero-overlay-small { top: 50%; width: min(33%, 439px); transform: translate(-50%, -50%); }
.hero-caption { position: absolute; left: 50%; bottom: 28px; width: min(90%, 900px); transform: translateX(-50%); color: #fff; text-align: center; text-shadow: 0 2px 6px #000; }
.hero-caption strong { display: block; font-size: clamp(1.4rem, 3vw, 2.6rem); }
.slider-control { position: absolute; z-index: 5; top: 50%; width: 44px; height: 44px; min-height: 44px; padding: 0; background: rgba(0,0,0,.42); font-size: 2rem; transform: translateY(-50%); }
.slider-control:hover { transform: translateY(-50%); }
.slider-prev { left: 18px; }
.slider-next { right: 18px; }
.hero-dots { position: absolute; z-index: 5; right: 0; bottom: 12px; left: 0; display: flex; justify-content: center; gap: .5rem; }
.hero-dot { width: 10px; height: 10px; min-height: 10px; padding: 0; border: 1px solid #fff; background: transparent; }
.hero-dot.is-active { background: #fff; }

.google-rating { padding: 40px 0 20px; background: #fff; }
.rating-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; max-width: 720px; margin: auto; gap: 3rem; }
.rating-grid img { max-height: 54px; margin: auto; }
.rating-link { margin-top: .4rem; font-size: .82rem; text-align: center; }
.testimonials { padding: 20px 0 65px; background: #fff; }
.quote-card { max-width: 980px; min-height: 175px; margin: auto; padding: 2.2rem 4rem; background: var(--soft); text-align: center; }
.quote-card blockquote { display: none; margin: 0; font-size: 1.1rem; }
.quote-card blockquote.is-active { display: block; }
.quote-card blockquote::before { content: "\201C"; display: block; height: .6em; color: var(--orange); font: 4rem/1 Georgia, serif; }
.quote-card cite { display: block; margin-top: .6rem; color: var(--orange-dark); font-style: normal; font-weight: 700; text-transform: uppercase; }
.services-grid, .values-grid, .cta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.services-section { padding: 28px 0 42px; background: #fff; }
.service-card { padding: 1.3rem; border: 1px solid var(--line); background: #fff; text-align: center; transition: transform .2s ease, box-shadow .2s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card h2 { margin-bottom: 1rem; font-size: 1.1rem; font-weight: 700; }
.service-card img { width: 70px; margin: 0 auto 1rem; }
.service-card .button { padding: .55rem .9rem; font-size: .85rem; }
.values-section { padding: 42px 0 55px; background: var(--soft); }
.section-title { color: var(--orange); text-align: center; }
.value-card img { width: 74px; margin: 0 auto 1rem; }
.value-card h3 { font-size: 1.05rem; font-weight: 700; text-align: center; }
.value-card p { font-size: 1rem; text-align: justify; }
.cta-section { padding: 28px 0; background: #fff; }
.cta-grid .button { width: 100%; }

.legacy-content { overflow: hidden; background: #fff; }
.legacy-content > section { padding: 34px 0; }
.legacy-content > section:nth-child(even) { background: var(--soft); }
.sppb-row-container, .sppb-container-inner { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.sppb-row { display: flex; flex-wrap: wrap; margin-right: -15px; margin-left: -15px; }
[class*="sppb-col-"] { width: 100%; padding-right: 15px; padding-left: 15px; }
.sppb-col-md-12 { width: 100%; }
.sppb-col-md-9 { width: 75%; }
.sppb-col-md-8 { width: 66.6667%; }
.sppb-col-md-7 { width: 58.3333%; }
.sppb-col-md-6 { width: 50%; }
.sppb-col-md-5 { width: 41.6667%; }
.sppb-col-md-4 { width: 33.3333%; }
.sppb-col-md-3 { width: 25%; }
.sppb-col-md-2 { width: 16.6667%; }
.sppb-text-center { text-align: center; }
.sppb-text-left { text-align: left; }
.sppb-img-responsive { margin: auto; }
.sppb-empty-space { min-height: 12px; }
.legacy-content .sppb-addon-title { color: var(--orange); }
.legacy-content img[src$=".gif"] { width: 100%; }
.legacy-content iframe { max-width: 100%; }
.legacy-content .sppb-addon-container { height: 100%; }
.legacy-content span[style*="font-size: 14pt"], .legacy-content span[style*="font-size: 15pt"] { font-size: 1rem !important; }

.blog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 4rem; gap: 1.5rem; }
.post-card { display: flex; flex-direction: column; padding: 1.7rem; border-top: 4px solid var(--orange); background: #fff; box-shadow: 0 8px 26px rgba(0,0,0,.06); }
.post-card h2 { font-size: 1.4rem; }
.post-card p { flex: 1; }
.post-card .read-more { font-weight: 700; }
.article-shell { width: min(100% - 40px, 860px); margin: 0 auto 4rem; padding: clamp(1.4rem, 4vw, 3.2rem); background: #fff; box-shadow: 0 8px 28px rgba(0,0,0,.06); }
.article-shell .article-content > p:first-child { font-size: 1.1rem; }

.lead-form-section { padding: 0 0 4rem; }
.lead-form { padding: clamp(1.25rem, 4vw, 2.4rem); border-top: 5px solid var(--orange); background: #fff; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem 1.4rem; }
.field-full { grid-column: 1 / -1; }
.lead-form label { display: block; margin-bottom: .25rem; font-weight: 600; }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%; min-height: 48px; padding: .65rem .8rem; border: 1px solid #bbb; border-radius: var(--radius); background: #fff;
}
.lead-form textarea { min-height: 150px; resize: vertical; }
.checkbox-field { display: flex; align-items: flex-start; gap: .65rem; }
.checkbox-field input { width: auto; min-height: auto; margin-top: .42rem; }
.checkbox-field label { font-weight: 300; }
.honeypot { position: absolute; left: -9999px; }
.form-notice { margin-bottom: 1.2rem; padding: .85rem 1rem; border-left: 4px solid #2e8b57; background: #edf9f1; }
.form-notice.error { border-color: #a11; background: #fff0f0; }

.site-footer { background: var(--black); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.15fr .8fr 1.35fr 1.5fr; padding: 32px 0; gap: 2rem; }
.footer-grid h2 { color: #fff; font-size: 1rem; font-weight: 700; text-transform: uppercase; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links a { color: #fff; font-size: .95rem; text-decoration: none; }
.footer-links a:hover { color: var(--orange); }
.footer-contact p { margin: 0 0 .6rem; }
.footer-contact a { color: #fff; }
.social-links { display: flex; gap: .55rem; margin-bottom: 1.1rem; }
.social-links img { width: 34px; height: 34px; }
.footer-badges img { max-height: 54px; margin-bottom: 1rem; }
.footer-bottom { padding: 14px 0; border-top: 1px solid #333; color: #aaa; font-size: .82rem; text-align: center; }
.cookie-banner { position: fixed; z-index: 500; right: 20px; bottom: 20px; left: 20px; display: none; max-width: 780px; margin: auto; padding: 1rem 1.2rem; background: #fff; box-shadow: 0 8px 40px rgba(0,0,0,.25); }
.cookie-banner.is-visible { display: flex; align-items: center; gap: 1rem; }
.cookie-banner p { flex: 1; margin: 0; font-size: .9rem; }
.cookie-banner button { flex: 0 0 auto; }

@media (max-width: 1120px) {
  .container { width: min(100% - 28px, var(--container)); }
  .site-nav a { padding: 0 .5rem; font-size: .74rem; }
  .brand { margin-right: .5rem; }
}

@media (max-width: 900px) {
  .topbar-inner { justify-content: center; }
  .topbar-time { display: none; }
  .header-inner { align-items: center; }
  .menu-toggle { display: inline-flex; }
  .site-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; background: var(--black); }
  .site-nav.is-open { display: block; }
  .site-nav > ul { display: block; padding: .5rem 0; }
  .site-nav li { display: block; }
  .site-nav a { min-height: 44px; padding: .5rem 1.2rem; }
  .site-nav .sub-menu { position: static; display: block; width: 100%; padding-left: 1rem; background: #181818; box-shadow: none; }
  .site-nav .sub-menu a { color: #eee; }
  .hero-track { height: min(350px, 44vw); min-height: 230px; }
  .services-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  body { font-size: 17px; }
  .topbar-email { display: none; }
  .brand { width: 145px; }
  .rating-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .quote-card { padding: 1.7rem; }
  .services-grid, .values-grid, .cta-grid, .blog-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  [class*="sppb-col-md-"] { width: 100%; }
  .legacy-content > section { padding: 25px 0; }
  .hero-overlay { top: 16px; width: 88%; }
  .hero-overlay.hero-overlay-small { width: 52%; }
  .slider-control { display: none; }
  .cookie-banner.is-visible { display: block; }
  .cookie-banner button { margin-top: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
