/* ==========================================================================
   Alta Shipping Brokers S.L. — Hoja de estilos principal
   Réplica en HTML/CSS estático del tema "Hawell" (Drupal 7) original.
   ========================================================================== */

:root {
  --navy: #1e2343;          /* cabecera y submenús */
  --navy-2: #2a3058;        /* submenú móvil */
  --text: #464646;          /* texto general */
  --muted: #7e8082;         /* texto secundario / enlaces footer */
  --heading: #4b4e53;       /* títulos */
  --dark: #101010;          /* hover */
  --grey-light: #eeeeee;    /* fondos grises */
  --line: #a6a7a9;          /* subrayado inputs */
  --btn: #535961;           /* botón gris */
  --header-h: 94px;
  --header-h-small: 64px;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
  --font-head: 'Lato', Arial, Helvetica, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 25px;
  font-weight: 400;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; border: 0; display: block; }
a { color: var(--heading); text-decoration: none; transition: color .3s ease; }
a:hover { color: #97999c; }
h1, h2, h3, h4, h5, h6 { color: var(--heading); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; }
h1 { font-size: 32px; line-height: 45px; margin: 40px 0 32px; }
h2 { font-size: 28px; line-height: 32px; margin: 27px 0 18px; }
h4 { font-size: 18px; line-height: 25px; margin: 21px 0 19px; }
p { margin: 0 0 20px; }
address { font-style: normal; }
.bold { font-weight: 700; }
.container { width: 100%; max-width: 1170px; margin: 0 auto; padding: 0 15px; }
.grey-light-bg { background-color: var(--grey-light); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: #fff; padding: 8px 14px; }
.skip-link:focus { left: 10px; top: 10px; }
hr.sep { margin: 0; border: 0; border-top: 1px solid var(--grey-light); }

/* ---------- Cabecera ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: var(--navy);
  transition: height .4s ease, box-shadow .4s ease;
}
.header.is-scrolled { height: var(--header-h-small); box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.header-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 30px;
}
.logo img { height: 42px; width: auto; transition: height .4s ease; }
.header.is-scrolled .logo img { height: 36px; }

.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.main-nav li { position: relative; }
.main-nav > ul > li > a {
  display: block;
  margin: 0 12px; padding: 6px 3px 5px;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,.5);
  border-bottom: 2px solid transparent;
  transition: color .3s ease, border-color .6s ease;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li:hover > a,
.main-nav > ul > li:focus-within > a { color: #fff; }
.main-nav > ul > li > a.active { color: #fff; border-bottom-color: #fff; }
.main-nav .has-sub > a::after {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}
.main-nav .sub {
  list-style: none; margin: 0; padding: 10px 10px 10px 24px;
  position: absolute; top: 100%; left: 0; min-width: 200px;
  background: var(--navy);
  box-shadow: 0 4px 5px rgba(0,0,0,.2);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.main-nav .has-sub:hover > .sub,
.main-nav .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub a {
  display: block; padding: 9px 9px 9px 0;
  font-size: 12px; line-height: 24px; text-transform: uppercase;
  color: #d3d3d3; transition: all .2s ease;
}
.main-nav .sub a:hover, .main-nav .sub a.active { color: #fff; padding-left: 7px; }
.main-nav .lang a { margin: 0 6px; }

.menu-toggle {
  display: none;
  background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 26px; height: 2px; background: #fff; position: relative;
  transition: transform .3s ease, background .3s ease;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -8px; }
.menu-toggle span::after { top: 8px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Imagen de portada (slider) ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); }
.hero img { width: 100%; height: auto; aspect-ratio: 1920 / 979; object-fit: cover; }

/* ---------- Título de página ---------- */
.page-title-cont { padding: 80px 0 55px; }
.page-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.page-title {
  margin: 0 0 20px;
  font-family: var(--font-body);
  font-size: 24px; line-height: 30px; letter-spacing: 5px; font-weight: 400;
  text-transform: uppercase; color: var(--heading);
}
.page-sub-title {
  margin-bottom: 15px;
  font-size: 12px; line-height: 15px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--muted);
}
.breadcrumbs {
  margin-bottom: 15px; flex-shrink: 0;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase; text-align: right;
}
.breadcrumbs a, .breadcrumbs span { color: var(--muted); }
.breadcrumbs a:hover, .breadcrumbs .current { color: var(--dark); }
.breadcrumbs .sep { margin: 0 7px; }

/* ---------- Miembro asociado (inicio) ---------- */
.members { text-align: center; padding: 30px 0 20px; }
.members h2 { margin-top: 30px; }
.members-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; }
.members-logos img { margin: 40px 50px; height: auto; }
.members-logos .intertanko { width: 250px; }
.members-logos .bimco { width: 300px; }

/* ---------- Quiénes somos ---------- */
.about { padding: 20px 15% 40px; }
.about h2 { text-align: center; }
.about p { text-align: justify; }
.divider { position: relative; margin: 35px 0; text-align: center; height: 14px; }
.divider::after { content: ""; position: absolute; top: 6px; left: 0; right: 0; border-top: 2px solid var(--grey-light); }
.divider i {
  position: relative; z-index: 1; display: inline-block; width: 14px; height: 14px; border-radius: 50%;
  background: var(--grey-light); box-shadow: 0 0 0 10px #fff;
}

/* ---------- Bloques imagen + texto (equipo / departamentos) ---------- */
.feature { display: flex; border-top: 1px solid var(--grey-light); }
.feature.reverse { flex-direction: row-reverse; }
.feature-text, .feature-img { width: 50%; }
.feature-text { display: flex; align-items: center; }
.feature-text-inner { margin: 0 auto; padding: 145px 50px 140px; max-width: 500px; width: 100%; }
.feature-img { background-color: #d3d3d3; background-size: cover; background-position: center; background-repeat: no-repeat; min-height: 300px; }
.title-fs-45 { font-family: var(--font-head); font-size: 45px; line-height: 45px; font-weight: 300; color: var(--heading); }
.title-fs-45 a { color: inherit; }
.title-fs-45 a:hover { color: #97999c; }
.role { font-size: 30px; line-height: 36px; margin-top: 12px; color: var(--heading); font-family: var(--font-head); font-weight: 300; }
.line-3-70, .line-3-100 { height: 3px; background: var(--heading); margin-top: 15px; }
.line-3-70 { width: 70px; }
.line-3-100 { width: 100px; }
.feature-contact { margin-top: 30px; text-align: center; }
.feature-contact a { color: var(--text); }
.feature-contact a:hover { color: var(--dark); }

/* ---------- Contacto ---------- */
.contact-wrap { display: flex; border-top: 1px solid var(--grey-light); }
.contact-map, .contact-form-col { width: 50%; }
.contact-map iframe { display: block; width: 100%; height: 600px; border: 0; }
.contact-form-cont { max-width: 550px; padding: 80px 50px 30px 60px; }
.section-title {
  margin: 0 0 40px; padding: 22px 25px 24px;
  font-family: var(--font-body); font-size: 30px; line-height: 36px; font-weight: 300;
  color: var(--heading); border-left: 2px solid var(--heading);
}
.form-row { margin-bottom: 30px; }
.form-control {
  width: 100%; display: block;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; color: var(--heading);
  font: 14px/25px var(--font-body);
  padding: 8px 20px 8px 0; outline: 0;
  transition: border-color .3s ease;
}
.form-control::placeholder { color: var(--heading); opacity: 1; }
.form-control:focus { border-color: var(--heading); }
textarea.form-control { resize: vertical; min-height: 90px; }
.hp-field { position: absolute; left: -9999px; }
.button {
  display: inline-block; cursor: pointer;
  padding: 10px 37px; border: 0; border-radius: 2px;
  font: 14px/25px var(--font-body); text-transform: uppercase;
  color: #fff; background: var(--btn);
  transition: background-color .3s ease;
}
.button:hover { background: var(--dark); color: #fff; }
.form-msg { margin-top: 20px; padding: 12px 16px; font-size: 13px; display: none; }
.form-msg.ok { display: block; background: #e8f5e9; color: #2e7d32; }
.form-msg.err { display: block; background: #fdecea; color: #b71c1c; }

.contact-info { padding: 80px 0; }
.contact-info .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.cis-cont { position: relative; padding-left: 65px; }
.cis-icon { position: absolute; top: 25px; left: 0; color: var(--muted); }
.cis-icon svg { width: 35px; height: 35px; display: block; }
.cis-text { padding: 16px 0 18px 27px; border-left: 1px solid #bdbdbd; }
.cis-text h3 { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 26px; font-weight: 700; color: var(--heading); }
.cis-text p { margin: 0; font-size: 12px; }
.cis-text a { color: var(--muted); }
.cis-text a:hover { color: var(--dark); }

/* ---------- Pie de página ---------- */
.footer { padding: 80px 0 50px; border-top: 1px solid var(--grey-light); }
.footer .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.footer h4 {
  margin: 16px 0 21px; font-family: var(--font-body); font-size: 18px; font-weight: 700;
  text-transform: uppercase; color: var(--heading);
}
.footer, .footer a { color: var(--muted); }
.footer a:hover { color: var(--dark); }
.links-list { list-style: none; margin: 0; padding: 0; }
.links-list li { padding-bottom: 7px; }
.links-list a { font-weight: 700; text-transform: uppercase; }
.footer-logo img { width: 266px; max-width: 100%; margin-top: 16px; }
.footer-copy {
  margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--grey-light);
  text-align: center; font-size: 11px; letter-spacing: 1px;
}

/* ---------- Volver arriba ---------- */
.back-top {
  position: fixed; right: 19px; bottom: 16px; z-index: 20;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  color: var(--heading); background: rgba(255,255,255,.85); border-radius: 50%;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s, color .3s;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { color: #97999c; }
.back-top svg { width: 28px; height: 28px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet y menor: menú hamburguesa */
@media (max-width: 1024px) {
  :root { --header-h: 76px; --header-h-small: 64px; }
  .header-inner { padding: 0 20px; }
  .logo img { height: 38px; }
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,.08);
    display: none;
  }
  .header.is-scrolled .main-nav { top: var(--header-h-small); max-height: calc(100vh - var(--header-h-small)); }
  .menu-open .main-nav { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; padding: 10px 0; }
  .main-nav > ul > li > a {
    margin: 0; padding: 16px 20px; border: 0; font-size: 13px; color: #d3d3d3;
  }
  .main-nav > ul > li > a.active { border: 0; color: #fff; }
  .main-nav .has-sub > a::after { position: absolute; right: 24px; top: 22px; }
  .main-nav .sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    display: none; box-shadow: none; padding: 0; background: var(--navy-2);
  }
  .main-nav .has-sub.open > .sub { display: block; }
  .main-nav .has-sub.open > a::after { transform: translateY(0) rotate(-135deg); }
  .main-nav .sub a { padding: 14px 20px 14px 36px; }
  .main-nav .sub a:hover { padding-left: 40px; }
  .main-nav .lang { display: inline-block; }
  .main-nav .lang a { padding: 16px 20px; }
  .main-nav > ul > li.lang + li.lang a { padding-left: 0; }
  .main-nav > ul { flex-wrap: wrap; flex-direction: row; }
  .main-nav > ul > li:not(.lang) { width: 100%; }

  .feature-text-inner { padding: 70px 30px; }
  .title-fs-45 { font-size: 34px; line-height: 38px; }
  .role { font-size: 24px; line-height: 30px; }
  .about { padding: 10px 8% 30px; }
  .contact-form-cont { padding: 60px 30px 30px; }
}

/* Tablet vertical y móvil: columnas apiladas */
@media (max-width: 767px) {
  :root { --header-h: 68px; --header-h-small: 60px; }
  body { font-size: 14px; }
  .header-inner { padding: 0 16px; }
  .logo img { height: 34px; }
  .header.is-scrolled .logo img { height: 32px; }
  .container { padding: 0 16px; }

  .page-title-cont { padding: 40px 0 25px; }
  .page-title-row { flex-direction: column; align-items: flex-start; gap: 0; }
  .page-title { font-size: 20px; line-height: 26px; letter-spacing: 3px; margin-bottom: 10px; }
  .breadcrumbs { text-align: left; }

  .hero img { aspect-ratio: 4 / 3; }

  .feature, .feature.reverse { flex-direction: column; }
  .feature-text, .feature-img { width: 100%; }
  .feature-text-inner { padding: 50px 20px; text-align: left; }
  .feature-img { min-height: 0; aspect-ratio: 960 / 462; }
  .feature-contact { text-align: left; margin-top: 24px; }
  .title-fs-45 { font-size: 30px; line-height: 34px; }
  .role { font-size: 22px; line-height: 28px; }

  .about { padding: 0 16px 20px; }
  .about p { text-align: left; }

  .members-logos img { margin: 25px 16px; }
  .members-logos .intertanko { width: 200px; }
  .members-logos .bimco { width: 240px; }

  .contact-wrap { flex-direction: column; }
  .contact-map, .contact-form-col { width: 100%; }
  .contact-map iframe { height: 350px; }
  .contact-form-cont { max-width: none; padding: 50px 16px 30px; }
  .section-title { font-size: 26px; padding: 16px 20px; }
  .contact-info { padding: 50px 0; }
  .contact-info .container { grid-template-columns: 1fr; gap: 20px; }

  .footer { padding: 50px 0 30px; }
  .footer .container { grid-template-columns: 1fr 1fr; }
  .footer .footer-logo { grid-column: 1 / -1; }
}

@media (max-width: 479px) {
  .footer .container { grid-template-columns: 1fr; }
  .footer h4 { margin-bottom: 12px; }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .contact-info .container { grid-template-columns: repeat(2, 1fr); }
  .footer .container { grid-template-columns: repeat(3, 1fr); }
  .footer .footer-logo { grid-column: 1 / -1; }
}

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