@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

/* ==================================================
   RESET & BASE STYLES (Bootstrap 3 + Flatter Theme)
   ================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: sans-serif;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font: normal 14px "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  background-color: #fff;
  color: #2c3e50;
  overflow-x: hidden;
  line-height: 1.5;
}

a {
  cursor: pointer;
  text-decoration: none;
  color: #1abc9c;
  outline: 0;
  transition: all 0.2s;
}

a:hover, a:focus {
  outline: 0;
  text-decoration: none;
  color: #16a085;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  margin-top: 0;
  margin-bottom: 15px;
  text-rendering: optimizeLegibility;
  line-height: 1.1;
}

h1 { font-size: 30px; }
h2 { font-size: 22px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }

p {
  margin-top: 0;
  margin-bottom: 15px;
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  margin-top: 0;
  margin-bottom: 15px;
}

b, strong {
  font-weight: 700;
}

img {
  vertical-align: middle;
  border: 0;
  max-width: 100%;
  height: auto;
}

/* ==================================================
   GRID SYSTEM (Bootstrap 3 compatible)
   ================================================== */
.container {
  margin-right: auto;
  margin-left: auto;
  padding-left: 15px;
  padding-right: 15px;
}

@media (min-width: 768px) {
  .container { width: 750px; }
}
@media (min-width: 992px) {
  .container { width: 970px; }
}
@media (min-width: 1200px) {
  .container { width: 1100px; }
}

.row {
  margin-left: -15px;
  margin-right: -15px;
}

.row::before, .row::after,
.container::before, .container::after,
.clearfix::before, .clearfix::after {
  content: " ";
  display: table;
}

.row::after,
.container::after,
.clearfix::after {
  clear: both;
}

[class*="col-"] {
  position: relative;
  min-height: 1px;
  padding-left: 15px;
  padding-right: 15px;
}

.col-xs-12 { width: 100%; float: left; }

@media (min-width: 768px) {
  .col-sm-4 { width: 33.33333333%; float: left; }
  .col-sm-6 { width: 50%; float: left; }
  .col-sm-8 { width: 66.66666667%; float: left; }
  .col-sm-12 { width: 100%; float: left; }
}

@media (min-width: 992px) {
  .col-md-3 { width: 25%; float: left; }
  .col-md-4 { width: 33.33333333%; float: left; }
  .col-md-6 { width: 50%; float: left; }
  .col-md-8 { width: 66.66666667%; float: left; }
  .col-md-9 { width: 75%; float: left; }
  .col-md-12 { width: 100%; float: left; }
}

.text-left { text-align: left; }
.text-right { text-align: right; }
.text-center { text-align: center; }

/* ==================================================
   TOP BARS & HEADER
   ================================================== */
.top-bar {
  padding: 15px 0;
  font-size: 12px;
  background-color: #ecf0f1;
}

.top-bar.top-bar-blue {
  background-color: blue;
  color: #fff;
}

.top-bar-left .topbar-item {
  float: left;
  margin-right: 15px;
}

.top-bar-right {
  float: right;
}

.top-bar-right .topbar-item {
  float: left;
  margin-left: 15px;
}

.top-bar-blue a {
  color: #fff;
}

.top-bar-blue a:hover {
  text-decoration: underline;
  color: #fff;
}

#header {
  margin-bottom: 0;
  background-color: #fff;
  border-color: #fff;
  box-shadow: 0 3px 50px rgba(52, 73, 94, 0.1);
  position: sticky;
  top: 0;
  z-index: 10001;
}

#header .container {
  position: relative;
}

.mainmenu {
  display: table;
  width: 100%;
  text-align: left;
  position: relative;
}

.mainmenu .navbar-header {
  display: table-cell;
  vertical-align: middle;
  float: none;
}

.navbar-brand {
  display: inline-block;
  padding: 23px 15px;
  margin-right: 50px;
  line-height: 20px;
}

#logo .normal {
  display: inline;
  width: 200px;
  height: 54px;
}

#logo .retina {
  display: none;
  width: 200px;
  height: 54px;
}

@media only screen and (-webkit-min-device-pixel-ratio: 1.3),
       only screen and (min-resolution: 120dpi) {
  #logo .normal { display: none !important; }
  #logo .retina { display: inline !important; }
}

.mainmenu .navmenu-cell {
  display: table-cell;
  width: 100%;
  vertical-align: middle;
  text-align: right;
}

.navbar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-block;
  text-align: left;
}

.navbar-nav > li {
  position: relative;
  float: left;
  padding-top: 23px;
  padding-bottom: 23px;
}

.navbar-nav > li > a {
  display: block;
  padding: 15px 0;
  margin: 0 15px;
  color: #2c3e50;
  font-size: 14px;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  line-height: 20px;
}

.navbar-nav > li:hover > a,
.navbar-nav > li:focus-within > a,
.navbar-nav > li.current-menu-item > a,
.navbar-nav > li.current-menu-parent > a {
  color: #1abc9c;
  background-color: transparent;
}

.navbar-nav > li.has-children > a .menu-text::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 10px;
  vertical-align: middle;
  position: relative;
  top: -2px;
}

/* Dropdown Menu */
.navbar-nav ul.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 180px;
  margin: 0;
  padding: 5px 0;
  list-style: none;
  background-color: #fff;
  border: 1px solid #ecf0f1;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  z-index: 10002;
}

.navbar-nav > li.has-children:hover > ul.dropdown-menu,
.navbar-nav > li.has-children:focus-within > ul.dropdown-menu {
  display: block;
}

.navbar-nav li ul.dropdown-menu li {
  display: block;
}

.navbar-nav li ul.dropdown-menu li a {
  font-weight: 300;
  font-size: 11px;
  padding: 6px 15px;
  white-space: normal;
  display: block;
  line-height: 1.4;
  color: #000000;
}

.navbar-nav li ul.dropdown-menu li a .menu-text {
  font-size: 11px;
  font-family: 'Roboto', sans-serif;
}

.navbar-nav li ul.dropdown-menu li a:hover,
.navbar-nav li ul.dropdown-menu li.current-menu-item a {
  background-color: #ecf0f1;
  color: #1abc9c;
}

/* Mobile Menu (Pure CSS Checkbox Hack) */
.mobile-nav-toggle {
  display: none;
}

.mobile-menu-icon {
  display: none;
  font-size: 26px;
  line-height: 28px;
  height: 28px;
  position: absolute;
  top: 50%;
  margin-top: -14px;
  right: 20px;
  color: #1abc9c;
  cursor: pointer;
  user-select: none;
}

/* ==================================================
   HERO SLIDER (Revolution Slider Replica - Pure CSS)
   ================================================== */
.tt-slider {
  width: 100%;
  background-color: #1A98EA;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 15px -8px rgba(0, 0, 0, 0.25);
}

.tt-slider > input[type="radio"] {
  display: none;
}

.hero-slides-track {
  display: flex;
  width: 200%;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hero-slide {
  width: 50%;
  flex-shrink: 0;
  background-color: #1A98EA;
}

#hero-slide-1:checked ~ .hero-slides-track {
  transform: translateX(0%);
}

#hero-slide-2:checked ~ .hero-slides-track {
  transform: translateX(-50%);
}

.rev-slider-container {
  position: relative;
  max-width: 960px;
  height: 350px;
  margin: 0 auto;
}

.rev-layer {
  position: absolute;
  white-space: nowrap;
}

.rev-layer.large_text {
  left: 47px;
  top: 38px;
  color: #fff;
  text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5);
  font-weight: 700;
  font-size: 40px;
  line-height: 40px;
  font-family: Arial, Helvetica, sans-serif;
}

.rev-layer.sub_text_1 {
  left: 52px;
  top: 101px;
  font-size: 20px;
  line-height: 20px;
  font-weight: 400;
  font-family: Arial, Helvetica, sans-serif;
  color: #fff;
  text-shadow: rgba(0, 0, 0, 0.5) 0px 2px 5px;
}

.rev-layer.sub_text_2 {
  left: 56px;
  top: 138px;
  font-size: 20px;
  line-height: 20px;
  font-weight: 400;
  font-family: Arial, Helvetica, sans-serif;
  color: #fff;
  text-shadow: rgba(0, 0, 0, 0.5) 0px 2px 5px;
}

.rev-layer.btn_turnos {
  left: 51px;
  top: 172px;
}

.rev-layer.btn_urgencias {
  left: 51px;
  top: 243px;
}

.rev-layer.slider_logo {
  left: 729px;
  top: 46px;
}

.rev-layer.btn_contacto {
  left: 750px;
  top: 268px;
}

.tp-button {
  display: inline-block;
  padding: 6px 13px 5px;
  border-radius: 3px;
  color: #fff !important;
  text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.6) !important;
  font-size: 15px;
  line-height: 33px !important;
  font-family: Arial, sans-serif;
  font-weight: bold;
  letter-spacing: -1px;
  text-decoration: none;
  background-image: linear-gradient(to bottom, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 100%);
}

.tp-button.orange {
  background-color: #ff7700;
  box-shadow: 0px 3px 0px 0px #a34c00;
  font-size: 20px;
}

.tp-button.red {
  background-color: #cb1d1d;
  box-shadow: 0px 3px 0px 0px #7c1212;
  font-size: 20px;
}

.tp-button.lightgrey {
  background-color: #888;
  box-shadow: 0px 3px 0px 0px #555;
  font-size: 14px;
  letter-spacing: 0;
  line-height: 24px !important;
}

.tp-button:hover {
  filter: brightness(1.06);
}

/* Slider Arrows & Bullets */
.hero-nav-1,
.hero-nav-2 {
  display: none;
}

#hero-slide-1:checked ~ .hero-nav-1,
#hero-slide-2:checked ~ .hero-nav-2 {
  display: block;
}

.tp-leftarrow, .tp-rightarrow {
  display: block;
  position: absolute;
  top: 50%;
  margin-top: -20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  text-align: center;
  line-height: 40px;
  font-size: 20px;
  cursor: pointer;
  z-index: 20;
  user-select: none;
  transition: background 0.2s;
}

.tp-leftarrow:hover, .tp-rightarrow:hover {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
}

.tp-leftarrow { left: 20px; }
.tp-rightarrow { right: 20px; }

.tp-bullets {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 20;
}

.tp-bullet {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: 2px solid rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.tp-bullet:hover {
  background: rgba(255, 255, 255, 0.8);
}

#hero-slide-1:checked ~ .tp-bullets label:nth-child(1),
#hero-slide-2:checked ~ .tp-bullets label:nth-child(2) {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.45);
}

/* ==================================================
   PRIMARY CONTENT & SIDEBAR
   ================================================== */
.primary.section {
  padding: 0;
  background-color: #fff;
}

.primary.section .content,
.primary.section .sidebar {
  padding-top: 80px;
  padding-bottom: 80px;
}

.blox-element {
  margin-bottom: 50px;
}

.blox-element:last-child {
  margin-bottom: 0;
}

.blox-element h3.element-title {
  padding-bottom: 20px;
  border-bottom: 1px solid #f5f5f5;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 300;
  color: #2c3e50;
  margin-bottom: 15px;
}

.blox-element.divider {
  border-top: 1px solid #ecf0f1;
  clear: both;
  margin-top: 30px;
  margin-bottom: 30px;
}

/* Sidebar Widget Menu */
.sidebar .widget {
  margin-bottom: 30px;
}

.sidebar .widget ul.menu {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.sidebar .widget ul.menu li {
  list-style: none;
  margin-bottom: 4px;
}

.sidebar .widget ul.menu li a {
  color: #1abc9c;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
}

.sidebar .widget ul.menu li a:hover,
.sidebar .widget ul.menu li.current-menu-item a {
  color: #16a085;
}

/* ==================================================
   ACCORDION (Pure HTML/CSS <details>/<summary>)
   ================================================== */
.accordion.panel-group {
  margin-bottom: 20px;
}

details.panel1.panel-default {
  border: 1px solid #ecf0f1;
  border-radius: 4px;
  margin-bottom: 5px;
  background-color: #fff;
}

details.panel1.panel-default:last-child {
  margin-bottom: 25px;
}

details.panel1.panel-default > summary.panel-heading {
  background: #ecf0f1;
  color: #2c3e50;
  padding: 10px 15px;
  cursor: pointer;
  list-style: none;
  outline: none;
  user-select: none;
}

details.panel1.panel-default > summary.panel-heading::-webkit-details-marker {
  display: none;
}

details.panel1.panel-default > summary.panel-heading .panel-title {
  margin: 0;
  font-size: 16px;
  font-weight: 300;
  color: inherit;
  transition: color 0.2s;
}

details.panel1.panel-default > summary.panel-heading:hover .panel-title {
  color: #1abc9c;
}

details.panel1.panel-default > .panel-body {
  padding: 15px;
  border-top: none;
}

/* ==================================================
   TABS (Pure HTML/CSS Radio Inputs)
   ================================================== */
.css-tabs {
  position: relative;
}

.css-tabs > input[type="radio"] {
  display: none;
}

.css-tabs .nav-tabs {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  border-bottom: 1px solid #ecf0f1;
  display: flex;
  flex-wrap: wrap;
}

.css-tabs .nav-tabs > li {
  margin-bottom: -1px;
}

.css-tabs .nav-tabs > li > label {
  display: block;
  padding: 10px 15px;
  margin-right: 2px;
  font-size: 16px;
  font-weight: 300;
  color: #2c3e50;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 4px 4px 0 0;
  transition: color 0.2s;
}

.css-tabs .nav-tabs > li > label:hover {
  color: #1abc9c;
}

.css-tabs .nav-tabs > li > label .tab-check {
  margin-right: 0.5em;
  font-style: normal;
}

.css-tabs .tab-content > .tab-pane {
  display: none;
  padding-top: 15px;
}

#tab-radio-1:checked ~ .nav-tabs li:nth-child(1) label,
#tab-radio-2:checked ~ .nav-tabs li:nth-child(2) label {
  color: #1abc9c;
  background-color: #fff;
  border-color: #ecf0f1 #ecf0f1 transparent;
}

#tab-radio-1:checked ~ .tab-content #tab-pane-1,
#tab-radio-2:checked ~ .tab-content #tab-pane-2 {
  display: block;
}

/* ==================================================
   GALLERY SLIDER (Pure HTML/CSS Radio Carousel)
   ================================================== */
.css-gallery-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.css-gallery-slider > input[type="radio"] {
  display: none;
}

.css-gallery-slides {
  display: flex;
  width: 600%;
  transition: transform 0.45s ease-in-out;
}

.css-gallery-slide {
  width: 16.66666667%;
  flex-shrink: 0;
}

.css-gallery-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.nav-arrows-1,
.nav-arrows-2,
.nav-arrows-3,
.nav-arrows-4,
.nav-arrows-5,
.nav-arrows-6 {
  display: none;
}

.css-gallery-prev,
.css-gallery-next {
  display: block;
  position: absolute;
  top: 50%;
  margin-top: -1em;
  font-size: 1.5em;
  line-height: 1em;
  background-color: #16a085;
  width: 2em;
  height: 2em;
  text-align: center;
  color: #fff;
  cursor: pointer;
  padding: 0.45em 0;
  opacity: 0.85;
  transition: opacity 0.2s, background-color 0.2s;
  z-index: 10;
  user-select: none;
}

.css-gallery-prev:hover,
.css-gallery-next:hover {
  background-color: #1abc9c;
  color: #fff;
  opacity: 1;
}

.css-gallery-slider:hover .css-gallery-prev,
.css-gallery-slider:hover .css-gallery-next {
  opacity: 1;
}

.css-gallery-prev { left: 15px; }
.css-gallery-next { right: 15px; }

#g-slide-1:checked ~ .css-gallery-slides { transform: translateX(0%); }
#g-slide-2:checked ~ .css-gallery-slides { transform: translateX(-16.66666667%); }
#g-slide-3:checked ~ .css-gallery-slides { transform: translateX(-33.33333333%); }
#g-slide-4:checked ~ .css-gallery-slides { transform: translateX(-50%); }
#g-slide-5:checked ~ .css-gallery-slides { transform: translateX(-66.66666667%); }
#g-slide-6:checked ~ .css-gallery-slides { transform: translateX(-83.33333333%); }

#g-slide-1:checked ~ .nav-arrows-1,
#g-slide-2:checked ~ .nav-arrows-2,
#g-slide-3:checked ~ .nav-arrows-3,
#g-slide-4:checked ~ .nav-arrows-4,
#g-slide-5:checked ~ .nav-arrows-5,
#g-slide-6:checked ~ .nav-arrows-6 {
  display: block;
}

.swiper-pagination {
  position: absolute;
  bottom: 8px;
  text-align: center;
  width: 100%;
  z-index: 10;
}

.swiper-pagination label {
  margin: 2px;
  height: 9px;
  width: 9px;
  border: 1px solid #1abc9c;
  display: inline-block;
  border-radius: 5px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.5);
}

#g-slide-1:checked ~ .swiper-pagination label:nth-child(1),
#g-slide-2:checked ~ .swiper-pagination label:nth-child(2),
#g-slide-3:checked ~ .swiper-pagination label:nth-child(3),
#g-slide-4:checked ~ .swiper-pagination label:nth-child(4),
#g-slide-5:checked ~ .swiper-pagination label:nth-child(5),
#g-slide-6:checked ~ .swiper-pagination label:nth-child(6) {
  background-color: #1abc9c;
  border-color: #1abc9c;
}

/* ==================================================
   FORMS & GOOGLE MAP (Contáctenos)
   ================================================== */
input[type="text"],
input[type="email"],
textarea {
  display: block;
  width: 100%;
  height: 34px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.428571429;
  border: 1px solid #ecf0f1;
  border-radius: 4px;
  margin-top: 4px;
  margin-bottom: 15px;
  font-weight: 300;
  font-family: inherit;
  background-color: #ecf0f1;
  color: inherit;
  transition: all 0.2s;
}

textarea {
  height: auto;
}

input[type="text"]:hover,
input[type="email"]:hover,
textarea:hover,
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: #ecf0f1;
  background-color: #fff;
}

input[type="submit"] {
  outline: none;
  border: 1px solid #1abc9c;
  background-color: #1abc9c;
  margin-bottom: 15px;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.2s;
}

input[type="submit"]:hover {
  border-color: #16a085;
  background-color: #16a085;
}

.blox-gmap {
  margin-bottom: 30px;
  text-align: center;
}

.blox-gmap iframe {
  display: block;
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  border: 0;
}

/* ==================================================
   SUB-FOOTER
   ================================================== */
.sub-footer {
  padding: 30px 0;
  background-color: #2f477a;
  color: #fff;
  font-size: 11px;
}

/* ==================================================
   RESPONSIVE MEDIA QUERIES
   ================================================== */
@media only screen and (max-width: 991px) {
  .primary.section .col-md-9 .content {
    border-bottom: 3px double #ecf0f1;
  }

  .primary.section .content,
  .primary.section .sidebar {
    padding: 50px 0;
  }

  .mobile-menu-icon {
    display: block;
  }

  .mainmenu {
    display: block;
  }

  .mainmenu .navbar-header {
    display: block;
  }

  .mainmenu .navmenu-cell {
    display: none;
    width: 100%;
    text-align: left;
    border-top: 1px solid #ecf0f1;
    padding-bottom: 15px;
  }

  .mobile-nav-toggle:checked ~ .container .mainmenu .navmenu-cell {
    display: block;
  }

  .navbar-nav {
    display: block;
    width: 100%;
  }

  .navbar-nav > li {
    float: none;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .navbar-nav > li > a {
    padding: 8px 0;
  }

  .navbar-nav ul.dropdown-menu {
    position: static;
    display: block;
    width: 100%;
    box-shadow: none;
    border: none;
    padding-left: 15px;
  }

  .rev-slider-container {
    padding: 25px 20px;
    height: auto;
    min-height: 320px;
  }

  .rev-layer {
    position: static;
    white-space: normal;
    margin-bottom: 12px;
  }

  .rev-layer.slider_logo {
    margin-top: 15px;
  }
}

@media only screen and (max-width: 767px) {
  .top-bar-left .topbar-item,
  .top-bar-right .topbar-item,
  .top-bar-right {
    float: none;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }

  .top-bar .top-bar-left {
    margin-bottom: 6px;
  }
}
