/*
Theme Name: Morita
Theme URI: https://morita.com.mx
Author: Morita
Description: Sitio promocional de Morita adaptado para WordPress.
Version: 1.0.0
Text Domain: morita
*/
:root {
  --morita-red: #B11217;
  --morita-dark: #1E1E1E;
  --morita-gray: #6B6B6B;
  --morita-light: #F5F5F5;
  --morita-white: #FFFFFF;
  --morita-shadow: rgba(17, 17, 17, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Archivo", sans-serif;
  color: var(--morita-dark);
  background: radial-gradient(circle at 15% 10%, rgba(177, 18, 23, 0.08), transparent 45%),
    radial-gradient(circle at 90% 20%, rgba(30, 30, 30, 0.08), transparent 40%),
    linear-gradient(180deg, #ffffff 0%, #fbfbfb 60%, #f4f4f4 100%);
  min-height: 100vh;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(177, 18, 23, 0.08);
  color: var(--morita-red);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(30, 30, 30, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 20px;
}

.brand-mark {
  width: 96px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--morita-gray);
}

nav a:hover {
  color: var(--morita-red);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--morita-red);
  color: var(--morita-white);
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 12px 24px rgba(177, 18, 23, 0.25);
  transition: transform 0.2s ease;
}

.cta:hover {
  transform: translateY(-2px);
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 18px 38px rgba(37, 211, 102, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 42px rgba(37, 211, 102, 0.38);
}

.whatsapp-float svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: currentColor;
}

.hero {
  padding: 60px 0 30px;
}

.hero-banner {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 520px;
  display: block;
  padding: 0;
  background: #0f0f0f;
  box-shadow: 0 24px 60px var(--morita-shadow);
  cursor: default;
}

.banner-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.banner-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.banner-slider img.is-active {
  opacity: 1;
}

.hero-banner-content {
  display: none;
}

.banner-controls {
  position: absolute;
  inset: auto 20px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 2;
}

.banner-controls button {
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(15, 15, 15, 0.4);
  color: var(--morita-white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.05;
  margin: 18px 0;
}

.hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.ghost {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-weight: 600;
  font-size: 14px;
  color: var(--morita-white);
  background: rgba(255, 255, 255, 0.08);
}

section {
  padding: 60px 0;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 32px;
}

.section-title h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(26px, 3vw, 36px);
}

.section-title p {
  color: var(--morita-gray);
  max-width: 420px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.service-card {
  padding: 22px;
  border-radius: 20px;
  background: var(--morita-white);
  border: 1px solid rgba(30, 30, 30, 0.08);
  box-shadow: 0 14px 28px var(--morita-shadow);
}

.service-card h3 {
  margin: 14px 0 10px;
  font-size: 18px;
}

.service-card p {
  color: var(--morita-gray);
  line-height: 1.6;
  font-size: 14px;
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(177, 18, 23, 0.1);
  display: grid;
  place-items: center;
  color: var(--morita-red);
  font-weight: 700;
}

.branches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.branches-hero {
  margin-bottom: 28px;
}

.branches-hero-copy {
  background: var(--morita-white);
  border-radius: 32px;
  padding: 34px;
  border: 1px solid rgba(30, 30, 30, 0.08);
  box-shadow: 0 24px 60px var(--morita-shadow);
  display: grid;
  background:
    radial-gradient(circle at top right, rgba(177, 18, 23, 0.1), transparent 32%),
    linear-gradient(145deg, rgba(177, 18, 23, 0.06), rgba(255, 255, 255, 0) 40%);
  gap: 16px;
}

.branches-hero-copy h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.05;
}

.branches-hero-copy p {
  color: var(--morita-gray);
  max-width: 700px;
  line-height: 1.6;
}

.branch-kicker {
  color: var(--morita-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.branches-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding-bottom: 2px;
  border-bottom: 2px solid rgba(177, 18, 23, 0.22);
  color: var(--morita-red);
  font-weight: 700;
}

.branches-carousel-head h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
}

.branches-carousel-head p {
  color: var(--morita-gray);
  line-height: 1.6;
  font-size: 14px;
}

.branches-carousel-shell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.86));
  border: 1px solid rgba(30, 30, 30, 0.08);
  border-radius: 30px;
  box-shadow: 0 24px 60px var(--morita-shadow);
  padding: 28px 22px 22px;
  display: grid;
  gap: 22px;
}

.branches-carousel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 10px;
}

.branches-carousel-controls {
  display: flex;
  gap: 10px;
}

.branches-carousel-button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--morita-dark);
  color: var(--morita-white);
  cursor: pointer;
  font-size: 20px;
  box-shadow: 0 12px 24px rgba(30, 30, 30, 0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}

.branches-carousel-button:hover {
  transform: translateY(-2px);
  background: var(--morita-red);
}

.branches-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 280px);
  gap: 18px;
  overflow-x: auto;
  padding: 4px 10px 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(177, 18, 23, 0.45) transparent;
}

.branches-carousel::-webkit-scrollbar {
  height: 10px;
}

.branches-carousel::-webkit-scrollbar-thumb {
  background: rgba(177, 18, 23, 0.35);
  border-radius: 999px;
}

.branch-card {
  padding: 20px;
  border-radius: 22px;
  background: var(--morita-white);
  border: 1px solid rgba(30, 30, 30, 0.1);
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0.08);
  display: grid;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  scroll-snap-align: start;
  min-height: 190px;
}

.branch-card:hover {
  transform: translateY(-4px);
  border-color: rgba(177, 18, 23, 0.4);
  box-shadow: 0 18px 36px rgba(177, 18, 23, 0.12);
}

.branch-card strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
}

.branch-card-label {
  color: var(--morita-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.branch-tag {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--morita-gray);
  font-size: 13px;
}

.map-frame {
  border-radius: 20px;
  background: linear-gradient(130deg, rgba(30, 30, 30, 0.08), rgba(177, 18, 23, 0.1));
  border: 1px dashed rgba(30, 30, 30, 0.2);
  padding: 28px;
  min-height: 220px;
  position: relative;
}

.map-frame span {
  position: absolute;
  background: var(--morita-red);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(177, 18, 23, 0.2);
}

.map-frame span:nth-child(1) {
  top: 30%;
  left: 20%;
}

.map-frame span:nth-child(2) {
  top: 55%;
  left: 40%;
}

.map-frame span:nth-child(3) {
  top: 35%;
  left: 70%;
}

.map-frame span:nth-child(4) {
  top: 70%;
  left: 65%;
}

.cta-section {
  background: var(--morita-dark);
  color: var(--morita-white);
  border-radius: 32px;
  padding: 48px;
  display: grid;
  gap: 20px;
  align-items: center;
}

.cta-section h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(26px, 3vw, 36px);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.cta-section .cta {
  width: fit-content;
  background: var(--morita-red);
}

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.contact-card {
  padding: 22px;
  border-radius: 18px;
  background: var(--morita-white);
  border: 1px solid rgba(30, 30, 30, 0.08);
  box-shadow: 0 12px 24px var(--morita-shadow);
}

form {
  display: grid;
  gap: 12px;
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(30, 30, 30, 0.2);
  font-family: inherit;
  font-size: 14px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

footer {
  padding: 36px 0 44px;
  color: var(--morita-gray);
  font-size: 13px;
}

.footer-content {
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding-top: 22px;
  border-top: 1px solid rgba(30, 30, 30, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--morita-dark);
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--morita-red);
}

.legal-page {
  padding: 56px 0 72px;
  display: grid;
  gap: 28px;
}

.legal-hero,
.legal-card {
  background: var(--morita-white);
  border: 1px solid rgba(30, 30, 30, 0.08);
  border-radius: 30px;
  box-shadow: 0 24px 60px var(--morita-shadow);
}

.legal-hero {
  padding: 34px;
  background:
    radial-gradient(circle at top right, rgba(177, 18, 23, 0.12), transparent 30%),
    linear-gradient(145deg, rgba(177, 18, 23, 0.06), rgba(255, 255, 255, 0) 42%),
    var(--morita-white);
  display: grid;
  gap: 14px;
}

.legal-hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.04;
  max-width: 820px;
}

.legal-hero p,
.legal-card p,
.legal-card li {
  color: var(--morita-gray);
  line-height: 1.7;
}

.legal-card {
  padding: 34px;
  display: grid;
  gap: 22px;
}

.legal-section {
  display: grid;
  gap: 12px;
}

.legal-section h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
}

.legal-section h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
}

.legal-list {
  display: grid;
  gap: 10px;
  padding-left: 18px;
}

.legal-meta {
  display: grid;
  gap: 8px;
}

.legal-inline-label {
  color: var(--morita-dark);
  font-weight: 700;
}

.legal-url {
  color: var(--morita-red);
  font-weight: 700;
  word-break: break-word;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 880px) {
  nav {
    display: none;
  }

  .hero {
    padding-top: 40px;
  }

  .hero-banner {
    min-height: 360px;
    padding: 0;
  }

  .section-title {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-title p {
    max-width: none;
  }

  .cta-section {
    padding: 32px;
  }

  .branches-hero {
    margin-bottom: 22px;
  }

  .branches-carousel-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .hero-banner {
    min-height: 320px;
    padding: 0;
  }

  .hero-banner-content {
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions a {
    width: 100%;
    justify-content: center;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    padding: 12px 14px;
  }

  .whatsapp-float span {
    display: none;
  }

  .branches-hero-copy,
  .branches-carousel-shell {
    padding: 18px;
    border-radius: 22px;
  }

  .branches-carousel {
    grid-auto-columns: minmax(84vw, 84vw);
  }

  .footer-content,
  .footer-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-hero,
  .legal-card {
    padding: 20px;
    border-radius: 22px;
  }
}

