:root {
  --blue: #0c599f;
  --blue-dark: #084a86;
  --blue-soft: #3f7fb1;
  --cyan: #80b6c3;
  --pink: #cc3366;
  --text: #696969;
  --muted: #909090;
  --line: #e6f0f2;
  --surface: #ffffff;
  --content-width: 950px;
  --radius: 3px;
  --shadow: 0 12px 35px rgb(2 48 89 / 14%);
  font-family: "Lucida Grande", "Lucida Sans Unicode", Tahoma, Arial, sans-serif;
  color: var(--text);
  background: var(--blue);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; background: var(--blue); font-size: 0.75rem; line-height: 1.75; }
body, button, input, textarea { font-family: inherit; }
img { display: block; max-width: 100%; height: auto; border: 0; }
picture { display: contents; }
a { color: var(--blue); }
a:hover { text-decoration: none; }
button, input, textarea { font-size: 1rem; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #f4c44e; outline-offset: 3px; }
.skip-link { position: fixed; z-index: 9999; top: 8px; left: 8px; transform: translateY(-150%); padding: 8px 14px; background: white; color: var(--blue); }
.skip-link:focus { transform: none; }

.site-header, #site-main { background: var(--surface); }
.header-inner { width: min(var(--content-width), calc(100% - 32px)); min-height: 96px; margin: auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.brand { display: block; padding-top: 14px; width: 257px; }
.brand img { width: 257px; }
.header-contact { padding-top: 18px; text-align: right; }
.utility-nav { color: #bdcccf; font-size: 0.7rem; display: flex; gap: 7px; justify-content: flex-end; }
.utility-nav a { text-decoration: none; }
.phone { display: block; margin-top: 8px; color: var(--blue); font-size: 1.05rem; text-decoration: none; }

.main-nav { min-height: 69px; background-color: var(--blue); background-position: center top; background-repeat: no-repeat; }
.page-home .main-nav { background-image: url("../images/home_page_background_02.png"); }
.page-content .main-nav, .page-category .main-nav, .page-product .main-nav, .page-contact .main-nav { background-image: url("../images/sub_page_background_02.png"); }
.nav-inner { width: min(var(--content-width), calc(100% - 32px)); margin: auto; position: relative; }
.primary-menu, .submenu { list-style: none; margin: 0; padding: 0; }
.primary-menu { display: flex; min-height: 69px; }
.primary-menu > li { position: relative; }
.primary-menu > li > a, .submenu-toggle { display: flex; align-items: center; min-height: 69px; padding: 0 32px; border: 0; background: transparent; color: white; font-size: 0.72rem; letter-spacing: 0.13em; text-decoration: none; text-transform: uppercase; cursor: pointer; }
.primary-menu > li > a:hover, .primary-menu > li > a:focus-visible, .submenu-toggle:hover, .submenu-toggle:focus-visible, .has-submenu:focus-within > .submenu-toggle { background: url("../images/menu_nv.png") repeat-x top; }
.submenu { display: none; position: absolute; z-index: 100; top: 69px; left: 0; min-width: 260px; box-shadow: var(--shadow); }
.submenu a { display: block; padding: 10px 14px; border-bottom: 1px solid #73abb9; background: var(--blue); color: white; text-decoration: none; }
.submenu a:hover, .submenu a:focus-visible { background: #296eab; }
.has-submenu:hover .submenu, .has-submenu:focus-within .submenu, .has-submenu.is-open .submenu { display: block; }
.menu-toggle { display: none; }

#site-main { min-height: 500px; overflow: hidden; background-color: white; background-position: center -69px; background-repeat: no-repeat; }
.page-home #site-main { background-image: url("../images/home_page_background_02.png"); }
.page-content #site-main, .page-category #site-main, .page-product #site-main, .page-contact #site-main { background-image: url("../images/sub_page_background_02.png"); }
#con01, #con01_sub { clear: both; padding-top: 4px; background-position: center top; background-repeat: no-repeat; }
#con01 { background-image: url("../images/home_page_background_02.png"); }
#con01_sub { background-image: url("../images/sub_page_background_02.png"); }
.clear_space, .clear_space_h { clear: both; }
.clear_space_h { height: 10px; }

#slider_con { width: 100%; padding: 0; }
#slider_area { position: relative; width: min(var(--content-width), 100%); aspect-ratio: 950 / 412; margin: 5px auto 0; overflow: hidden; background: url("../images/slider_background.png") no-repeat bottom / contain; }
.slide { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity 700ms ease; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide img { width: 100%; height: 100%; object-fit: contain; }
#number_con { width: min(var(--content-width), calc(100% - 32px)); margin: auto; }
#numbers { position: relative; z-index: 10; display: flex; margin-top: -30px; padding-bottom: 4px; }
#numbers button { position: relative; width: 32px; height: 32px; padding: 0; border: 0; background: transparent; overflow: hidden; text-indent: -9999px; cursor: pointer; }
#numbers button::after { position: absolute; top: 11px; left: 11px; width: 10px; height: 10px; border-radius: 50%; background: #d4e6eb; content: ""; }
#numbers button[aria-current="true"]::after { background: var(--blue); }

#content { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: min(960px, calc(100% - 24px)); margin: auto; padding: 0 0 12px 10px; }
#content > .box { width: auto; margin: 10px 0; }
#content > .box .imgarea img { width: 100%; aspect-ratio: 290 / 124; object-fit: cover; }
.box { position: relative; overflow: hidden; }
.box .imgarea { display: block; text-align: center; }
.box .image { margin: auto; padding: 9px; border: 1px solid var(--line); }
.box .image.product_image { padding: 8px 0; border-width: 1px 0; }
.box .textarea { padding: 0 5px; color: var(--muted); }
.box .textarea h2 { margin: 8px 0 0; font-size: 1rem; font-weight: 400; line-height: 1.25; letter-spacing: 0.06em; }
.box .textarea h2 a { color: #000; text-decoration: none; }
.box .textarea h2 a:hover { color: #1f7e95; }
.box.product { width: 225px; margin: 0; border-left: 1px solid var(--line); }
.box.product .textarea { margin: 10px 0 20px; padding: 0 15px; }
.box.product .imgarea { display: grid; width: 100%; height: 292px; place-items: center; padding: 8px; background: white; }
.box.product .imgarea a { display: grid; width: 100%; height: 100%; place-items: center; }
.box.product .imgarea img { width: auto; height: auto; max-width: 100%; max-height: 276px; padding: 0; object-fit: contain; }
.box.middle { width: 259px; margin: 10px 0 0; }
.box.middle .textarea { padding: 0; }

#sub_page_header, .page-banner { min-height: 48px; background: #fff url("../images/sub_page_background_01.png") repeat-x top; }
#sub_page_header { width: min(var(--content-width), calc(100% - 32px)); margin: auto; text-align: center; }
#sub_page_header .left { float: left; padding-top: 13px; }
#sub_nav, .breadcrumbs { color: var(--blue); font-size: 0.72rem; }
#sub_nav a, .breadcrumbs a { color: #478898; text-decoration: none; }
.page-banner-inner { width: min(var(--content-width), calc(100% - 32px)); margin: auto; padding-top: 13px; }
.breadcrumbs { display: flex; gap: 8px; }

.sub_page, .content-shell { width: min(960px, calc(100% - 24px)); margin: 30px auto 0; padding-left: 10px; background: url("../images/sub_background.png") 689px 0 repeat-y; }
.sub_page::after, .content-shell::after { display: block; clear: both; content: ""; }
.sub_page.clean { background: transparent; }
.page_left { float: left; width: 680px; margin-right: 10px; }
.page_left.content { width: 670px; margin-right: 20px; }
.page_right { float: left; width: 259px; }
.page_left > .box.product { float: left; }
.page-category .page_left {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
.page-category .page_left > .box.product { float: none; width: auto; }
.page-category .page_left > .clear_space_h { display: none; }
#sub_menu { margin: 0; padding: 0; list-style: none; }
#sub_menu li { border-bottom: 1px solid #e8f0f4; line-height: 30px; }
#sub_menu a { display: block; padding-left: 21px; background: url("../images/arrow.png") left center no-repeat; color: var(--blue-soft); font-size: 0.8rem; text-decoration: none; }

#product_detail_left { float: left; width: 330px; margin-right: 10px; }
#product_detail_right { float: left; width: 330px; }
#product_detail_left .imgarea { display: grid; min-height: 360px; place-items: center; padding: 10px; background: white; }
#product_detail_left .imgarea a { display: grid; width: 100%; place-items: center; }
#product_detail_left img { width: auto; height: auto; max-width: 100%; max-height: 520px; padding: 0; object-fit: contain; }
#product_detail_right h2 { margin: 8px 0 10px; color: #01519b; font-size: 1.55rem; font-weight: 400; line-height: 1.2; }
#tabs { clear: both; display: block; padding-top: 14px; }
#tabs > ul { display: flex; clear: both; margin: 0; padding: 0; list-style: none; }
#tabs > ul li { margin: 6px 2px 0 0; padding: 5px; border: 1px solid var(--line); color: var(--cyan); line-height: 30px; cursor: pointer; }
#tabs > ul li.active { margin-top: 3px; padding: 6px 5px; background: var(--line); }
#tabs > ul li img { display: inline-block; width: 30px; vertical-align: middle; }
#tabs #content { display: block; width: 100%; padding: 10px; border: 1px solid var(--line); }
#tabs #content > div[hidden] { display: none; }
#photos { display: flex; flex-wrap: wrap; gap: 8px; }
#photos img { width: 90px; height: 90px; object-fit: contain; }
.catalog-product-card .textarea { min-height: 66px; }
.catalog-product-tabs > h3 { margin: 16px 0 0; padding: 8px 10px; border: 1px solid var(--line); background: var(--line); color: var(--cyan); font-size: 0.9rem; }
.catalog-tab-content { padding: 10px; border: 1px solid var(--line); }
.catalog-media-section { margin-top: 20px; }
.catalog-media-section > h3 { margin-bottom: 10px; color: var(--blue); }
.catalog-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.catalog-photo-grid a { display: grid; min-height: 140px; place-items: center; padding: 6px; border: 1px solid var(--line); background: white; }
.catalog-photo-grid img { width: 100%; height: 180px; object-fit: contain; }
.catalog-video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.catalog-video-grid figure { margin: 0; }
.catalog-video-grid video { display: block; width: 100%; max-height: 420px; background: #071d30; }
.catalog-video-grid figcaption { padding-top: 5px; color: var(--text); }

h1, h2, h3, h4, h5, h6 { position: relative; clear: both; margin-top: 0; font-weight: 400; line-height: 1.4; letter-spacing: 0.025em; }
h1 { margin-bottom: 10px; color: var(--blue); font-size: 1.4rem; }
h2 { font-size: 1.35rem; }
h3 { margin-bottom: 10px; color: var(--blue); font-size: 1.25rem; }
table { width: 100% !important; border-collapse: collapse; border-spacing: 0; }
th { padding: 12px; background: var(--pink); color: white; font-size: 0.75rem; }
td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; }
iframe { max-width: 100%; border: 0; }

.contact-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(230px, 0.8fr); gap: 30px; background-position: calc(100% - 269px) 0; }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.form-field { display: grid; gap: 4px; }
.form-field-wide { grid-column: 1 / -1; }
.form-field label { color: var(--blue); font-weight: 600; }
.form-field input, .form-field textarea { width: 100%; padding: 10px 12px; border: 1px solid #b9cdd2; border-radius: var(--radius); background: white; color: #333; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--blue); outline: 3px solid rgb(12 89 159 / 18%); }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.button { width: auto; padding: 9px 22px; border: 0; border-radius: var(--radius); background: var(--blue); color: white; cursor: pointer; }
.button:hover { background: var(--blue-dark); }
.button:disabled { cursor: not-allowed; opacity: 0.55; }
.form-status:not(:empty), .configuration-note { padding: 10px 12px; border-left: 4px solid var(--blue); background: #edf6fb; }
.form-status.is-error { border-color: #a92323; background: #fff0f0; color: #7d1818; }
.contact-details address { font-style: normal; }
.contact-details a { overflow-wrap: anywhere; }

.site-footer { min-height: 54px; background: var(--blue); color: white; font-size: 0.68rem; }
.footer-inner { width: min(var(--content-width), calc(100% - 32px)); margin: auto; padding: 10px 0; text-align: right; }

.lightbox { width: min(900px, calc(100% - 32px)); padding: 35px 20px 20px; border: 0; border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.lightbox::backdrop { background: rgb(0 31 58 / 78%); }
.lightbox img { max-height: 80vh; margin: auto; object-fit: contain; }
.lightbox-close { position: absolute; top: 4px; right: 8px; border: 0; background: transparent; color: var(--blue); font-size: 2rem; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide { transition: none; }
}

@media (max-width: 860px) {
  body { font-size: 0.86rem; }
  .header-inner { min-height: 82px; align-items: center; }
  .brand { width: min(210px, 62vw); padding-top: 0; }
  .header-contact { padding-top: 0; }
  .utility-nav { display: none; }
  .phone { font-size: 0; }
  .phone::after { content: "Llamar"; display: inline-block; padding: 7px 10px; border: 1px solid var(--blue); border-radius: var(--radius); font-size: 0.8rem; }
  .main-nav { min-height: 48px; background-color: var(--blue); background-image: none; }
  .nav-inner { width: 100%; }
  .menu-toggle { display: flex; width: 100%; min-height: 48px; align-items: center; justify-content: space-between; padding: 0 16px; border: 0; background: var(--blue); color: white; text-transform: uppercase; }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 22px; height: 2px; background: currentColor; content: ""; }
  .menu-icon { position: relative; }
  .menu-icon::before { position: absolute; top: -7px; }
  .menu-icon::after { position: absolute; top: 7px; }
  .primary-menu { display: none; min-height: 0; flex-direction: column; background: var(--blue); }
  .primary-menu.is-open { display: flex; }
  .primary-menu > li > a, .submenu-toggle { width: 100%; min-height: 48px; justify-content: flex-start; padding: 0 16px; border-top: 1px solid rgb(255 255 255 / 16%); }
  .submenu { position: static; min-width: 0; box-shadow: none; }
  .submenu a { padding-left: 32px; }
  .has-submenu:hover .submenu { display: none; }
  .has-submenu.is-open .submenu, .has-submenu:focus-within .submenu { display: block; }
  #slider_area { aspect-ratio: 950 / 412; }
  #numbers { margin-top: 0; justify-content: center; padding: 8px 0; }
  #content { grid-template-columns: 1fr; padding-left: 0; }
  #content > .box { display: grid; grid-template-columns: minmax(120px, 42%) 1fr; align-items: center; }
  #content > .box .imgarea img { aspect-ratio: 290 / 124; }
  #sub_page_header { min-height: auto; }
  #sub_page_header .left { float: none; padding: 11px 0; text-align: left; }
  .sub_page, .content-shell { width: min(100% - 32px, 620px); margin-top: 20px; padding: 0; background: none; }
  .page_left, .page_left.content, .page_right { float: none; width: 100%; margin: 0; }
  .page_left { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-category .page_left { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page_left.content, #product_detail_left, #product_detail_right, #tabs, .page_left > .clear_space_h { grid-column: 1 / -1; }
  .box.product { width: 100%; border: 1px solid var(--line); }
  .box.product .imgarea { height: 320px; }
  .box.product .imgarea img { width: auto; max-height: 304px; }
  .page_right { margin-top: 24px; }
  #product_detail_left, #product_detail_right { float: none; width: 100%; margin-right: 0; }
  #product_detail_left img { width: auto; max-width: 100%; }
  #product_detail_right { padding: 12px 0 20px; }
  #tabs > ul { overflow-x: auto; }
  #tabs > ul li { flex: 0 0 auto; }
  .contact-layout, .contact-form { grid-template-columns: 1fr; }
  .form-field-wide { grid-column: auto; }
}

@media (max-width: 430px) {
  .header-inner { width: calc(100% - 20px); }
  .page_left { grid-template-columns: 1fr; }
  .page-category .page_left { grid-template-columns: 1fr; }
  .page_left.content, #product_detail_left, #product_detail_right, #tabs { grid-column: auto; }
  #content > .box { grid-template-columns: 1fr; }
  #content > .box .textarea { padding-bottom: 10px; }
  #tabs > ul li img { display: none; }
  .catalog-photo-grid, .catalog-video-grid { grid-template-columns: 1fr; }
}
