/*
Theme Name: Medicare
Theme URI: 
Author: 
Author URI: 
Description: Medicare is specially designed product packaged for Medical Healthcare by TemplatesJungle.
Version: 
*/

/*--------------------------------------------------------------
This is main CSS file that contains custom style rules used in this template
--------------------------------------------------------------*/

/*------------------------------------*\
    Table of contents
\*------------------------------------*/

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

CSS STRUCTURE:

1. VARIABLES

2. GENERAL TYPOGRAPHY
  2.1 General Styles
  2.2 Text Color & Weight
  2.3 Background Color
  2.4 Border Radius
  2.5 Section
    - Section Paddings
    - Section Margins
    - Section Title
    - Content width
  2.6 Buttons
    - Button Sizes
    - Button Shapes
    - Button Color Scheme
    - Button Aligns

3. CONTENT ELEMENTS
  - Dropdown
  - Svg Color
  - Search Bar

4. SITE STRUCTURE
  4.1 Header
  4.2 Intro
  4.3 Best Services Section
  4.4 Book Appointment Section
  4.5 Testimonial Section
  4.6 Our Team Section
  4.7 Faqs Section
  4.8 Tabs- Department Section
  4.9 Blog Section
  4.10 Brand Section
  4.11 Subscribe Section
  4.12 Footer

    
/*--------------------------------------------------------------
/** 1. VARIABLES
--------------------------------------------------------------*/
:root {
  --accent-color: #333;
  --black-color: #000;
  --dark-color: #4C5354;
  --primary-color: #47325f;
  --primary-color-200: #e8f1ec;
  --primary-color-400: #e8f1ed;
  --gray-color: #777F81;
  --bs-gray-300: #DCDCDC;
  --bs-light-rgb: rgba(255, 255, 255, 1);
  --bs-primary-rgb: rgba(74, 45, 101);
  --light-color: #fff;
  --swiper-theme-color: #111 !important;
  --cadet-blue-color: #9AB4B7;

}

/* on mobile devices below 600px
 */
@media screen and (max-width: 600px) {
  :root {
    --header-height: 100px;
    --header-height-min: 80px;
  }
}

/* Fonts */
:root {
  --body-font: "PT Serif", serif;
  --heading-font: "Open Sans", sans-serif;
}

/*----------------------------------------------*/
/* 2 GENERAL TYPOGRAPHY */
/*----------------------------------------------*/

/* 2.1 General Styles
/*----------------------------------------------*/
*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  box-sizing: border-box;
}

body {
  font-family: var(--body-font);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--accent-color);
  margin: 0;
}

ul.inner-list li,
ul>li {
  color: var(--dark-gray-color);
}

a {
  color: var(--dark-color);
  text-decoration: none;
  transition: 0.3s color ease-out;
}

a:hover {
  color: var(--primary-color);
}

a.light {
  color: var(--light-color);
}

a:hover.light {
  color: var(--light-color);
}

p {
  color: var(--gray-color);
}

b,
strong {
  font-weight: bold;
}

.highlight {
  background: var(--primary-color);
  color: var(--light-color);
}

.focus-transparent:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0);
}

/* 2.2 Text Color & Weight
/*----------------------------------------------*/
.text-primary {
  color: var(--primary-color) !important;
}

.text-primary-500 {
  color: var(--bs-primary-rgb) !important;
}

.text-primary-500:hover {
  color: var(--primary-color) !important;
}

.text-dark {
  color: var(--dark-color) !important;
}

.text-light {
  color: var(--light-color) !important;
}

.text-gray {
  color: var(--gray-color) !important;
}

.text-cadet-blue {
  color: var(--cadet-blue-color) !important;
}

.fw-semibold {
  font-weight: 600;
}

.fw-medium {
  font-weight: 500;
}

/* 2.3 Background Color
/*----------------------------------------------*/
.bg-light {
  background-color: var(--light-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-primary-200 {
  background-color: var(--primary-color-200) !important;
}

.bg-primary-dim {
  background-color: var(--bs-primary-rgb) !important;
}

/* 2.4 Border Radius
/*----------------------------------------------*/
.border-circle {
  border-radius: 50% !important;
}

.border-radius-10 {
  border-radius: 10px !important;
}

.border-radius-20 {
  border-radius: 20px !important;
}

.border-radius-30 {
  border-radius: 30px !important;
}

.border-radius-35 {
  border-radius: 35px !important;
}

.border-radius-top-10 {
  border-top-left-radius: 10px !important;
  border-top-right-radius: 10px !important;
}

.border-right {
  border-right: 1px solid var(--bs-gray-300);
}

/*--------------------------------------------------------------
/** 2.5 Section
--------------------------------------------------------------*/
/* - Section Padding
--------------------------------------------------------------*/
.padding-small {
  padding-top: 2em;
  padding-bottom: 2em;
}

.padding-medium {
  padding-top: 4em;
  padding-bottom: 4em;
}

.padding-large {
  padding-top: 7em;
  padding-bottom: 7em;
}

/* - Section Margin
--------------------------------------------------------------*/
.margin-small {
  margin-top: 3em;
  margin-bottom: 3em;
}

.margin-medium {
  margin-top: 5em;
  margin-bottom: 5em;
}

.margin-large {
  margin-top: 7em;
  margin-bottom: 7em;
}

@media only screen and (max-width: 768px) {

  .margin-small,
  .margin-medium,
  .margin-large {
    margin-top: 1em;
    margin-bottom: 1em;
  }
}

/* - Section Title
--------------------------------------------------------------*/
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--heading-font);
  font-weight: 500;
  line-height: 1;
}

h1.light,
h2.light,
h3.light,
h4.light,
h5.light {
  color: var(--light-color);
}

/* - Section width
--------------------------------------------------------------*/
.u-full-width {
  width: 100%;
  border: none;
}

.container-md {
  max-width: 1465px;
}

.container-lg {
  max-width: 1750px;
}

/*--------------------------------------------------------------
/** 2.6 Buttons
--------------------------------------------------------------*/
/* - Button Sizes
------------------------------------------------------------- */
.btn.btn-small {
  padding: 0.8em 1.8em;
  font-size: 0.65em;
}

.btn.btn-medium {
  padding: 1.1em 2.3em;
  font-size: 1em;
}

.btn.btn-large {
  padding: 0.8em 4.6em;
  font-size: 1.4em;
}

/* - Button Shapes
------------------------------------------------------------- */
.btn.btn-rounded,
.btn.btn-rounded::after {
  border-radius: 6px;
}

.btn.btn-pill,
.btn.btn-pill::after {
  border-radius: 2em;
}

/* button outline */
.btn.btn-outline-dark,
.btn.btn-outline-light,
.btn.btn-outline-accent,
.btn.btn-outline-primary {
  background: transparent;
  text-shadow: none;
  box-shadow: none;
  border: 2px solid transparent;
}

.btn.btn-outline-dark:hover::after,
.btn.btn-outline-light:hover::after {
  background-color: transparent;
}

.btn.btn-outline-dark {
  border-color: rgba(0, 0, 0, 1);
  color: var(--dark-color);
}

.btn.btn-outline-dark:hover {
  background: var(--dark-color);
  color: var(--light-color);
}

.btn.btn-outline-light {
  border-color: rgba(255, 255, 255, 1);
  color: var(--light-color);
}

.btn.btn-outline-gray {
  background: transparent;
  border-color: var(--gray-color-200);
  color: var(--dark-color);
}

.btn.btn-outline-gray:hover {
  color: var(--light-color) !important;
}

.btn.btn-outline-primary {
  background: transparent;
  border-color: var(--primary-color);
  color: var(--dark-color);
}

.btn.btn-outline-primary:hover {
  border-color: var(--dark-color);
  color: var(--dark-color) !important;
}

.btn.btn-full {
  display: block;
  margin: .85em 0;
  width: 100%;
  letter-spacing: 0.12em;
}

/* no border radius */
.btn-rounded-none,
.btn-rounded-none::after {
  border-radius: 0;
}

/* - Buttons Color Scheme
------------------------------------------------------------- */
.btn.btn-normal {
  text-decoration: none;
  border: none;
  font-weight: 600;
}

.btn.btn-normal:hover,
.btn.btn-normal:focus {
  box-shadow: none;
}

.btn.btn-accent {
  color: var(--light-color);
  background-color: var(--accent-color);
  border: none;
}

.btn.btn-accent:hover {
  color: var(--light-color) !important;
  background-color: var(--primary-color);
}

.btn.btn-black {
  background-color: var(--dark-color);
  color: var(--light-color);
  border: none;
}

.btn.btn-black:hover {
  color: var(--light-color);
}

.btn.btn-light {
  background-color: var(--light-color);
  color: var(--dark-color);
  border: none;
}

.btn.btn-light:hover {
  background-color: var(--dark-color);
  color: var(--light-color);
}

.btn.btn-primary {
  background-color: var(--primary-color);
  color: var(--light-color);
  border: none;
}

.btn.btn-primary:hover {
  background-color: var(--dark-color);
  color: var(--light-color);
}

/* - Buttons Aligns
------------------------------------------------------------- */
.btn-left {
  text-align: left;
  display: block;
}

.btn-center {
  text-align: center;
  display: block;
}

.btn-right {
  text-align: right;
  display: block;
}

/*--------------------------------------------------------------
/** 3.CONTENT ELEMENTS
--------------------------------------------------------------*/

/* - Dropdown
------------------------------------------------------------- */
.navbar-nav .dropdown-toggle::after {
  border: none;
}

.navbar-nav .dropdown-item:focus,
.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item.active,
.navbar-nav .dropdown-item:active {
  color: var(--primary-color);
  background-color: transparent;
}

.navbar-nav ul.dropdown-menu>li {
  font-size: 1em;
}

ul.dropdown-menu .dropdown-item {
  display: initial;
}

.navbar-nav ul.dropdown-menu.show {
  top: 27px;
}

/* - Svg Color
------------------------------------------------------------- */
svg.light-color {
  color: var(--light-color);
}

svg.dark-color {
  color: var(--dark-color);
}

svg.primary-color {
  color: var(--primary-color);
}

svg.primary-color-500 {
  color: var(--bs-primary-rgb);
}

/* - Search Bar
------------------------------------------------------------- */
form.search-form svg.search {
  bottom: 24px;
  z-index: 3;
}

@media only screen and (max-width: 991px) {
  #navbar-primary form.search-form {
    width: 100%;
  }

  form.search-form svg.search {
    right: 40px;
    bottom: 40px;
  }

  form.search-form input.form-control {
    background: var(--bs-gray-200);
  }
}

/*----------------------------------------------*/
/* 4 SITE STRUCTURE */
/*----------------------------------------------*/

/* 4.1 Header
/*----------------------------------------------*/
#primary-header.navbar {
  z-index: 9;
  padding-top: 0;
}

div#navbar-primary {
  box-shadow: 0px 2px 40px rgba(8, 70, 78, 0.10);
}

.navbar-nav li.nav-item {
  height: max-content;
}

.navbar-nav a.nav-link {
  line-height: 1.2;
}

.navbar-nav a.nav-link:hover,
.navbar-nav a.nav-link.active {
  color: var(--primary-color) !important;
}

.navbar button.navbar-toggler {
  z-index: 9;
}

.navbar button.navbar-toggler svg.navbar-icon {
  position: fixed;
  top: 10;
  right: 30px;
}

@media only screen and (max-width: 991px) {
  .navbar-toggler:focus {
    box-shadow: none;
  }

  #header .container {
    max-width: 980px;
  }

  #header .navbar {
    box-shadow: none;
  }

  /* .header-bottom.show {
    position: absolute;
    width: 60%;
    width: 100%;
    top: -10px;
    right: 0;
    padding: 40px 20px 80px 40px !important;
  } */

  .navbar-nav li.nav-item {
    font-size: 2.3em;
    font-weight: 400;
    height: max-content;
    border: none;
    padding-bottom: 20px;
  }
}

@media only screen and (max-width: 575px) {
  .header-top ul.contact-list {
    padding-top: 20px;
  }

  .header-top .btn-book {
    text-align: left !important;
  }

  .contact-list li {
    font-size: 14px;
    padding-right: 20px !important;
  }

  .navbar-nav li.nav-item {
    font-size: 1.3em;
  }

  .navbar button.navbar-toggler svg.navbar-icon {
    top: 0;
  }
}

@media only screen and (max-width: 1400px) and (min-width: 999px) {
  .get-pro {
    display: none;
  }
}

/* 4.2 Intro (Billboard) Section
/*----------------------------------------------*/
section#intro {
  margin-top: -30px;
}

#intro .banner-content {
  top: 10%;
  left: 16%;
  width: 34%;
}

@media only screen and (max-width: 1530px) {
  #intro .banner-content {
    top: -7%;
    left: 5%;
    width: 44%;
  }

  #intro img {
    width: 100%;
    height: 620px;
    object-fit: cover;
  }
}

@media only screen and (max-width: 1050px) {
  #intro .banner-content {
    width: 54%;
  }
}

@media only screen and (max-width: 550px) {
  #intro .banner-content {
    width: 90%;
  }
}

/* 4.3 Our Best Services Section
/*----------------------------------------------*/
#our-services .icon-box {
  transition: 0.3s ease-out;
}

#additional-services .icon-box {
  transition: 0.3s ease-out;
}

#our-services .icon-box:hover {
  box-shadow: 0px 2px 40px rgba(8, 70, 78, 0.10);
  margin-top: -3px;
}

#additional-services .icon-box:hover {
  box-shadow: 0px 2px 40px rgba(8, 70, 78, 0.10);
  margin-top: -3px;
}

#our-services .service-icon-box {
  box-shadow: 0px 2px 40px rgba(8, 70, 78, 0.10);

}

@media only screen and (max-width: 1399px) {
  #our-services .icon-box-content h3.card-title {
    font-size: 1.2em;
  }

  #our-services .icon-box-content p {
    font-size: 0.9em;
  }
}

@media only screen and (max-width: 767px) {
  #our-services .icon-box-content h3.card-title {
    font-size: 1.8em;
  }
}


/* 4.4 Book Appointment Section
/*----------------------------------------------*/
.contact-form select,
.contact-form input,
.contact-form .input-group input {
  width: 98%;
  height: 60px;
}

.contact-form .input-group input {
  padding-right: 450px;
}

.input-group span.input-group-text {
  right: 20px;
  height: 60px;
  line-height: 3;
}

.contact-form select.form-select {
  background-position: right 1.25rem center;
}

@media only screen and (max-width: 1399px) {
  .contact-form .input-group input {
    padding-right: 290px;
  }
}

@media only screen and (max-width: 767px) {
  .contact-form .input-group input {
    padding-right: 70px;
  }
}

@media only screen and (max-width: 575px) {
  #book-appointment .contact-form {
    display: block !important;
  }
}

/* 4.5 Testimonial Section
/*----------------------------------------------*/
#testimonial blockquote {
  padding: 50px;
}

.review-item svg.quote-up {
  left: -20px;
  top: 30px;
}

.review-item svg.quote-down {
  right: 70px;
  bottom: 118px;
}

.testimonial-swiper .swiper-horizontal>.swiper-pagination-bullets,
.testimonial-swiper .swiper-pagination-bullets.swiper-pagination-horizontal,
.testimonial-swiper .swiper-pagination-custom,
.testimonial-swiper .swiper-pagination-fraction {
  left: 53px;
  width: auto;
}

.swiper-pagination span.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: var(--swiper-pagination-bullet-inactive-color, #4d7b6b);
}

@media only screen and (max-width: 767px) {
  #testimonial .image-holder {
    display: none;
  }
}

/* 4.6 Our Team Section
/*----------------------------------------------*/
#our-team .swiper-horizontal>.swiper-pagination-bullets,
#our-team .swiper-pagination-bullets.swiper-pagination-horizontal,
#our-team .swiper-pagination-custom,
#our-team .swiper-pagination-fraction {
  bottom: -6px;
}

@media only screen and (max-width: 767px) {
  #our-team .team-member {
    flex-wrap: wrap;
  }
}

/* 4.7 Faqs Section
/*----------------------------------------------*/
.accordion .accordion-item {
  border-bottom: 1px solid var(--bs-gray-300) !important;
}

.accordion .accordion-button:not(.collapsed) {
  color: var(--dark-color);
}

.accordion .accordion-button::after {
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='plus' viewBox='0 0 16 16'%3E%3Cpath d='M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 2rem;
  width: 1.5rem;
  height: 1.5rem;
}

.accordion .accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='minus' viewBox='0 0 16 16'%3E%3Cpath d='M4 8a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 4 8z'/%3E%3C/svg%3E");
  transform: rotate(0deg);
}


/* 4.8 Tabs- Department Section
/*----------------------------------------------*/

.medical-department-tab .nav-tabs .nav-item.show .nav-link,
.medical-department-tab .nav-tabs .nav-link.active,
.medical-department-tab .nav-tabs .nav-link:hover {
  color: var(--light-color) !important;
  background-color: var(--primary-color);
}

@media only screen and (max-width: 1280px) {
  .medical-department-tab .tab-content .tab-pane {
    width: 100%;
  }

  .medical-department-tab .tab-content .tab-pane:after {
    background: none;
  }
}

@media only screen and (max-width: 680px) {
  #department .medical-department-tab {
    padding-left: 10px !important;
  }

  .medical-department-tab button {
    padding: 0;
    font-size: 14px;
  }

  .medical-department-tab .nav-tabs {
    padding: 0 !important;
  }

  .medical-department-tab .tab-content h2 {
    font-size: 23px;
  }

  .medical-department-tab .tab-content p {
    font-size: 15px;
  }
}


/* 4.9 Blog Section
/*----------------------------------------------*/
.post-grid .card-image span {
  bottom: 0;
  left: 0;
  padding: 5px 15px;
  letter-spacing: 1.2px;
}


/* 4.10 Brand Section
/*----------------------------------------------*/
#brand-collection .col .bottom-image {
  display: none;
}

#brand-collection .col:hover .bottom-image {
  display: inline;
}

#brand-collection .col:hover .top-image {
  display: none;
}


/* 4.11 Subscribe Section
/*----------------------------------------------*/
#subscribe input[type="text"] {
  width: 100%;
  background: transparent;
  border: 2px solid var(--light-color);
  height: 65px;
}

#subscribe button.btn-subscribe {
  right: 2px;
  bottom: 2px;
  width: 30%;
  height: 61px;
}

#subscribe input::placeholder {
  color: var(--light-color);
  opacity: 1;
}

#subscribe input:focus-visible {
  outline: transparent;
}

@media only screen and (max-width: 548px) {
  #subscribe button.btn-subscribe {
    bottom: -64px;
    width: 100%;
  }
}

/* 4.12 Footer Section
/*----------------------------------------------*/
.footer-menu ul.menu-list {
  column-count: 2;
}

.footer-menu table.schedule {
  width: 90%;
}

@media only screen and (max-width: 991px) {
  .footer-menu table.schedule {
    width: 100%;
  }
}


/*--------------------------------------------------------------
blog page style start
--------------------------------------------------------------*/
.page-item.active .page-link {
  z-index: 3;
  color: #fff;
  background-color: var(--dark-color);
  border-color: var(--dark-gray-color);
}

.page-link:hover {
  z-index: 2;
  color: var(--dark-color);
  background-color: #e9ecef;
  border-color: #dee2e6;
}

.page-link:focus {
  z-index: 3;
  color: var(--dark-color);
  background-color: #e9ecef;
  outline: 0;
  box-shadow: 0 0 0 0.25rem var(--dark-gray-color);
}

.page-link {
  color: var(--dark-color);
}



/*--------------------------------------------------------------
reviews page style start
--------------------------------------------------------------*/
.reviews-components {
  border: 1px solid var(--light-text-color);
  box-shadow: 0px 12px 90px rgba(12, 12, 12, 0.06);
  border-radius: 9px;
}

iconify-icon.quote {
  font-size: 60px;
  color: var(--bs-primary-rgb);
}



/*--------------------------------------------------------------
  Price page style
  --------------------------------------------------------------*/
.plan-post {
  border: 1px solid var(--primary-color);
}

span.price-tick {
  color: var(--accent-color);
}

.price-option {
  height: 320px;
}

.recommend-price {
  background: var(--primary-color);
}



/*--------------------------------------------------------------
  Gallery page style
  --------------------------------------------------------------*/

button.filter-button.gallery-btn {
  letter-spacing: 0.075rem;
  border: 2px solid var(--primary-color-400);
  background: transparent;
  color: var(--accent-color);
  border-radius: 30px;
  text-transform: uppercase;
  font-size: 1rem;
  transition: all 0.3s ease-in;
}

button.filter-button.gallery-btn.active {
  border: 2px solid var(--black-color);
}

button.filter-button.gallery-btn:hover {
  border: 2px solid var(--black-color);
}



/*--------------------------------------------------------------
  Booking page style
  --------------------------------------------------------------*/
.form-control:focus {
  border: 2px solid var(--black-color);
  box-shadow: none;
}



/*--------------------------------------------------------------
  Department page style
  --------------------------------------------------------------*/
span.price-tick {
  color: var(--primary-color);
}


/*--------------------------------------------------------------
CAMBIOS 
  --------------------------------------------------------------*/


/* --- CSS para garantizar el centrado y la reducción de ancho en vista de escritorio (>= 992px) --- */

@media (min-width: 992px) {
    /* 1. Reducción de ancho: Hace que el div del menú colapsable (que por defecto es ancho completo) se ajuste a su contenido. */
    #primary-header #navbar-primary {
        width: fit-content !important;
        /* Cambiamos a 'inline-block' para que 'text-align: center' lo pueda centrar */
        display: inline-block !important; 
    }
}

/* 2. Centrado Global: Centra el elemento 'inline-block' (#navbar-primary) dentro del contenedor principal. */
#primary-header .container {
    /* Esta propiedad centra los elementos 'inline-block' que contiene. */
    text-align: center; 
    /* Aseguramos que el contenedor se comporte como un bloque para que el centrado funcione correctamente. */
    display: block; 
}

.header-top {
    /* Opción 1: Establecer una altura fija (menos flexible) */
    /* height: 50px; */ 

    /* Opción 2: Reducir el relleno interno (más flexible) */
    padding-top: 5px !important; /* Ajusta el valor según sea necesario */
    padding-bottom: 5px !important; /* Ajusta el valor según sea necesario */
}

/* También puedes querer asegurar que la imagen no esté agregando altura extra */
.header-top .logo {
    max-height: 80px; /* Ajusta este valor si tu logo es el que está dominando la altura */
    width: auto;
}

/* CSS para centrar la imagen del logo verticalmente */
.navbar-brand {
    /* Usar display: flex y align-items: center en el contenedor del logo */
    display: flex;
    align-items: center;
    /* Asegúrate de que el enlace ocupe todo el alto disponible dentro de la columna */
    height: 100%; 
    padding-top: 0; /* Elimina cualquier padding superior que pueda estar forzando el desplazamiento */
    padding-bottom: 0; /* Elimina cualquier padding inferior */
}

.header-top .logo {
    max-height: 80px; /* Mantén el control de la altura máxima del logo */
    width: auto;
}












/* CSS personalizado para el menú de navegación flotante */

/* 1. Resetear el comportamiento inicial (sin cambios) */
#primary-header {
    position: relative; 
    transition: transform 0.3s, background-color 0.3s; 
    z-index: 1020; 
}

/* 2. Clase para el estado 'flotante' (Sticky) - AJUSTADA */
#primary-header.scrolling-sticky {
    position: fixed; 
    top: 0;
    z-index: 1030; 
    transition: transform 0.3s, margin-top 0.3s; 

    /* === CAMBIOS CLAVE: ELIMINAR ANCHOS FIJOS O GRANDES === */
    
    /* 1. Centrar Horizontalmente (MANTENEMOS ESTO) */
    left: 50%; 
    transform: translateX(-50%) translateY(-100%); 
    
    /* 2. Permitir que el ANCHO se ajuste al contenido. 
       Eliminamos max-width: 700px y width: 90%. */
    width: auto; /* <-- Aseguramos que el ancho se ajuste al contenido */
    
    /* 3. Estilos de Apariencia */
    background-color: white; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    border-radius: 10px; 
    
    margin-top: 15px; /* Margen superior al estar flotando */
}

/* 3. Clase para mostrar el menú cuando hacemos scroll UP (Sin cambios) */
#primary-header.scrolling-sticky.show-header {
    transform: translateX(-50%) translateY(0); 
}

/* Opcional: Asegurar que el UL no tenga márgenes que dicten el ancho */
#primary-header.scrolling-sticky .navbar-nav {
    /* Permite que el UL se encoja para adaptarse a sus elementos LI */
    width: auto !important; 
}

#primary-header.scrolling-sticky {
    /* ... otras propiedades ... */
    margin-top: 15px; /* <--- ESTE ES EL MARGEN SUPERIOR */
}

/* CSS para asegurar que la imagen cubra completamente su contenedor */
.banner img {
    width: 100%; /* Aseguramos 100% del ancho */
    height: auto; /* Mantenemos la proporción original */
    display: block; /* Elimina cualquier espacio fantasma debajo */
    /* Para banners que deben cubrir una altura mínima sin distorsión, usar object-fit: cover es ideal: */
    /* object-fit: cover; */
    /* min-height: 400px; */ /* Si quieres una altura mínima */
}




/* --- POSICIÓN DEL TEXTO (SUPERIOR IZQUIERDA CON MARGEN) --- */
#intro .banner-content {
    position: absolute; 
    
    /* DESPLAZAMIENTO SUPERIOR: Lo subimos más, con un pequeño margen desde el borde. */
    top: 0%; /* Posición principal (ajustable) */
    
    /* DESPLAZAMIENTO IZQUIERDA: Añadimos un margen de 20px desde el borde. */
    left: 10%; /* <--- MARGEN IZQUIERDO AÑADIDO */
    
    /* Desactivar el centrado y el ancho completo */
    right: auto; 
    margin: 0; 
    
    /* Limita el ancho del texto */
    max-width: 600px; 
    
    z-index: 10; 
}

/* --- ESTILOS PARA EL SELLO BBB DENTRO DEL CONTENIDO --- */

/* 1. MÁS ESPACIO ENTRE CTA y LOGO */
.bbb-container {
    /* El mt-5 en el HTML ya maneja el espacio. Esto es un seguro: */
    margin-top: 3rem !important; /* 3rem es un margen generoso (si mt-5 no funciona) */
    
    /* Aseguramos que el contenedor ocupe el ancho completo para centrar su contenido */
    width: 100%; 
    

}

/* 2. AUMENTAR TAMAÑO Y MANTENER CALIDAD */
/* Sobreescribimos el max-height para un control más fino. */
.bbb-container img {
    /* Define la altura máxima deseada (ej. 50px) */
    max-height: 50px; /* Puedes probar con 60px o más si lo quieres aún más grande */
    
    /* Asegura que el ancho se ajuste proporcionalmente y no se estire */
    width: auto !important; 
    
    /* Aseguramos que la imagen se comporte como un bloque para que el text-align funcione bien */
    display: inline-block; 
}

/* --- ESTILOS PARA LA SECCIÓN DE CONTADORES --- */

/* CLASE PERSONALIZADA PARA FORZAR BORDER-RADIUS A 40px */
.custom-card-radius {
    /* Forzamos el radio exacto solicitado */
    border-radius: 40px !important; 
    margin-top: 100px !important;
    /* Si la card tuviera un borde default, lo manejamos aquí: */
    /* border: none; */ 
}


/* CLASE PARA CONTROLAR LA COBERTURA VERTICAL DE LA IMAGEN DE FONDO */
.partial-service-bg {
    /* Mantiene el ancho total del contenedor (div.services-banner) */
    background-image: url(images/service1.jpg);
    background-repeat: no-repeat;
    background-size: cover; /* Asegura que cubra el ancho */
    
    /* Clave: La imagen solo se verá desde arriba hacia abajo hasta donde se defina. */
    /* Aquí forzamos que el fondo se centre arriba y NO se repita. */
    background-position: center top; 
    
    /* Clave: Ocultar la parte inferior de la imagen. 
       Esto hace que solo se vea la parte superior de la imagen (el título + una parte de las cards). */
    /* Puedes ajustar el porcentaje para subir o bajar el límite visible del fondo */
    /* Por ejemplo: background-size: 100% 70%; si quieres que solo cubra el 70% de la altura del div.services-banner */
}

/* Si quieres que el texto del título se vea mejor sobre la imagen, asegúrate del color */
.services-banner h2 {
    color: white !important; /* Si la imagen es oscura */
}


/* CLASE PARA APLICAR EL FONDO DE IMAGEN Y EL OVERLAY */
.dark-overlay-bg {
    position: relative;
    /* La imagen de fondo se define aquí en el CSS */
    background-image: url(images/service2.jpg); 
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% 90%; /* Mantenemos el tamaño parcial */
    overflow: hidden; /* Asegura que el overlay no se desborde */
}

/* PSEUDOELEMENTO PARA CREAR LA CAPA OSCURA SEMI-TRANSPARENTE */
.dark-overlay-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* CLAVE: Limitar la altura del overlay para que coincida con el background-size: 70% */
    height: 70%; 
    /* Fondo negro con 40% de opacidad (ajusta 0.4 si es necesario) */
    background-color: rgba(0, 0, 0, 0.4); 
    z-index: 1; /* Coloca la capa oscura sobre la imagen */
}

/* Asegura que el contenido (título y cards) esté sobre el overlay */
.dark-overlay-bg .col-12,
.dark-overlay-bg .col-lg-4 {
    position: relative;
    z-index: 2; 
}

.dark-overlay-bg-2 {
    position: relative;
    /* La imagen de fondo se define aquí en el CSS */
    background-image: url(images/service1.webp); 
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% 90%; /* Mantenemos el tamaño parcial */
    overflow: hidden; /* Asegura que el overlay no se desborde */
}

/* PSEUDOELEMENTO PARA CREAR LA CAPA OSCURA SEMI-TRANSPARENTE */
.dark-overlay-bg-2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* CLAVE: Limitar la altura del overlay para que coincida con el background-size: 70% */
    height: 70%; 
    /* Fondo negro con 40% de opacidad (ajusta 0.4 si es necesario) */
    background-color: rgba(0, 0, 0, 0.4); 
    z-index: 1; /* Coloca la capa oscura sobre la imagen */
}

/* Asegura que el contenido (título y cards) esté sobre el overlay */
.dark-overlay-bg-2 .col-12,
.dark-overlay-bg-2 .col-lg-4 {
    position: relative;
    z-index: 2; 
}

/* Reduce el tamaño del logo en el footer */
.footer-logo {
    /* Define un ancho máximo para controlar su tamaño, por ejemplo: */
    max-width: 50px; 
    /* O puedes usar un ancho fijo: */
    /* width: 150px; */
    
    /* Asegura que la altura se ajuste proporcionalmente */
    height: auto; 
}

/* Si quieres que se vea más pequeño en móviles, puedes usar media queries: */
@media (max-width: 768px) {
    .footer-logo {
        max-width: 100px; /* Se reduce aún más en pantallas pequeñas */
    }
}


.fixed-height-carousel {
    /* Altura definida para la sección del portafolio */
    height: 450px; 
    /* Oculta cualquier parte de la imagen que exceda la altura definida */
    overflow: hidden; 
}

/* * Asegura que CADA imagen dentro del carrusel ocupe la altura definida 
 * y se ajuste correctamente (cover) para evitar distorsiones.
 */
.carousel-img {
    /* Debe coincidir con la altura definida en .fixed-height-carousel */
    height: 450px; 
    /* Asegura que la imagen cubra el área sin estirarse (puede cortar bordes) */
    object-fit: cover;
}


/* ======================================================= */
/* 2. MEDIA QUERY PARA RESPONSIVIDAD (MÓVILES Y TABLETS) */
/* ======================================================= */

/* * Reduce la altura en dispositivos más pequeños para que la imagen 
 * no consuma demasiado espacio vertical.
 */
@media (max-width: 768px) {
    .fixed-height-carousel, 
    .carousel-img {
        height: 300px; /* Altura más cómoda para pantallas pequeñas */
    }
}

#additional-services {
    /* El !important es necesario para sobrescribir la clase de utilidad py-5 de Bootstrap
       que ya está aplicada en el HTML. */
    padding-top: 8rem !important;
}

/* ======================================================= */
/* ESTILOS PARA EL BOTÓN FLOTANTE DE WHATSAPP */
/* ======================================================= */

.whatsapp-float {
    /* Posicionamiento fijo para que el botón flote al hacer scroll */
    position: fixed;
    /* Ubicación en la esquina inferior derecha */
    bottom: 20px;
    right: 20px;
    /* Propiedades de visualización */
    width: 60px; /* Tamaño del área del botón */
    height: 60px;
    z-index: 1000; /* Asegura que esté por encima de otros elementos */
    /* Estilo visual (opcional: añadir fondo y sombra) */
    background-color: #25D366; /* Color verde de WhatsApp */
    border-radius: 50%; /* Lo hace circular */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* Centrar el icono */
    display: flex;
    justify-content: center;
    align-items: center;
    /* Transición suave al hacer hover */
    transition: transform 0.3s ease-in-out;
}

.whatsapp-float:hover {
    /* Efecto al pasar el mouse */
    transform: scale(1.1);
}

.whatsapp-icon {
    /* El icono debe ser un poco más pequeño que el área del botón */
    width: 35px; 
    height: 35px;
}

/* Opcional: Ajuste para pantallas más pequeñas (móviles) */
@media (max-width: 600px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
    .whatsapp-icon {
        width: 30px;
        height: 30px;
    }
}

.book-img-fit {
    width: 60%;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    margin: 0 auto;
}



/* Header actualziado  */

/* Corrección de variables y reseteo */
:root {
    --brand-color: var(--primary-color) /* Pon aquí tu color azul/naranja real, ej: #f05a28 */
}

#header {
    width: 100%;
    z-index: 999;
    position: relative;
    height: auto !important; /* Forzamos a que crezca */
    background: #fff;
}

.top-bar {
    background: #ffffff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

/* Iconos del top bar */
.primary-color {
    color: var(--brand-color) !important;
    font-size: 1.2rem;
}

.nav-bar {
    background: #8a949c !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative;
    display: block !important; /* Evita que colapse */
    height: auto !important;
}

/* Los enlaces del menú: Aquí es donde se cortaba */
.nav-bar .navbar-nav .nav-link {
    color: #ffffff !important;
    font-size: 14px !important;
    text-transform: uppercase;
    padding: 20px 15px !important; /* Aumentamos el padding vertical */
    line-height: 1 !important;
    display: inline-block;
    transition: 0.3s;
}

.nav-bar .navbar-nav .nav-link:hover,
.nav-bar .navbar-nav .nav-link.active {
    color: var(--brand-color) !important;
}

/* El botón Book Now */
.btn-pill {
    border-radius: 50px;
    padding: 10px 25px !important;
    font-weight: bold;
}

/* SOLUCIÓN AL RECORTE: Eliminar cualquier restricción de altura previa */
header, #header, .nav-bar, .navbar, .container, .row {
    height: auto !important;
    overflow: visible !important;
}

/* Si usas sticky header de la plantilla anterior, esto lo anula */
.fixed-top, .sticky-top {
    position: relative !important;
}

.sticky-top {
    top: 0;
    z-index: 1020; /* Asegura que pase por encima de las imágenes del carrusel */
    width: 100%;
}

/* Opcional: Si quieres que el menú sea un poco más delgado cuando flote */
.nav-bar.sticky-top .nav-link {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

/* Liberar el logo del footer de restricciones de la plantilla */
.footer-logo {
    display: block !important;
    width: 50px !important; /* Prueba con este valor alto primero */
    height: auto !important;
    max-height: none !important;
    max-width: none !important; /* Algunas plantillas limitan el max-width al 100% */
}

/* Si el contenedor (.footer-menu) es muy estrecho, forzamos que el logo pueda salirse */
.footer-menu {
    overflow: visible !important;
}









.google-review-btn {
    display: inline-flex;
    align-items: center;
    background-color: #ffffff;
    color: #3c4043;
    font-family: 'Roboto', sans-serif;
    font-weight: 700; /* Texto más negrita */
    padding: 12px 30px 12px 12px;
    border-radius: 12px;
    border: 1px solid #dadce0;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.google-review-btn:hover {
    background-color: #f8f9fa;
    transform: scale(1.05); /* Se agranda un poco al pasar el mouse */
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    color: #47325f; /* Tu color púrpura de marca */
}

.google-icon-wrapper {
    background-color: #ffffff;
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.btn-text {
    font-size: 22px; /* Texto grande y legible */
    letter-spacing: 0.5px;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .btn-text {
        font-size: 18px;
    }
    .google-icon {
        width: 40px !important;
        height: 40px !important;
    }
}



/* responsive ajustes  */

.navbar-brand img {
    height: auto;
    width: auto;
}

.hero-section {
    background-image: linear-gradient(to right, rgba(255,255,255,0.9) 30%, rgba(255,255,255,0) 100%), 
                      url('images/aterrizaje.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 85vh; /* Casi toda la pantalla */
    display: flex;
    align-items: center; /* Centra verticalmente */
    width: 100%;
  }

  /* 2. Ajuste de textos para que no se corten */
  .hero-content {
    max-width: 550px;
    text-align: left; /* Asegura alineación a la izquierda */
    padding: 15px;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 8vw, 3.5rem); /* Se ajusta solo según el tamaño de pantalla */
    line-height: 1.1;
    color: #111;
  }

  /* 3. Ajuste para Móviles */
  @media (max-width: 768px) {
    .hero-section {
      /* En móvil ponemos un fondo más sólido para leer bien */
      background: linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0.8)), 
                  url('images/aterrizaje.webp') no-repeat center center / cover;
      min-height: 60vh;
    }
    .hero-content {
      text-align: center; /* En móvil se ve mejor centrado */
      margin: 0 auto;
    }
  }



  #about-us {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  .custom-card-radius {
    border-radius: 15px;
    border: none;
  }

  /* Control total de espacios en móvil */
  @media (max-width: 768px) {
    #about-us .card-body {
      padding-top: 1.5rem !important; /* Menos espacio arriba dentro de la card */
      padding-bottom: 1rem !important;
    }
    
    #about-us .counter-info {
      margin-bottom: 1rem; /* Espacio mínimo entre filas de números */
    }

    .counter-number {
      font-size: 2rem !important; /* Números un poco más compactos */
    }

    .counter-description {
      font-size: 0.85rem;
      margin-top: -5px; /* Sube un poco el texto hacia el número */
    }
  }





  /* Ajustes para evitar recortes de texto */
  .value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px; /* Altura uniforme */
    word-wrap: break-word; /* Rompe palabras si es necesario */
    hyphens: auto;
  }

  .value-item p {
    font-size: 0.9rem; /* Un poco más pequeño para que quepa */
    line-height: 1.2;
    overflow-wrap: anywhere; /* Evita que el texto salga del recuadro */
  }

  .primary-color {
    color: #0d6efd; /* Cambia al color de tu marca */
    font-size: 1.5rem;
  }

  /* En móviles muy pequeños, reducimos un poco más la fuente */
  @media (max-width: 375px) {
    .value-item p {
      font-size: 0.75rem;
    }
    .value-item {
      padding: 10px 5px !important;
    }
  }

  .services-banner-custom {
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/tu-imagen.jpg'); /* Reemplaza con tu ruta */
    background-size: cover;
    background-position: center;
    padding: 60px 20px 120px 20px;
    border-radius: 15px;
    max-width: 1200px;
    margin: 0 auto;
  }






  /* --- ESTILO POR DEFECTO (Escritorio / Tablets grandes) --- */
.services-banner-custom {
    background: linear-gradient(rgba(71, 50, 95, 0.8), rgba(71, 50, 95, 0.8)), 
                url('images/service1.webp'); /* Capa púrpura + Imagen */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efecto Parallax opcional */
    padding: 60px 20px;
    border-radius: 15px;
}

/* --- CAMBIO PARA RESPONSIVE (Móviles / Tablets pequeñas) --- */
@media (max-width: 768px) {
    .services-banner-custom {
        background-image: none !important; /* Quitamos la imagen */
        background-color: #47325f !important; /* Tu color púrpura de marca */
        padding: 40px 15px;
    }
    
    .services-banner-custom h2 {
        font-size: 1.5rem;
        margin-bottom: 30px !important;
    }
}

/* Ajustes Generales */
.icon-box {
    height: 100%;
    transition: transform 0.3s ease;
    border: none;
}

.icon-box:hover {
    transform: translateY(-10px);
}

.border-radius-10 {
    border-radius: 10px;
}


/* --- CONFIGURACIÓN PARA ESCRITORIO --- */
.banner-service-2 {
    background: linear-gradient(rgba(71, 50, 95, 0.85), rgba(71, 50, 95, 0.85)), 
                url('images/service2.jpg'); /* Capa púrpura + Imagen 2 */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Mantiene el efecto de profundidad */
    padding: 60px 15px 100px 15px; 
    border-radius: 15px; 
    max-width: 1200px;
}

/* --- CONFIGURACIÓN PARA MÓVIL (Responsive) --- */
@media (max-width: 768px) {
    .banner-service-2 {
        background-image: none !important; /* Eliminamos imagen */
        background-color: #47325f !important; /* Color púrpura sólido */
        padding: 40px 15px 60px 15px; /* Ajustamos padding para móvil */
    }
}









/* Estilo Base (Web) */
.book-img-fit {
    width: 70%;
    height: auto;
    display: block;
}

/* --- AJUSTES RESPONSIVE --- */
@media (max-width: 991px) {
    #book-appointment {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    #book-appointment h2 {
        font-size: 2.2rem;
        line-height: 1.2;
        text-align: center;
    }

    #book-appointment .lead {
        font-size: 1.1rem;
        text-align: center;
    }

    #book-appointment .text-center {
        text-align: center !important;
    }

    /* Imagen al 100% de su ancho original sin recortar nada */
    .book-img-view img {
        max-width: 70%;
        height: auto !important; /* Evita el recorte */
        margin: 0 auto;
        display: block;
    }
}

/* Botón adaptable en móviles muy pequeños */
@media (max-width: 480px) {
    #book-appointment .btn-pill {
        width: 100%;
        padding: 15px 10px !important;
        font-size: 1rem !important;
    }
}


/* Imagen del mapa adaptable */
.map-img-responsive {
    width: 100%;
    height: auto;
    display: block;
    /* En escritorio, si el texto es muy largo, la imagen se ajustará sin recortarse */
    max-height: 100%; 
    object-fit: contain; 
}

/* Ajustes para Responsive */
@media (max-width: 991px) {
    #contact-map .col-lg-4 {
        padding: 40px 30px !important; /* Reducimos un poco el padding en móvil */
        text-align: center;
    }

    #contact-map .contact-info div {
        justify-content: center; /* Centramos los iconos y texto en móvil */
    }

    #contact-map .social-icons {
        justify-content: center;
        display: flex;
    }

    .map-img-responsive {
        /* Asegura que en móvil la imagen se vea completa de borde a borde */
        padding: 0; 
    }
}


@media (max-width: 991px) {
    .footer-logo {
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 20px !important;
    }
    
    /* Centra la tabla de horarios en móvil */
    .schedule {
        width: 100%;
        max-width: 350px; /* Evita que la tabla se estire demasiado */
    }
}









@media (max-width: 767px) {
    #carousel-content .carousel-item .col-12 img {
        height: 350px !important; /* Altura fija para que todas se vean iguales */
        object-fit: cover;
        width: 100%;
    }
    
    /* Asegura que los controles del carrusel se vean sobre el fondo */
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        background-color: rgba(71, 50, 95, 0.5); /* Tu púrpura con transparencia */
        border-radius: 50%;
        padding: 15px;
    }
}

/* Aplicar a ambos contenedores de portafolio */
#carousel-content .carousel-item img, 
#content-2 .carousel-item img {
    width: 100%;
    object-fit: cover;
}

@media (max-width: 767px) {
    /* Altura consistente en móvil para que no salte el diseño */
    #carousel-content .carousel-item img, 
    #content-2 .carousel-item img {
        height: 300px !important; 
    }
    
    /* Mejoramos visibilidad de flechas sobre imágenes oscuras */
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        background-color: #47325f; /* Tu púrpura */
        border-radius: 50%;
        background-size: 50%;
    }
}


.hero-section {
  padding-top: clamp(100px, 12vh, 160px);
  padding-bottom: 80px;
}
