/*!
Theme Name: Yates & Cosas
Theme URI: https://www.yatesycosas.com
Author: DarioBF
Author URI: https://www.dariobf.com
Description: Custom theme for Yates & Cosas
Version: 0.0.1
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: yates-cosas
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
  - Colors
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Commentread-mores
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
  display: block;
  flex: 1;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace;
  font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-bottom: none;
  text-decoration: underline;
  text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
  border-style: none;
}

.video-container {
	position: relative;
	padding-bottom: 56.25%;
	padding-top: 30px;
	height: 0;
	overflow: hidden;
}

.video-container iframe,
.video-container object,
.video-container embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
  display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Colors
--------------------------------------------- */
:root {
  --wp--preset--font-size--heading-1: 2.75rem;

  /* 44px */
  --wp--preset--font-size--heading-2: 2.25rem;

  /* 36px */
  --wp--preset--font-size--heading-3: 1.75rem;

  /* 28px */
  --wp--preset--font-size--heading-4: 1.5rem;

  /* 24px */
  --wp--preset--font-size--heading-5: 1.25rem;

  /* 20px */
  --wp--preset--font-size--heading-6: 1.125rem;

  /* 18px */

  --wp--preset--font-size--display-1: 2.75rem;

  /* 44px */
  --wp--preset--font-size--display-2: 2.25rem;

  /* 36px */

  --wp--preset--font-size--xl-body: 1.25rem;

  /* 20px */
  --wp--preset--font-size--lg-body: 1.125rem;

  /* 18px */
  --wp--preset--font-size--md-body: 1rem;

  /* 16px */
  --wp--preset--font-size--sm-body: 0.875rem;

  /* 14px */
  --wp--preset--font-size--xs-body: 0.8125rem;

  /* 13px */

  --primary-color: #073450;
  --primary-light: #3a5a76;
  --primary-dark: #052a3b;

  --secondary-color: #a1c4d9;
  --secondary-dark: #6f8fa3;

  --alt-color: #f4b942;

  --text-color: #fff;
  --text-color-dark: #333;
  --muted-text: #666;

  --background-color: #f5f7fa;
  --background-dark: #e1e5ea;

  --border-color: #dcdcdc;

  --font-family: "Wotfard", sans-serif;

  --fs-smallest: 0.703125rem;

  /* ≈11.25px */
  --fs-smaller: 0.84375rem;

  /* 13.5px */
  --fs-small: 0.984375rem;

  /* 15.75px */
  --fs-normal: 1.125rem;

  /* 18px */
  --fs-big: 1.265625rem;

  /* 20.25px */
  --fs-bigger: 1.40625rem;

  /* 22.5px */
  --fs-biggest: 1.6875rem;

  /* 27px */

  --lh-smaller: 160%;
  --lh-small: 150%;
  --lh-normal: 150%;
  --lh-big: 140%;
  --lh-bigger: 140%;
  --lh-biggest: 140%;
  --lh-headings: 120%;

  --lh-smaller: 160%;
  --lh-small: 150%;
  --lh-normal: 150%;
  --lh-big: 140%;
  --lh-bigger: 140%;
  --lh-biggest: 140%;
  --lh-headings: 120%;

  --gutter-small: 1rem;

  /* 16px */
  --gutter-normal: 2rem;

  /* 32px */
  --gutter-big: 4rem;

  /* 64px */
  --gutter-biggest: 10rem;

  /* 160px */

  --content-size: 1024px;
  --wide-size: 1300px;
}

@media screen and (min-width: 37.5em) {
  :root {
    /* Headings */
    --wp--preset--font-size--heading-1: 3rem;      /* 48px */
    --wp--preset--font-size--heading-2: 2.25rem;   /* 36px */
    --wp--preset--font-size--heading-3: 1.875rem;  /* 30px */
    --wp--preset--font-size--heading-4: 1.5rem;    /* 24px */
    --wp--preset--font-size--heading-5: 1.25rem;   /* 20px */
    --wp--preset--font-size--heading-6: 1.125rem;  /* 18px */

    /* Display (hero, landing, portada) */
    --wp--preset--font-size--display-1: 3.75rem;   /* 60px */
    --wp--preset--font-size--display-2: 3rem;      /* 48px */

    /* Body */
    --wp--preset--font-size--xl-body: 1.25rem;     /* 20px */
    --wp--preset--font-size--lg-body: 1.125rem;    /* 18px */
    --wp--preset--font-size--md-body: 1rem;        /* 16px */
    --wp--preset--font-size--sm-body: 0.9375rem;   /* 15px */
    --wp--preset--font-size--xs-body: 0.875rem;    /* 14px */
  }
}

/* Typography
--------------------------------------------- */
@font-face {
  font-family: Wotfard;
  src: url(assets/fonts/wotfard-regular-webfont.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Wotfard;
  src: url(assets/fonts/wotfard-regularitalic-webfont.woff2) format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: Wotfard;
  src: url(assets/fonts/wotfard-semibold-webfont.woff2) format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Wotfard;
  src: url(assets/fonts/wotfard-semibolditalic-webfont.woff2) format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

body,
button,
input,
select,
optgroup,
textarea {
  color: #404040;
  font-family:
    Wotfard,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen-Sans,
    Ubuntu,
    Cantarell,
    "Helvetica Neue",
    sans-serif;
  font-size: var(--fs-normal);
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  clear: both;
  padding: 0 1rem;
}

p {
  margin-bottom: 1.5em;
  padding: 0 1rem;
}

dfn,
cite,
em,
i {
  font-style: italic;
}

blockquote {
  margin: 0 1.5em;
}

address {
  margin: 0 0 1.5em;
}

pre {
  background: #eee;
  font-family: "Courier 10 Pitch", courier, monospace;
  line-height: 1.6;
  margin-bottom: 1.6em;
  max-width: 100%;
  overflow: auto;
  padding: 1.6em;
}

code,
kbd,
tt,
var {
  font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
  border-bottom: 1px dotted #666;
  cursor: help;
}

mark,
ins {
  background: #fff9c0;
  text-decoration: none;
}

big {
  font-size: 125%;
}

.has-smaller-font-size {
  font-size: var(--fs-smaller);
}

.has-small-font-size {
  font-size: var(--fs-small);
}

.has-normal-font-size {
  font-size: var(--fs-normal);
}

.has-big-font-size {
  font-size: var(--fs-big);
}

.has-bigger-font-size {
  font-size: var(--fs-bigger);
}

.has-biggest-font-size {
  font-size: var(--fs-biggest);
}

.bf-heading {
  max-width: 300px !important;
  display: flex;
  flex-direction: column;
}

.bf-heading span {
  /* text-align: left; */
  color: var(--primary-dark);
}

.bf-heading span:last-of-type {
  display: block;

  /* text-align: right; */
  color: var(--alt-color);
}

@media screen and (min-width: 37.5em) {
  .bf-heading {
    max-width: 500px !important;
  }
}

/* Elements
--------------------------------------------- */
body {
  background: #fff;
  padding-top: 85px;
}

body.home {
  padding-top: 0px;
}

hr {
  background-color: #ccc;
  border: 0;
  height: 1px;
  margin-bottom: 1.5em;
}

ul,
ol {
  margin: 0 0 1.5em 3em;
}

ul {
  list-style: disc;
}

ol {
  list-style: decimal;
}

li > ul,
li > ol {
  margin-bottom: 0;
  margin-left: 1.5em;
}

dt {
  font-weight: 700;
}

dd {
  margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
  max-width: 100%;
}

img {
  height: auto;
  max-width: 100%;
}

figure {
  margin: 1em 0;
}

table {
  margin: 0 0 1.5em;
  width: 100%;
}

/* Links
--------------------------------------------- */
a {
  color: #4169e1;
}

a:visited {
  color: #800080;
}

a:hover,
a:focus,
a:active {
  color: #191970;
}

a:focus {
  outline: thin dotted;
}

a:hover,
a:active {
  outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  border: 1px solid;
  border-color: #ccc #ccc #bbb;
  border-radius: 3px;
  background: #e6e6e6;
  color: rgba(0, 0, 0, 0.8);
  line-height: 1;
  padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
  border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
  border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
  color: #666;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
  color: #111;
}

select {
  border: 1px solid #ccc;
}

textarea {
  width: 100%;
}

.wp-block-button a,
.wp-block-button .has-primario-background-color {
  color: #fff;
  transition:
    box-shadow 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.wp-block-button a:hover,
.wp-block-button .has-primario-background-color:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.wp-block-button a,
.wp-block-button .has-primario-background-color {
  color: #fff;
  transition:
    box-shadow 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.wp-block-button a:hover,
.wp-block-button .has-primario-background-color:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Widgets
--------------------------------------------- */
.widget-area {
  flex: 100% 0 0;
}

.widget select {
  max-width: 100%;
}

@media screen and (min-width: 37.5em) {
  .widget-area {
    flex: 300px 0 0;
    margin-left: 1rem;
  }

  .embarcaciones-filter .widget-area > .widget {
    height: 100%;
  }
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
  border: none;
  margin-bottom: 0;
  margin-top: 0;
  padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
  display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
  margin-bottom: 1.5em;
  max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption .wp-caption-text {
  margin: 0.8075em 0;
}

.wp-caption-text {
  text-align: center;
}

/* Galleries
--------------------------------------------- */
.wp-block-gallery {
  padding: 0 1rem;
}

.gallery {
  margin-bottom: 1.5em;
  display: grid;
  grid-gap: 1.5em;
}

.gallery-item {
  display: inline-block;
  text-align: center;
  width: 100%;
}

.gallery-columns-2 {
  grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
  grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
  grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
  grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
  grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
  grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
  display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
  display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
  display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
  outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {
  /*rtl:ignore*/
  float: left;

  /*rtl:ignore*/
  margin-right: 1.5em;
  margin-bottom: 1.5em;
}

.alignright {
  /*rtl:ignore*/
  float: right;

  /*rtl:ignore*/
  margin-left: 1.5em;
  margin-bottom: 1.5em;
}

.aligncenter {
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5em;
}

.alignwide,
.alignfull {
  width: 100%;
}

@media screen and (min-width: 37.5em) {
  .alignwide {
    max-width: var(--wide-size);
    margin: 0 auto;
  }

  .alignfull {
    width: 100%;
    max-width: 100%;
  }
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

.site-wrapper {
  max-width: var(--wide-size);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-wrap: wrap;
}

.blog-wrapper {
  max-width: var(--content-size);
  margin: 0 auto;
  padding: 0 1 rem;
}

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Header
--------------------------------------------- */
.site-header {
  background: var(--primary-color);
  color: var(--text-color);
  padding: 0;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 999;
}

.home .site-header {
  background: rgba(7, 52, 80, 0.8);
}

.admin-bar .site-header {
  top: 46px;
}

.site-header .site-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  height: 85px;
}

.site-header a {
  color: var(--text-color);
}

.site-branding a {
  display: block;
  max-width: 100%;
}

.home-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 90vh;
  overflow: hidden;
}

/* Navigation
--------------------------------------------- */
.main-navigation {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--primary-light);
  opacity: 0;
  transform: translateX(-100%);
  transition:
    transform 0.4s ease-in-out,
    opacity 0.4s ease-in-out;
  pointer-events: none;
}

.main-navigation.toggled {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.main-navigation div,
.main-navigation ul {
  height: 100%;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0 2rem;
  font-size: var(--fs-small);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.main-navigation ul ul {
  display: block;
  margin-left: 0.3rem;
  padding: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  padding-left: 1rem;
}

.main-navigation.toggled ul ul {
  height: auto;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  display: block;
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  text-transform: uppercase;
}

.menu-toggle {
  position: relative;
  background: none;
  border: none;
  color: var(--text-color);
  transition: transform 0.3s ease-in-out;
  font-size: var(--fs-biggest);
  padding: 0;

  cursor: pointer !important;
  width: 24px;
  height: 24px;
  z-index: 10;
}

.menu-toggle .burger {
  cursor: pointer;
  position: absolute;
  width: 100%;
  left: 0;
}

.menu-toggle .burger,
.menu-toggle .burger::after,
.menu-toggle .burger::before {
  border-radius: 2px;
  position: absolute;
  z-index: 100;
  width: 24px;
  height: 4px;
  background: #fff;
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

.menu-toggle .burger::after,
.menu-toggle .burger::before {
  content: "";
  display: block;
}

.menu-toggle .burger::before {
  margin-top: -8px;
}

.menu-toggle .burger::after {
  margin-top: 8px;
}

.menu-toggle .burger.clicked,
.menu-toggle .burger.clicked::after,
.menu-toggle .burger.clicked::before {
  background: #fff;
}

.burger.clicked {
  -webkit-transform: rotate(45deg) translate3d(0, 0, 0);
  transform: rotate(45deg) translate3d(0, 0, 0);
}

.burger.clicked::before {
  margin-top: 0;
  -webkit-transform: rotate(-90deg) translate3d(0, 0, 0);
  transform: rotate(-90deg) translate3d(0, 0, 0);
}

.burger.clicked::after {
  margin-top: 0;
  -webkit-transform: rotate(0) translate3d(0, 0, 0);
  transform: rotate(0) translate3d(0, 0, 0);
}

.menu-toggle:active {
  transform: scale(0.9);
}

.main-navigation ul li:hover,
.main-navigation ul li.current-menu-item {
  background: var(--primary-dark);
}

/* En pantallas grandes, el menú se muestra sin animación */
@media screen and (min-width: 37.5em) {
  .admin-bar .site-header {
    top: 32px;
  }

  .menu-toggle {
    display: none;
  }

  .main-navigation {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    background: transparent;
    width: 100%;
    height: auto;
  }

  .main-navigation ul {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    padding: 0;
  }

  .main-navigation ul a {
    padding: 0.7rem;
  }

  .main-navigation ul li.current-page-ancestor {
    background: var(--primary-light);
  }

  .main-navigation ul ul {
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
    float: left;
    position: absolute;
    top: 100%;
    left: -999em;
    z-index: 99999;
    background: var(--primary-light);
    height: auto;
    opacity: 0;
    transform: translateY(-10px);
    transition:
      opacity 0.3s ease,
      transform 0.3s ease;
    padding-left: 0;
    margin-left: 0;
    border-left: none;
  }

  .main-navigation ul ul ul {
    left: -999em;
    top: 0;
  }

  .main-navigation ul ul li:hover > ul,
  .main-navigation ul ul li.focus > ul {
    display: block;
    left: auto;
  }

  .main-navigation ul ul a {
    width: 250px;
  }

  .main-navigation ul li:hover > ul,
  .main-navigation ul li.focus > ul {
    left: 0;
    opacity: 1;
    transform: translateY(0);
  }
}

.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
  margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
  display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
  flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
  text-align: end;
  flex: 1 0 50%;
}

/* Footer
--------------------------------------------- */

.site-footer {
  background: var(--primary-dark);
  color: var(--text-color);
  flex-basis: 100%;
}

.site-footer a {
  color: var(--text-color);
}

.site-footer .site-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.site-footer .menu {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
}

.site-footer .menu li:not(:last-child) {
  margin-right: 0.8rem;
}

.site-footer p {
  margin: 0;
}

.site-footer .footer-logo {
  display: none;
}

/* Posts and pages
--------------------------------------------- */

.share-icons {
  padding: 1rem;
}

.share-icons h4 {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #073450;
}

.share-icons a {
  display: inline-block;
  margin-right: 7px;
  transition: transform 0.2s ease;
}

.share-icons a:hover {
  transform: scale(1.2);
}

.share-icons img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.share-icons a:hover img {
  filter: none;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
  display: block;
}

.post,
.page {
  margin: 0;
}

.updated:not(.published) {
  display: none;
}

.page-content,
.entry-content,
.entry-summary {
  margin: 0;
  width: 100%;
}

.entry-meta {
  padding: 0 1rem;
}

.page-content > *:not(.alignwide):not(.alignfull),
.entry-content > *:not(.alignwide):not(.alignfull),
.entry-summary > *:not(.alignwide):not(.alignfull) {
  max-width: var(--content-size);
  margin-left: auto;
  margin-right: auto;
}

.page-links {
  clear: both;
  margin: 0 0 1.5em;
}

/* Blog's Archive
--------------------------------------------- */
.blog .entry-header h2 {
  font-size: var(--fs-biggest);
}

.blog .entry-header h2 a,
.blog .post a {
  color: var(--primary-color);
}

.blog .post {
  margin-bottom: 3rem;
}

.blog .posted-on {
  font-size: var(--fs-small);
}

.blog .nav-links {
  margin-bottom: 3rem;
}

.blog .nav-links a {
  color: #585858;
  text-decoration: none;
  background: #f9f9f9;
  font-size: var(--fs-small);
  padding: 0.7rem 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Embarcaciones' Archive
--------------------------------------------- */

.post-type-archive-embarcaciones .sidebar {
  order: 1;
}

.post-type-archive-embarcaciones .site-main {
  order: 2;
}

@media (min-width: 37.5rem) {
  .post-type-archive-embarcaciones .sidebar {
    order: 2;
  }

  .post-type-archive-embarcaciones .site-main {
    order: 1;
  }
}

.embarcaciones-filter .site {
  display: flex;
  flex-wrap: wrap;
}

.embarcaciones-filter .site-main.site-wrapper {
  display: block;
}

.embarcaciones-filter .sidebar p {
  margin: 0 !important;
}

/* Contenedor principal del formulario */
#toggleFilters {
  background: var(--primary-color);
  color: #fff;
  width: 100%;
  margin-top: .7rem;
  border: none;
  padding: .7rem 0;
}

.filtro-embarcaciones {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  width: 100%;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height .5s ease,
    padding 0s linear .5s;
  padding: 0px;
}

.filtro-embarcaciones.active {
  max-height: 700px;
}

.filtro-embarcaciones-inner {
  padding: 20px;
}

/* Estilo para los campos select e input */
.filtro-embarcaciones select,
.filtro-embarcaciones input {
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

/* Sombra suave en los campos */
.filtro-embarcaciones select:focus,
.filtro-embarcaciones input:focus {
  border-color: #0056b3;
  box-shadow: 0 0 8px rgba(0, 86, 179, 0.2);
}

/* Estilo para el placeholder de los inputs */
.filtro-embarcaciones input::placeholder {
  color: #aaa;
}

/* Alineación y espaciado para los botones */
.filtro-embarcaciones button {
  padding: 10px 15px;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: auto;
}

/* Botón de Filtrar */
.filtro-embarcaciones button[type="submit"] {
  background-color: var(--primary-color);
  color: white;
  margin-top: 1rem;
}

.filtro-embarcaciones button[type="submit"]:hover {
  background-color: #0056b3;
}

/* Botón de Limpiar filtros */
.filtro-embarcaciones .limpiar-filtros {
  background-color: #ccc;
  color: #333;
}

.filtro-embarcaciones .limpiar-filtros:hover {
  background-color: #888;
  color: white;
}

.slider-precio,
.slider-eslora {
  margin-bottom: 1rem;
}

.slider-precio header > p,
.slider-eslora header > p {
  margin: 0;
  padding: 0;
}

.slider-precio header > p:first-of-type,
.slider-eslora header > p:first-of-type {
  font-size: var(--fs-bigger);
  font-weight: 700;
  margin-bottom: 0;
}

.slider-precio header > p:last-of-type,
.slider-eslora header > p:last-of-type {
  font-size: var(--fs-small);
}

.price-input {
  width: 100%;
  display: flex;
  margin: 1rem 0 35px;
}

.price-input .field {
  display: flex;
  width: 100%;
  height: 45px;
  align-items: center;
}

.field input {
  width: 100%;
  height: 100%;
  outline: none;
  font-size: var(--fs-small);
  margin-left: 0.3rem;
  border-radius: 5px;
  text-align: center;
  border: 1px solid #999;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.price-input .separator {
  width: 2rem;
  display: flex;
  font-size: 19px;
  align-items: center;
  justify-content: center;
}

.slider {
  position: relative;
  height: 4px;
  background: #ccc;
  overflow: hidden;
  width: 100%;
}

.slider,
.range-input input {
  box-sizing: border-box;
}

.slider .progress {
  position: absolute;
  height: 100%;
  background: #073450;
  border-radius: 5px;
  left: 25%;
  /* se actualizará vía JS */
  right: 25%;
  /* se actualizará vía JS */
  z-index: 1;
}

.range-input {
  position: relative;
  width: 100%;
}

.range-input input {
  position: absolute;
  width: 100%;
  height: 5px;
  top: -5px;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: none;
  z-index: 2;
  padding: 0;
}

.range-input input:focus {
  border: none;
  box-shadow: none;
}

input[type="range"]::-webkit-slider-thumb {
  height: 17px;
  width: 17px;
  border-radius: 50%;
  background: var(--primary-color);
  pointer-events: auto;
  -webkit-appearance: none;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
}

input[type="range"]::-moz-range-thumb {
  height: 17px;
  width: 17px;
  border: none;
  border-radius: 50%;
  background: var(--primary-color);
  pointer-events: auto;
  -moz-appearance: none;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
}

/* Asegurarse de que el formulario sea adaptable */
@media (max-width: 768px) {
  .filtro-embarcaciones {
    flex-direction: column;
    align-items: flex-start;
    position: sticky;
    top: 0;
  }

  .filtro-embarcaciones select,
  .filtro-embarcaciones input {
    max-width: 100%;
  }
}

@media (min-width: 37.5rem) {
  #toggleFilters {
    display: none;
  }

  .filtro-embarcaciones {
    display: flex;
    position: sticky;
    top: 96px;
    max-height: 700px;
  }

  .admin-bar .filtro-embarcaciones {
    top: 133px;
  }
}

/* Embarcaciones' Single
--------------------------------------------- */

.single-embarcaciones .site-main {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "header"
    "content"
    "specs";
  row-gap: 1rem;
}

.single-embarcaciones .site-footer {
  margin-top: 4rem;
}

.single-embarcaciones .embarcacion-header {
  grid-area: header;
}

.single-embarcaciones .embarcacion-content {
  grid-area: content;
  break-inside: auto;
}

.single-embarcaciones .embarcacion-specs {
  grid-area: specs;
  break-inside: auto;
}

@media screen and (min-width: 37.5em) {
  .single-embarcaciones .site-main {
    grid-template-columns: auto 300px;
    grid-template-rows: repeat(2, auto);
    grid-column-gap: 2rem;
    grid-template-areas:
      "header header"
      "content specs";
    break-inside: auto;
  }

  .single-embarcaciones .embarcacion-header {
    display: grid;
    grid-template-columns: auto 300px;
    grid-template-rows: repeat(3, auto);
    grid-column-gap: 0;
    grid-row-gap: 0;
    break-inside: auto;
  }
}

.embarcacion-header h1 {
  margin-bottom: 0;
  grid-area: 1 / 1 / 2 / 2;
  font-size: var(--wp--preset--font-size--heading-1);
  padding: 0;
}

.embarcacion-header .embarcacion-motor {
  grid-area: 2 / 1 / 3 / 2;
}

.embarcacion-header .embarcacion-precio {
  grid-area: 3 / 1 / 4 / 2;
}

.action-buttons {
  grid-area: 1 / 2 / 4 / 3;
  align-self: center;
  justify-self: center;
  width: 100%;
}

.embarcacion-header .show-sidebar {
  width: 100%;
  height: auto;
  background-color: var(--alt-color);
  border: none;
  box-shadow: none;
  font-weight: 700;
  font-size: var(--fs-small);
  padding: 1rem 0.5rem;
  margin-top: 1rem;
  cursor: pointer;
}

.embarcacion-header .embarcacion-motor {
  color: gray;
}

.embarcacion-precio {
  font-size: var(--fs-small);
}

.embarcacion-precio strong {
  font-size: var(--fs-big);
}

.embarcacion-precio span {
  font-size: var(--fs-smaller);
  color: gray;
  position: relative;
}

.embarcacion-precio span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--alt-color);
  transform: translateY(-50%);
  pointer-events: none;
}

.embarcacion-gallery.wp-block-gallery {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.embarcacion-gallery .wp-block-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.embarcacion-gallery .wp-block-image:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.embarcacion-gallery .wp-block-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.embarcacion-gallery .wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.embarcacion-gallery.is-cropped img {
  object-fit: cover;
}

table.embarcacion-general-specs,
table.embarcacion-tech-specs {
  width: 100%;
  border-collapse: collapse;
  font-family: system-ui, sans-serif;
  font-size: 0.95rem;
  color: #111;
}

.embarcacion-specs h2 {
  font-size: var(--wp--preset--font-size--heading-4) !important;
  padding: 0;
}

table.embarcacion-general-specs th,
table.embarcacion-tech-specs th {
  text-align: left;
  font-weight: 700;
  padding: 0.6em 0.5em;
  vertical-align: top;
  white-space: nowrap;
}

table.embarcacion-general-specs td,
table.embarcacion-tech-specs td {
  text-align: right;
  padding: 0.6em 0.5em;
  color: #333;
}

table.embarcacion-general-specs tr,
table.embarcacion-tech-specs tr {
  border-bottom: 1px solid #ddd;
}

table.embarcacion-general-specs i,
table.embarcacion-tech-specs i {
  margin-right: 0.4em;
  color: var(--primary-light);
}

.embarcacion-extras-tags {
  margin: 2em 0;
}

.embarcacion-extras-tags .tag-group {
  margin-bottom: 1.5em;
}

.embarcacion-extras-tags .tag-group h3 {
  font-size: var(--fs-normal);
  margin-bottom: 0.5em;
  color: #073450;
  font-weight: 600;
}

.embarcacion-extras-tags .extras-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}

.single-embarcaciones .tag {
  background-color: #eef3f8;
  color: #073450;
  border: 1px solid #cbd5e0;
  padding: 0.3em 0.7em;
  font-size: 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
}

.single-embarcaciones .sidebar {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 400px;
  height: auto;
  background-color: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  margin-left: 0;
  overflow-y: auto;
  border-radius: 8px;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.single-embarcaciones .sidebar.active {
  display: block;
  opacity: 1;
  visibility: visible;
}

.single-embarcaciones .sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.single-embarcaciones .sidebar-overlay.active {
  display: block;
}

.single-embarcaciones .sidebar .close-sidebar {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  background-color: transparent;
  color: #333;
  font-size: 24px;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: center;
  line-height: 30px;
  border-radius: 50%;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.single-embarcaciones .sidebar .close-sidebar:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: #ff4d4d;
}

.single-embarcaciones .sidebar .close-sidebar::before {
  content: "×";

  /* Usamos la X como contenido */
  font-family: Arial, sans-serif;

  /* Fuente para la X */
  font-weight: 700;
}

.single-embarcaciones .wp-block-contact-form-7-contact-form-selector {
  background: #f6f6f6;
  padding: 0.7rem 2rem;
}

.single-embarcaciones .wp-block-contact-form-7-contact-form-selector p {
  margin: 0;
  margin-bottom: 0.5rem;
}

.single-embarcaciones .widget-area .widget_block input,
.single-embarcaciones .widget-area .widget_block textarea {
  max-width: 300px;
  font-size: var(--fs-small);
}

.single-embarcaciones .widget-area .widget_block textarea {
  max-height: 150px;
}

.single-embarcaciones .widget-area .widget_block input[type="submit"] {
  background: #f5b942;
  border: none;
}

.single-embarcaciones .widget-area .widget_block input[type="submit"]::before {
  content: "";
}

/* Comments
--------------------------------------------- */
.comment-content a {
  word-wrap: break-word;
}

.bypostauthor {
  display: block;
}
