/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #251f21;
  font-size: 100%;
  letter-spacing: 0.03em;
  font-family: "Conv_roboto-condensed.light", Sans-Serif;
}

body {
  font-size: 1em;
  line-height: 1.4;
  background-color: #f9f5f7;
}

::-webkit-scrollbar {
  width: 11px;
}
::-webkit-scrollbar-button {
  width: 11px;
  background-color: #999;
}
::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px 7px rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 6px 7px rgba(255, 255, 255, 0.7);
  background-color: #999;
}

::-webkit-scrollbar-thumb {
  border-radius: 0px;
  -webkit-box-shadow: inset 15px 15px 6px rgba(193, 193, 193, 1);
  box-shadow: inset 15px 15px 6px rgba(193, 193, 193, 1);
}

/* =============================================================================
   Links
   ========================================================================== */

a {
  color: #013372;
  text-decoration: none;
}
a:visited {
  color: #013372;
}
a:hover {
  color: #666;
  text-decoration: underline;
}
a:focus {
  outline: thin dotted;
}

/* Improve readability when focused and hovered in all browsers: h5bp.com/h */
a:hover,
a:active {
  outline: 0;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: C7F43B;
  text-shadow: none;
}

::selection {
  background: #c7f43b;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

.bggray {
  background-color: #eee;
}

/* TABLAS */
.mitabla {
  border: 0px solid #ccc;
  width: 100%;
  background-color: #eee;
}
.mitabla td {
  vertical-align: middle;
  text-align: center;
  border-right: 4px solid #fff;
  padding: 8px;
  font-size: 0.85em;
}
.mitabla th {
  color: #000;
  font-size: 1em;
  padding: 4px;
  border-right: 4px solid #fff;
  background-color: rgba(203, 203, 203, 1);
}

.mitabla tr {
  border-top: 4px solid #fff;
}

.mitabla tr:hover {
  background-color: #e0dddd;
}

.borde_tabla {
  border: 2px solid #efefef;
  width: 100%;
}
.borde_tabla td {
  border-top: 1px solid #efefef;
}

.flex-container {
  display: -webkit-flex;
  display: flex;
  width: 100%;
  height: auto;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-justify-content: center;
  justify-content: center;
}

/* =============================================================================
   Tables
   ========================================================================== */
/* 
 * 'border-collapse: collapse;' needs to be overridden in designs having tables with rounded corners and drop shadows.
*/
table {
  border-collapse: collapse;
  border-spacing: 0;
  overflow-x: auto;
}
td {
  vertical-align: top;
}

/* =============================================================================
   Chrome Frame Prompt
   ========================================================================== */

.chromeframe {
  margin: 0.2em 0;
  background: #ccc;
  color: black;
  padding: 0.2em 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

img {
  max-width: 100%;
  height: auto;
}
/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* Responsive map container */
.map-container {
  position: relative;
  padding-bottom: 42.86%; /* Aspect ratio based on original 700x300 (300/700 ≈ 0.4286) */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #f0f0f0; /* Optional: placeholder background */
  iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }
}

/* Optional: Adjust for smaller screens */
@media (max-width: 768px) {
  .map-container {
    padding-bottom: 56.25%; /* Switch to 16:9 on mobile for better fit */
  }
}

/* WhatsApp button styles */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 24px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  i {
    color: #fff;
    margin: 0;
    font-size: 28px;
  }
}
.whatsapp-float:hover,
.whatsapp-float:focus {
  background-color: #128c7e; /* Darker green on hover */
  text-decoration: none;
}

/* Top links styles */
.top-links {
  display: flex;
  align-items: center;
  justify-content: center;
}

/*Gtranslate styles*/

.main-menu .gtranslate_wrapper {
  display: none;
  @media (max-width: 600px) {
    display: block;
  }
}

.top-links .gtranslate_wrapper {
  display: block;
  @media (max-width: 600px) {
    display: none;
  }
}

.gtranslate_wrapper {
  width: fit-content;
}
.gtranslate_wrapper .gt_float_switcher .gt_options a {
  font-size: 0 !important;
  line-height: 0 !important;
}

.gtranslate_wrapper .gt_float_switcher .gt_options a > span {
  display: none !important;
}

.gtranslate_wrapper .gt_float_switcher .gt_options a::after {
  content: attr(data-gt-lang);
  text-transform: uppercase;
  font-size: 1rem;
  line-height: normal;
  color: #aaa !important;
  vertical-align: middle;
}
@media (min-width: 1024px) {
  .gt_options.gt-open {
    position: absolute !important;
    display: block !important;
  }
  .gt_options {
    display: none !important;
  }
  .gtranslate_wrapper .gt_float_switcher .gt_options a::after {
    color: #fff;
  }
}
.gt_options.gt-open {
  max-height: 270px !important;
  overflow-y: hidden !important;
}

.gt_options a:hover {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.gt_options a img {
  width: 20px;
}

.gt-selected {
  background-color: transparent !important;
}
.gt_float_switcher {
  background: transparent !important;
}
.gt_float_switcher {
  box-shadow: none !important;
}
.gt-lang-code {
  font-size: 15px !important;
  color: #fff;
}

.gt-current-lang img {
  width: 16px !important;
  margin-top: 4px !important;
}
/* fin styles gtranslate */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
  content: " "; /* 1 */
  display: table; /* 2 */
}

.clearfix:after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *:before,
  *:after,
  *:first-letter,
  *:first-line {
    background: transparent !important;
    color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]:after {
    content: " (" attr(href) ")";
  }

  abbr[title]:after {
    content: " (" attr(title) ")";
  }

  /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

  a[href^="#"]:after,
  a[href^="javascript:"]:after {
    content: "";
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  img {
    max-width: 100% !important;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
