/* HMART — ESTACIONES REPSOL · DISEÑO CORPORATIVO PREMIUM */

:root {
  --navy: #0A2540;
  --navy-2: #123A5C;
  --navy-deep: #061829;
  --gold: #C9A96A;
  --gold-soft: #D9BC85;
  --burgundy: #9E1B2E;
  --dark-text: #182430;
  --light-text: #ffffff;
  --muted-text: #66717D;
  --light-bg: #FAF9F6;
  --cream-bg: #F3F0E9;
  --dark-bg: #0A1220;
  --border-color: #E6E2DA;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow-sm: 0 2px 10px rgba(10, 37, 64, 0.06);
  --shadow-md: 0 10px 30px rgba(10, 37, 64, 0.10);
  --shadow-lg: 0 20px 50px rgba(10, 37, 64, 0.16);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--dark-text);
  background: var(--light-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(6, 24, 41, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201, 169, 106, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--light-text);
  transition: opacity var(--transition);
}

.logo:hover { opacity: 0.85; }

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  background: transparent;
  color: var(--gold);
  font-weight: 700;
  font-size: 1.5rem;
  font-family: var(--serif);
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.logo-text small {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  transition: color var(--transition);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav a:hover { color: var(--gold); }
.nav a:hover::after { width: 100%; }

.btn-nav {
  border: 1px solid var(--gold) !important;
  color: var(--gold) !important;
  padding: 10px 26px;
  border-radius: 2px;
  transition: all var(--transition);
}

.btn-nav::after { display: none; }

.btn-nav:hover {
  background: var(--gold) !important;
  color: var(--navy-deep) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== BOTONES ===== */
.btn {
  display: inline-block;
  padding: 15px 36px;
  border-radius: 2px;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 169, 106, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--light-text);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--navy);
  color: var(--light-text);
  border-color: var(--navy);
}

.btn-navy:hover {
  background: var(--navy-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10, 37, 64, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--light-text);
  transform: translateY(-2px);
}

.btn-small { padding: 11px 24px; font-size: 0.72rem; }

.text-link {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: color var(--transition);
}

.text-link:hover { color: var(--gold); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 140px 0 100px;
  color: var(--light-text);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(6, 24, 41, 0.82), rgba(10, 37, 64, 0.88)),
    url('../images/photos/hero-montequinto.jpg') center/cover no-repeat;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 119px, rgba(201, 169, 106, 0.04) 119px 120px),
    repeating-linear-gradient(0deg, transparent 0 119px, rgba(201, 169, 106, 0.04) 119px 120px);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  text-align: center;
}

.hero-overline {
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 28px;
  animation: fadeUp 0.9s ease-out;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5.2rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin-bottom: 28px;
  animation: fadeUp 0.9s ease-out 0.1s both;
}

.hero-rule {
  width: 72px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 28px;
  animation: fadeUp 0.9s ease-out 0.15s both;
}

.hero-subtitle {
  font-size: 1.08rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin: 0 auto 44px;
  line-height: 1.9;
  animation: fadeUp 0.9s ease-out 0.2s both;
}

.hero-cta {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 90px;
  animation: fadeUp 0.9s ease-out 0.3s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  animation: fadeUp 0.9s ease-out 0.4s both;
}

.stat {
  text-align: center;
  padding: 8px 52px;
  border-right: 1px solid rgba(201, 169, 106, 0.3);
}

.stat:last-child { border-right: none; }

.stat-value {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 6px;
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== SECCIONES ===== */
.section { padding: 130px 0; }

.section-light { background: var(--light-bg); }
.section-cream { background: var(--cream-bg); }
.section-dark { background: var(--dark-bg); }

.section-header {
  text-align: center;
  margin-bottom: 72px;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

.section-overline {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.section-overline::before,
.section-overline::after {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.section h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin-bottom: 22px;
  color: var(--navy);
}

.section-dark h2 { color: var(--light-text); }

.section-description {
  font-size: 1.02rem;
  font-weight: 300;
  color: var(--muted-text);
  line-height: 1.9;
}

.section-dark .section-description { color: rgba(255, 255, 255, 0.7); }

/* ===== EMPRESA ===== */
.company-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: white;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.company-info {
  padding: 44px 40px;
  border-right: 1px solid var(--border-color);
}

.company-info:last-child { border-right: none; }

.company-info h3 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.company-info p {
  color: var(--muted-text);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 10px;
}

.company-info strong { color: var(--dark-text); font-weight: 600; }

/* ===== GRUPO ===== */
.other-companies {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.company-article {
  background: white;
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all var(--transition);
}

.company-article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.company-header {
  height: 230px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(18, 58, 92, 0.85) 0%, transparent 70%),
    linear-gradient(160deg, var(--navy-deep), var(--navy));
  border-bottom: 1px solid var(--gold);
}

.cross-header {
  background:
    linear-gradient(rgba(6, 24, 41, 0.5), rgba(10, 37, 64, 0.55)),
    url('../images/photos/cross-estacion.jpg') center/cover no-repeat;
}

/* Foto institucional de la estación */
.station-photo {
  margin-top: 56px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.station-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.station-photo figcaption {
  padding: 16px 24px;
  background: white;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-text);
  border-top: 1px solid var(--gold);
  text-align: center;
}

/* Páginas legales */
.legal-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 150px 28px 90px;
}

.legal-main h1 {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 0.8rem;
  color: var(--muted-text);
  margin-bottom: 40px;
}

.legal-main h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--navy);
  margin: 40px 0 14px;
}

.legal-main p, .legal-main li {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--dark-text);
  line-height: 1.9;
  margin-bottom: 12px;
}

.legal-main ul { padding-left: 24px; margin-bottom: 16px; }

.legal-main a { color: var(--navy); font-weight: 500; }

.legal-main table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 26px;
  font-size: 0.9rem;
}

.legal-main th, .legal-main td {
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
}

.legal-main th {
  background: var(--cream-bg);
  font-weight: 600;
  color: var(--navy);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-logo {
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
  transition: transform var(--transition);
}

.company-article:hover .header-logo { transform: scale(1.06); }

.company-content {
  padding: 38px 36px;
  display: flex;
  flex-direction: column;
}

.company-kicker {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.company-content h3 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.company-subtitle {
  color: var(--muted-text);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.company-description {
  color: var(--muted-text);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 22px;
  flex: 1;
}

.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.service-tag {
  background: var(--light-bg);
  color: var(--navy);
  padding: 7px 14px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border-color);
}

.company-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== SERVICIOS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(201, 169, 106, 0.18);
  border: 1px solid rgba(201, 169, 106, 0.18);
}

.service-item {
  background: var(--dark-bg);
  padding: 48px 36px;
  text-align: left;
  transition: background var(--transition);
}

.service-item:hover { background: #101c30; }

.service-icon {
  color: var(--gold);
  margin-bottom: 22px;
}

.service-item h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--light-text);
  margin-bottom: 12px;
}

.service-item p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.8;
}

/* ===== CENTRO DE LAVADO ===== */
.wash-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.feature-card {
  background: white;
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.feature-visual {
  height: 170px;
  display: flex;
  align-items: flex-end;
  padding: 20px 26px;
  border-bottom: 1px solid var(--gold);
}

.wash-feature-1 { background: linear-gradient(rgba(6,24,41,0.35), rgba(6,24,41,0.45)), url('../images/photos/lavado-tunel.jpg') center/cover no-repeat; }
.wash-feature-2 { background: linear-gradient(rgba(6,24,41,0.35), rgba(6,24,41,0.45)), url('../images/photos/lavado-interior.jpg') center/cover no-repeat; }
.wash-feature-3 { background: linear-gradient(rgba(6,24,41,0.35), rgba(6,24,41,0.45)), url('../images/photos/lavado-coche.jpg') center/cover no-repeat; }

.feature-number {
  font-family: var(--serif);
  font-size: 3.2rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  opacity: 0.9;
}

.feature-card h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  padding: 26px 26px 10px;
}

.feature-card p {
  padding: 0 26px 30px;
  color: var(--muted-text);
  font-size: 0.93rem;
  font-weight: 300;
  line-height: 1.8;
}

/* ===== VALORES ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(201, 169, 106, 0.18);
  border: 1px solid rgba(201, 169, 106, 0.18);
}

.value-item {
  background: var(--dark-bg);
  padding: 42px 32px;
  transition: background var(--transition);
}

.value-item:hover { background: #101c30; }

.value-number {
  display: block;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 16px;
  line-height: 1;
}

.value-item h3 {
  font-family: var(--serif);
  color: var(--light-text);
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.value-item p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.8;
}

/* ===== REVIEWS ===== */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.review-card {
  background: white;
  border: 1px solid var(--border-color);
  border-top: 2px solid var(--gold);
  padding: 40px 36px;
  transition: all var(--transition);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.review-card h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 14px;
}

.review-card p {
  color: var(--muted-text);
  font-size: 0.93rem;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 22px;
}

/* ===== CONTACTO ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 169, 106, 0.25);
  padding: 40px 36px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--gold);
}

.contact-card.featured { border: 1px solid var(--gold); }

.contact-kicker {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.contact-card h3 {
  font-family: var(--serif);
  color: var(--light-text);
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.contact-info { flex: 1; }

.contact-info p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.93rem;
  font-weight: 300;
  line-height: 1.9;
  margin-bottom: 14px;
}

.contact-info strong { color: var(--gold); font-weight: 600; }

.contact-info a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  transition: opacity var(--transition);
}

.contact-info a:hover { opacity: 0.75; }

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 0 28px;
  border-top: 1px solid var(--gold);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.footer-brand strong {
  font-family: var(--serif);
  color: var(--light-text);
  font-weight: 600;
  font-size: 1.1rem;
}

.footer-brand p {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
}

.footer-desc {
  font-size: 0.88rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.8;
  max-width: 340px;
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.footer-col p {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
  margin-bottom: 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .wash-features, .review-grid, .contact-grid { grid-template-columns: 1fr; }
  .other-companies { grid-template-columns: 1fr; }
  .company-card { grid-template-columns: 1fr; }
  .company-info { border-right: none; border-bottom: 1px solid var(--border-color); }
  .company-info:last-child { border-bottom: none; }
  .footer-content { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 78px;
    right: 0;
    left: 0;
    background: var(--navy-deep);
    flex-direction: column;
    padding: 28px 24px;
    gap: 20px;
    display: none;
    z-index: 99;
    border-bottom: 1px solid var(--gold);
  }

  .nav.open { display: flex; }
  .nav-toggle { display: block; }

  .section { padding: 88px 0; }
  .services-grid, .values-grid { grid-template-columns: 1fr; }

  .hero-cta { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 320px; text-align: center; }

  .hero-stats { flex-direction: column; gap: 20px; }
  .stat { border-right: none; padding: 8px 0; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .hero { padding: 120px 0 70px; }
  .hero h1 { font-size: 2.5rem; }
  .hero-subtitle { font-size: 0.98rem; }
  .logo-text { font-size: 0.95rem; }
  .logo-text small { font-size: 0.55rem; }
  .section-header { margin-bottom: 48px; }
}
