/*
Theme Name: Asesoría Náutica Huelva
Author: Asesoría Náutica Huelva
Description: Tema WordPress para asesoría y gestoría náutica en Huelva.
Version: 1.0.0
Text Domain: asesoria-nautica-huelva
*/

:root {
  --ink: #10233b;
  --muted: #607284;
  --navy: #0d2b52;
  --navy-soft: #183c68;
  --teal: #008497;
  --gold: #cca34a;
  --paper: #ffffff;
  --canvas: #eef5f7;
  --line: #d8e4ea;
  --shadow: 0 18px 48px rgba(13, 43, 82, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  background: var(--paper);
}
a { color: inherit; }
img { max-width: 100%; height: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.header-inner,
.section-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 96px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: 86px;
  height: 86px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  object-fit: contain;
  background: white;
  box-shadow: 0 10px 28px rgba(13, 43, 82, 0.1);
}

.brand-name {
  display: block;
  font-weight: 900;
}

.brand-subtitle {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.nav-menu {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.nav-menu a::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.button,
.anh-form button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  color: white;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  background: var(--navy);
}

.button.secondary {
  color: var(--navy);
  background: white;
}

.hero {
  min-height: calc(100vh - 96px);
  display: grid;
  align-items: end;
  padding: 70px 0 48px;
  color: white;
  background:
    linear-gradient(90deg, rgba(13, 43, 82, 0.96) 0%, rgba(13, 43, 82, 0.82) 42%, rgba(0, 132, 151, 0.18) 80%),
    var(--hero-image);
  background-position: center;
  background-size: cover;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: end;
}

.hero-content {
  width: min(690px, 100%);
}

.hero-logo {
  width: min(360px, 76vw);
  max-height: 360px;
  margin-bottom: 22px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  object-fit: contain;
  background: white;
  filter: drop-shadow(0 22px 38px rgba(0, 0, 0, 0.28));
}

.eyebrow {
  margin: 0 0 12px;
  color: #d9eef4;
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--teal);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 { font-size: clamp(2.4rem, 6vw, 5.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: 1.2rem; }

.hero-copy p {
  max-width: 610px;
  margin: 22px 0 30px;
  color: #f1fbfd;
  font-size: 1.12rem;
}

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

.hero-panel,
.contact-card,
.service-card,
.form-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 24px;
  color: var(--ink);
}

.hero-panel strong {
  display: block;
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 1.1rem;
}

.hero-panel ul,
.contact-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-panel li {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-weight: 700;
}

.hero-panel li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}

.billing-note {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.section {
  padding: 82px 0;
}

.section.alt {
  background: var(--canvas);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.75fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading p,
.rich-text {
  color: var(--muted);
}

.rich-text > *:first-child { margin-top: 0; }
.rich-text > *:last-child { margin-bottom: 0; }
.rich-text img { border-radius: 8px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  padding: 24px;
}

.service-image {
  display: block;
  width: 100%;
  height: 128px;
  margin-bottom: 18px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--canvas);
}

.service-card h3 {
  margin-bottom: 10px;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.75fr);
  gap: 28px;
  align-items: start;
}

.process-list {
  display: grid;
  gap: 12px;
}

.process-list div {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: white;
}

.process-list strong {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: white;
  background: var(--navy);
}

.forms-list {
  display: grid;
  gap: 14px;
}

.form-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 20px;
}

.contact-card {
  padding: 26px;
}

.contact-list {
  margin-top: 22px;
}

.contact-list strong {
  display: block;
}

.contact-list span,
.contact-list a {
  color: var(--muted);
}

.anh-form {
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.anh-form label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 800;
}

.anh-form input,
.anh-form select,
.anh-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  background: white;
}

.anh-form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-full {
  grid-column: 1 / -1;
}

.form-note {
  color: var(--muted);
}

.site-footer {
  padding: 34px 0;
  color: #dceaf0;
  background: var(--navy);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  background: white;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  padding: 7px;
}

.footer-brand .rich-text {
  color: #dceaf0;
}

.footer-brand p {
  margin: 0;
}

.footer-contact {
  text-align: right;
}

.footer-links {
  margin-top: 12px;
}

.footer-links a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 6px;
  color: white;
  font-weight: 800;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
}

.legal-page {
  max-width: 920px;
  margin: 0 auto;
}

.legal-content {
  margin-top: 28px;
}

.legal-content h2 {
  margin-top: 30px;
  font-size: 1.35rem;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

@media (max-width: 860px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-menu {
    overflow-x: auto;
    width: 100%;
    padding-bottom: 4px;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  .hero-grid,
  .section-heading,
  .services-grid,
  .about-grid,
  .contact-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-contact {
    text-align: left;
  }
}
