/* --- Paleta de Colores --- */
:root {
    --primary-dark: #004e64; /* Azul oscuro del header superior */
    --primary-teal: #00a7b5; /* Turquesa de la navbar y headers */
    --light-gray: #e0e0e0;   /* Color del placeholder */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: smooth;
  }
}

body {
    font-family: sans-serif;
}

hr {
  margin: 1rem 0;
  color: inherit;
  border: 0;
  border-top: 1px solid;
  opacity: 0.25;
}

h6, .h6, h5, .h5, h4, .h4, h3, .h3, h2, .h2, h1, .h1 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
}

h1, .h1 {
  font-size: calc(1.375rem + 1.5vw);
}
@media (min-width: 1200px) {
  h1, .h1 {
    font-size: 2.5rem;
  }
}

h2, .h2 {
  font-size: calc(1.325rem + 0.9vw);
}
@media (min-width: 1200px) {
  h2, .h2 {
    font-size: 2rem;
  }
}

h3, .h3 {
  font-size: calc(1.3rem + 0.6vw);
}
@media (min-width: 1200px) {
  h3, .h3 {
    font-size: 1.75rem;
  }
}

h4, .h4 {
  font-size: calc(1.275rem + 0.3vw);
}
@media (min-width: 1200px) {
  h4, .h4 {
    font-size: 1.5rem;
  }
}

h5, .h5 {
  font-size: 1.25rem;
}

h6, .h6 {
  font-size: 1rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
}


/* --- Header Superior --- */
.top-header {
    background-color: var(--primary-dark);
    padding: 15px 0;
}

/* Simulación del Logo (Reemplazar con <img> si tienes el archivo) */
.brand-logo {
    color: white;
    font-weight: bold;
    font-size: 2rem;
    display: flex;
    align-items: center;
}
.brand-logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}
.brand-logo small {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Barra de Búsqueda */
.search-container .input-group {
    border-radius: 25px;
    overflow: hidden;
    background-color: white;
    padding: 0.5rem;
}
.search-container .form-control {
    border: none;
    box-shadow: none;
    padding-left: 20px;
}
.search-container .input-group-text {
    background-color: white;
    border: none;
    color: var(--primary-teal);
    font-size: 1.2rem;
    padding-right: 20px;
}

/* --- Barra de Navegación Principal --- */
.main-navbar {
    background-color: var(--primary-teal);
    padding: 0;
}
.main-navbar .nav-link {
    color: white !important;
    font-weight: bold;
    padding: 15px 30px;
    /*text-transform: uppercase;*/
}
.main-navbar .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
}

/* --- Contenido Principal --- */
.main-content-area {
    padding-top: 40px;
}

/* --- Sidebar Personalizado (Menú CATEGORIAS) --- */
.custom-sidebar-box {
    border: 2px solid var(--primary-dark);
    border-radius: 8px;
    border-bottom-right-radius: 30px; /* La esquina redondeada específica */
    border-bottom-left-radius: 30px; /* La esquina redondeada específica */
    overflow: hidden; /* Para contener el header */
    background-color: white;
}

.sidebar-box {
    border: 1px solid var(--primary-dark);
    border-radius: 8px;
    overflow: hidden; /* Para contener el header */
    background-color: white;
    margin-left: 4px;
}

/* El diseño complejo del título del sidebar */
.sidebar-title-container {
    position: relative;
    margin-top: -2px; /* Ajuste fino para superponer el borde superior */
    margin-left: -2px;
    margin-right: 20px; /* Espacio a la derecha para el efecto de corte */
}

.sidebar-header {
    background-color: var(--primary-teal);
    color: white;
    padding: 10px 15px;
    font-weight: bold;
    font-size: 1.2rem;
    /*text-transform: uppercase;*/
    /* Forma de polígono para el corte en diagonal a la derecha */
    clip-path: polygon(0 0, 90% 0, 100% 100%, 0% 100%);
    width: fit-content;
    padding-right: 30px;
}

.sidebar-header i {
    margin-right: 8px;
}

/* Lista de enlaces del sidebar */
.sidebar-list {
    list-style: none;
    padding: 20px 15px;
    margin: 0;
}

.sidebar-list li {
    text-decoration: none;
    color: var(--primary-dark);
    display: block;
    /*padding: 8px 0;*/
    display: flex;
    align-items: center;
    transition: color 0.2s;
    font-size: 1.2rem;
}
/* Icono pequeño antes de cada ítem (usando Font Awesome) */
.sidebar-list li::before {
    content: url('../assets/images/recursos/mark.jpg');
    /*content: '\f54b';  Código de icono similar a un bracket/I */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary-dark);
    margin-right: 10px;
    font-size: 0.8rem;
}

.sidebar-list li:hover,
.sidebar-list li.active {
    color: var(--primary-teal);
    font-weight: bold;
}
.sidebar-list li:hover::before,
.sidebar-list li.active::before {
    color: var(--primary-teal);
}

/* Personaliza la fuente del pie de pagina */


/* --- Placeholder de Imagen Derecha --- */
.placeholder-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px; /* Altura fija para simular el espacio */
}

/* SVG Vectorial para simular el placeholder gris de la imagen */
.placeholder-svg {
    fill: var(--light-gray);
    width: 60%;
    max-width: 400px;
}

/* --- Estilos Específicos de la Página de Contacto --- */

/* 1. Sección del Banner Hero */
.contact-hero-banner {
    position: relative;
    /* ALTO DEL BANNER: Ajusta según tu imagen real */
    height: 350px; 
    /* IMPORTANTE: Reemplaza la URL con tu imagen de banner real (la chica con brackets y el gráfico derecho) */
    background-image: url('../assets/images/banner-contact.png'); 
    background-size: cover;
    background-position: center;
    margin-bottom: 50px;
}

/* Etiqueta flotante "CONTÁCTENOS" */
.contact-banner-label {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    background-color: white;
    color: var(--primary-dark);
    padding: 15px 40px 15px 30px; /* Padding extra a la derecha */
    font-weight: 800;
    font-size: 1.8rem;
    text-transform: uppercase;
    border-top-right-radius: 40px;
    border-bottom-right-radius: 40px;
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}

/* El icono de la flecha (chevron) dentro de la etiqueta */
.contact-banner-label .label-icon {
    color: var(--primary-teal);
    font-size: 2.5rem;
    margin-right: 15px;
    font-weight: 900;
}

/* 2. Sección del Formulario */
.contact-form-section {
    padding-bottom: 80px;
}

/* Estilo de las etiquetas del formulario */
.form-label-teal {
    color: var(--primary-teal);
    font-weight: 500;
    margin-bottom: 0; /* Resetear margen inferior para alineación horizontal */
    padding-top: 10px; /* Ajuste fino para alinear verticalmente con los inputs */
}

/* Estilos personalizados para los Inputs y Textareas */
.form-control-custom {
    border: 1px solid var(--primary-teal);
    border-radius: 25px; /* Bordes muy redondeados como en la imagen */
    padding: 10px 20px;
    color: var(--primary-dark);
}

/* Ajuste específico para textareas para que los bordes coincidan mejor con la imagen */
textarea.form-control-custom {
    border-radius: 15px;
    resize: vertical; /* Permitir solo redimensionar verticalmente */
}

/* Estado de foco (cuando se hace clic en el input) */
.form-control-custom:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 167, 181, 0.25); /* Anillo de enfoque color turquesa */
    border-color: var(--primary-teal);
}

/* Botón de Enviar */
.btn-submit-custom {
    background-color: var(--primary-teal);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 60px; /* Botón ancho */
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-submit-custom:hover {
    background-color: var(--primary-dark); /* Cambio a azul oscuro al pasar el mouse */
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Estilo de seccion sobre nosotros*/
.background-general {
    background-color: rgb(0, 173, 188);
}

.background-info {
    background-image: url(../assets/images/home-doctor.png);
    background-repeat: no-repeat;
    background-position-x: right;
}

.custom-font{
    font-size: 1.2rem;
}

.sidebar-custom-header {
    font-size: 1.2rem;
    background: #004e64;
    color: white;
    margin-bottom: 0.5rem;
    font-weight: bold;
    width: 100%;
}

.contenedor-header {
  display: flex;
  /* justify-content: space-between;  Separa los elementos al inicio y final */
  align-items: center; /* Centra verticalmente si tienen distintas alturas */
  /* border: 1px solid #ccc;*/
  padding: 10px;
}

.imagen-icono {
  /*  width: 50px; Ajusta el tamaño de tus imágenes */
  height: auto;
}

.sub-menu-link:hover {
    background-color: #dcf4f5;
}
/*
.owl-nav {
    position: absolute;
}
.owl-prev {
    position: absolute;
    background: #004668 !important;
    padding: 10px !important;
    top: -14em;
    left: -4em;
    color: #d6d6d6 !important;
}
.owl-next {
    position: absolute;
    background: #004668 !important;
    padding: 10px !important;
    top: -14em;
    right: -73em;
    color: #d6d6d6 !important;
}
*/

/* Position the buttons on the sides of the carousel */
.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    /* Additional styling for size, color, etc. */
    font-size: 28px; /* Example size */
    color: #333; /* Example color */
    background: none;
    border: none;
    background: #ebf8f9 !important;
    padding: 10px !important;
}

.owl-carousel .owl-nav button.owl-prev {
    left: 10px;
}

.owl-carousel .owl-nav button.owl-next {
    right: 10px;
}

/* Contenedor principal */
.nav-carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: #00a7b5;
    color: white;
}

/* Carrusel de enlaces */
.nav-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.nav-carousel::-webkit-scrollbar {
    display: none; /* ocultar scrollbar para estética */
}

/* Estilos de los enlaces */
.nav-carousel a {
    flex: 0 0 auto;
    padding: 10px 20px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    white-space: nowrap;
    width: 100%;
    text-align: center;
}

.nav-carousel a:hover {
    background-color: #e9ecef;
    border-radius: 4px;
}

/* Flechas */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    z-index: 10;
}

.carousel-arrow.left {
    left: 0;
}

.carousel-arrow.right {
    right: 0;
}

.lists-container {
    /*display: flex;*/
    justify-content: space-between;
    position: relative;
    /*width: 90%;
    margin: 40px auto;*/
}
.lists-container ul {
    list-style: none;
    padding: 0;
}
.lists-container li {
    padding: 8px 12px;
    margin: 6px 0;
    /*background: #f1f1f1;*/
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}
/* SVG overlay */
#connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* no bloquea clicks */
}

/* Estilo del mega menú */
.dropdown-menu {
    border-top: 3px solid #004e64;
    animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
    from {opacity: 0; transform: translateY(10px);}
    to {opacity: 1; transform: translateY(0);}
    }
    .dropdown-item:hover {
        background-color: #eeeeee;
        color: #004e64;
        transition: all 0.3s ease;
    }

    /* Ajustes responsivos */
    @media (max-width: 991px) {
    .dropdown-menu {
        position: static !important;
        width: 100% !important;
        padding: 0.5rem 1rem !important;
    }
    .dropdown-menu .row {
        flex-direction: column;
    }
    .dropdown-menu .col-md-4 {
        margin-bottom: 1rem;
    }
}

/* Estilo moderno para breadcrumb */
.breadcrumb {
    background: transparent;
    font-size: 1.1rem;
}
.breadcrumb-item a {
    color: #00a7b5;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}
.breadcrumb-item a:hover {
    color: #004e64;
    transform: translateY(-2px);
}
.breadcrumb-item.active {
    color: #6c757d;
    font-weight: 600;
}
.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #adb5bd;
    font-weight: bold;
    margin: 0 0.5rem;
}
.dropdown-toggle::after {
    content: none;
}

.title-icon:before {
    /*content: url("../assets/images/iconos/icon-02.png");*/
    background-image: url('../assets/images/iconos/icon-02.png');
    background-size: 10px 20px;
    display: inline-block;
    width: 10px;
    height: 20px;
    margin-right: 4px;
    content:"";
}

.title-segment:before {
    background-image: url(../assets/images/iconos/icon-02.png);
    background-size: 14px 24px;
    display: inline-block;
    width: 14px;
    height: 24px;
    margin-right: 4px;
    content: "";
}

.container-title-item {
    border: 1px solid #cbcbcb;
    border-radius: 0px 20px 20px 0px;
}


.padre {
    display: table;
    height:120px;
}
.hijo {
    display: table-cell;
    vertical-align: middle;
}
.box-item {
    text-decoration: none !important;
    color: rgb(0, 101, 126);
    border: 1px solid #dfe6e9;
    border-radius: 0px 10px 10px 0px;
    padding-left: 1em;
}
/*div#seg-img-a {
    border: 2px solid #053b52;
    padding: 10px;
    border-radius: 10px;
}
*/
/*div#seg-img-b {  
    border: 2px solid #053b52;
    padding: 10px;
    border-radius: 10px;
}
*/

.img-segment {
    border: 2px solid #053b52;
    padding: 10px;
    border-radius: 10px; 
}
.menu-icon {
    padding: 8px;
    border-radius: 4px;
    color: #fff;
    font-weight: bold;
}

/* Set the size of the model viewer element */
model-viewer {
    width: 100%;
    height: 400px;
    background-color: #e6e6e6;
}

@media only screen and (max-width: 768px) {
    .brand-logo {
        padding-right: 3em;
        padding-left: 3em;
    }

    .background-info {
        background-color: rgb(0, 173, 188);
        background-image: none;
        background-repeat: no-repeat;
        background-position-x: right;
    }
}