/* ============================================
   GARZA NOBLE Y ASOCIADOS — Static Site CSS
   Design: Navy authority + Gold accent
   Typefaces: Montserrat (display) + Inter (body)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* --- TOKENS --- */
:root {
  --navy:       #0D1B2A;
  --navy-mid:   #1A2F45;
  --gold:       #C9A84C;
  --gold-light: #E8C96A;
  --white:      #FFFFFF;
  --off-white:  #F5F4F0;
  --gray-light: #E8E6E0;
  --gray-text:  #6B6B6B;
  --text:       #1C1C1C;

  --font-display: 'Montserrat', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius:  6px;
  --radius-lg: 12px;
  --shadow:  0 2px 16px rgba(13,27,42,0.10);
  --shadow-lg: 0 8px 40px rgba(13,27,42,0.18);

  --max-width: 1160px;
  --nav-height: 72px;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- NAVIGATION --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--navy);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.nav__inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav__logo img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
}
.nav__logo span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__item {
  position: relative;
}

.nav__link {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}
.nav__link:hover,
.nav__link.active {
  color: var(--gold-light);
  background: rgba(255,255,255,0.07);
}

.nav__link .chevron {
  font-size: 0.6rem;
  opacity: 0.7;
}

/* Dropdown */
.nav__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--navy-mid);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius);
  min-width: 220px;
  padding: 0.5rem 0;
  box-shadow: var(--shadow-lg);
}

.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown {
  display: block;
}

.nav__dropdown a {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  padding: 0.6rem 1.1rem;
  letter-spacing: 0.04em;
  transition: color 0.15s, background 0.15s;
}
.nav__dropdown a:hover {
  color: var(--gold-light);
  background: rgba(255,255,255,0.05);
}

/* Sub-dropdown */
.nav__subdropdown {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background: var(--navy-mid);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius);
  min-width: 240px;
  padding: 0.5rem 0;
  box-shadow: var(--shadow-lg);
}
.nav__dropdown li:hover .nav__subdropdown {
  display: block;
}
.nav__dropdown li { position: relative; }

.nav__cta {
  background: var(--gold);
  color: var(--navy) !important;
  font-weight: 700 !important;
  border-radius: var(--radius);
  padding: 0.5rem 1.1rem !important;
  transition: background 0.2s !important;
}
.nav__cta:hover {
  background: var(--gold-light) !important;
  color: var(--navy) !important;
}

/* Hamburger */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-direction: column;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* --- HERO SLIDER --- */
.hero {
  margin-top: var(--nav-height);
  position: relative;
  overflow: hidden;
  background: var(--navy);
  height: 520px;
}

.hero__slides {
  display: flex;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero__slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,27,42,0.55) 0%, rgba(13,27,42,0.15) 100%);
}

.hero__controls {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 10;
}

.hero__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  padding: 0;
}
.hero__dot.active {
  background: var(--gold);
  border-color: var(--gold);
}

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  z-index: 10;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
}
.hero__arrow:hover { background: rgba(201,168,76,0.6); }
.hero__arrow--prev { left: 1.5rem; }
.hero__arrow--next { right: 1.5rem; }

/* --- PAGE HEADER (inner pages) --- */
.page-header {
  margin-top: var(--nav-height);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 3.5rem 2rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(201,168,76,0.06);
}
.page-header__eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.page-header__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
}
.page-header__subtitle {
  margin-top: 1rem;
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* --- LAYOUT UTILITIES --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 2rem;
}
.section--gray { background: var(--off-white); }
.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  margin-bottom: 0.5rem;
}
.section--navy .section__title { color: var(--white); }

.section__subtitle {
  font-size: 1rem;
  color: var(--gray-text);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}
.section--navy .section__subtitle { color: rgba(255,255,255,0.65); }

.gold-bar {
  width: 48px; height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 0.75rem auto 2.5rem;
}

/* --- GRID --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* --- CARDS (Marcas) --- */
.brand-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.brand-card__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.brand-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.brand-card__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.brand-card__desc {
  font-size: 0.9rem;
  color: var(--gray-text);
  line-height: 1.55;
  flex: 1;
}

.brand-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: gap 0.2s;
}
.brand-card__link:hover { gap: 0.65rem; }

/* --- INNER PAGE BRAND LAYOUT --- */
.brand-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand-hero__img {
  border-radius: var(--radius-lg);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.brand-hero__eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.brand-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.brand-hero__body {
  font-size: 1rem;
  color: var(--gray-text);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* --- SERVICES LIST --- */
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.service-item {
  background: var(--white);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}
.service-item__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.service-item__text {
  font-size: 0.88rem;
  color: var(--gray-text);
  line-height: 1.55;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn--gold {
  background: var(--gold);
  color: var(--navy);
}
.btn--gold:hover { background: var(--gold-light); }
.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* --- CONTACT / ZOHO PAGES --- */
.form-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
}
.form-page__intro {
  text-align: center;
  margin-bottom: 2rem;
}
.form-page__intro p {
  color: var(--gray-text);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
}
.zoho-wrapper {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--gray-light);
}
.zoho-wrapper iframe {
  border: none;
  width: 100%;
  display: block;
}

/* --- NOTICIAS --- */
.noticias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.noticia-cat {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.noticia-cat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.noticia-cat__icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.noticia-cat__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.noticia-cat__links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1rem;
}
.noticia-cat__links a {
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 600;
  transition: color 0.15s;
}
.noticia-cat__links a:hover { color: var(--navy); }

/* --- FOOTER --- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding: 3.5rem 2rem 2rem;
}
.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer__brand img {
  height: 48px;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}
.footer__brand p {
  font-size: 0.85rem;
  line-height: 1.65;
  max-width: 280px;
}
.footer__col h4 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer__col a {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.45rem;
  transition: color 0.15s;
}
.footer__col a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}
.footer__bottom a { color: var(--gold); }

/* --- COWORKING / SALA --- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}
.feature-row--reverse { direction: rtl; }
.feature-row--reverse > * { direction: ltr; }
.feature-row__img {
  border-radius: var(--radius-lg);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.feature-row__content {}
.feature-row__eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.feature-row__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.feature-row__body {
  font-size: 0.95rem;
  color: var(--gray-text);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .nav__menu { display: none; }
  .nav__toggle { display: flex; }
  .nav__menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--navy);
    padding: 1.5rem;
    gap: 0.25rem;
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
  }
  .nav__dropdown {
    position: static;
    background: rgba(255,255,255,0.05);
    border: none;
    box-shadow: none;
    padding: 0.25rem 0 0.25rem 1rem;
  }
  .nav__item:hover .nav__dropdown { display: none; }
  .nav__item.open .nav__dropdown { display: block; }
  .nav__subdropdown { display: none !important; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .brand-hero, .feature-row { grid-template-columns: 1fr; }
  .feature-row--reverse { direction: ltr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .hero { height: 340px; }
}

@media (max-width: 560px) {
  .section { padding: 3rem 1.25rem; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slides { transition: none; }
  * { transition-duration: 0.01ms !important; }
}
