/* ===== ESTRUCTURA GENERAL ===== */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* ===== BODY: configuración base de layout y tipografía ===== */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #3b2f2f;
  background-color: #fcf9f5;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Para que el footer quede abajo */
  padding-top: 100px;   /* Compensa el header fijo */
  padding-bottom: 2em;  /* Espacio para el footer */
}

/* ===== LAYOUT PRINCIPAL ===== */
main {
  flex: 1 0 auto; /* El contenido principal ocupa el espacio disponible */
}

footer {
  flex-shrink: 0; /* El footer no se encoge */
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  margin: 0 auto;
}

/* ===== FOOTER ===== */
footer {
  width: 100%;
  background-color: #f4e9dc;
  padding: 1em 0;
  font-size: 0.9em;
  color: #3b2f2f;
  text-align: center;
  border-top: 1px solid #d8cfc2;
}

/* ===== TEXTO EN FOOTER ===== */
footer p {
  font-size: 1.1em;
  margin: 0;
  padding: 0.5em 0;
}


h1, h2, h3 {
  color: #3b2f2f;
  font-weight: normal;
  margin-top: 0;
}

a {
  color: #5a3825;
  text-decoration: none;
  transition: 0.3s ease;
}

a:hover {
  background-color: #8b6a52; /* tono tierra más cálido */
  color: #f5f0e6; /* beige claro */
  text-decoration: none;
  border-radius: 4px;
  padding: 0.2em 0.4em;
}

.contenido,
section {
  max-width: 100%;
  margin: 1em;
  padding: 0 1em;
  box-sizing: border-box;
}

footer {
  background-color: #f4e9dc;
  padding: 2em 0;
  text-align: center;
  color: #3b2f2f;
  border-top: 1px solid #d8cfc2;
}

footer a {
  color: #6e4f3a;
}
.contenido-principal {
  max-width: 80%;
  margin: 0 auto;
  padding: 2em 1em;
  box-sizing: border-box;
}

.imagen-biografia {
  float: right;
  max-width: 350px;
  height: auto;
  margin: 0 0 1em 1em;
  border-radius: 8px;
}

/* Menú navegación hover */
nav ul li a {
  padding: 0.4em 0.8em;
  border-radius: 4px;
}

nav ul li a:hover {
  background-color: #8b6a52;
  color: #f5f0e6;
}

/* Formulario */
form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-top: 1em;
}

input[type="text"],
input[type="email"],
textarea {
  padding: 0.6em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1em;
}

button {
  background-color: #5a3825;
  color: #fff;
  border: none;
  padding: 0.6em 1.2em;
  font-size: 1em;
  border-radius: 4px;
  cursor: pointer;
  align-self: start;
}

button:hover {
  background-color: #3b2f2f;
}


.portada {
  background-image: url('images/living-room.jpg');
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0;
}


.presentacion {
  text-align: center;
  color: #f5f0e6;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
  padding: 1.5em 2em;
  background-color: rgba(0, 0, 0, 0.4); /* Fondo oscuro semitransparente */
  border-radius: 16px;
  display: inline-block; /* IMPORTANTE */
  max-width: 90%;
  margin: auto;
}

.presentacion h1 {
  font-size: 2.6em;
  margin: 0;
  font-family: 'Segoe UI', 'Verdana', sans-serif;
}

.presentacion h2 {
  font-size: 1.6em;
  margin-top: 0.5em;
  font-family: 'Segoe UI', 'Verdana', sans-serif;
}

article {
  margin-bottom: 2.5em;
}

article h3 {
  font-size: 1.3em;
  margin-bottom: 0.5em;
  margin-top: 1em;
  color: #5a3825;
  font-weight: 500;
}
/* ===== GRID DE SERVICIOS ===== */
.servicios-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2em;
  margin: 2em auto;
  padding: 0 1em;
  max-width: 1200px;
  box-sizing: border-box;
}

/* ===== TARJETA DE SERVICIO ===== */
.servicio-card {
  flex: 0 1 30%; /* cambia de 1 1 calc(...) */
  max-width: 30%;
  min-width: 260px;
  max-width: 100%;
  box-sizing: border-box;
}

.card-inner {
  position: relative;
  width: 100%;
  height: auto;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.servicio-card:hover .card-inner {
  transform: rotateY(180deg);
}

/* ===== CARAS DE LA TARJETA ===== */
.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background-color: #fefdf9;
  border: 1px solid #e0d5c0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1em;
  text-align: center;
  color: #3b2f2f;
  box-sizing: border-box;
}

/* ===== CARA FRONTAL ===== */
.card-front img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 280px;
  margin-bottom: 0.5em;
}

.card-front h3 {
  font-size: 1.2em;
}

/* ===== CARA POSTERIOR ===== */
.card-back {
  transform: rotateY(180deg);
  font-size: 0.95em;
}

/* ===== SECCIÓN PORTADA ===== */
main.portada,
section.portada,
.contenido.portada,
.portada,
.portada-panorama {
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
}

.portada,
.portada-panorama {
  height: 100vh;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== RESPONSIVE (móviles) ===== */
@media (max-width: 900px) {
  .servicio-card {
    flex: 1 1 100%; /* tarjetas de ancho completo en móviles */
  }
}

.testimonios {
  background-color: #fefaf3; /* tono muy claro, amigable */
  padding: 4em 1em;
  text-align: center;
}

.testimonios h2 {
  font-size: 2em;
  color: #5a3825; /* tu tono tierra */
  margin-bottom: 2em;
}

.testimonios-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: center;
}

.testimonio {
  background-color: #f4e9dc;
  border-radius: 12px;
  padding: 2em;
  max-width: 300px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.testimonio p {
  font-size: 1em;
  color: #3b2f2f;
  margin-bottom: 1em;
}

.testimonio span {
  font-size: 0.9em;
  color: #6e4f3a;
}


/* Responsive */
@media (max-width: 900px) {
  .servicios-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2em;
  margin: 2em auto;
  padding: 0 1em;
  max-width: 1200px;
  box-sizing: border-box;
}
  .servicio-card {
  flex: 1 1 calc(33.333% - 1.5em);
  perspective: 1000px;
  min-width: 200px;
  max-width: 100%;
  box-sizing: border-box;
}
}


.card-inner {
  height: 100%;
  aspect-ratio: 3 / 4;
}

.card-front img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

footer {
  padding: 1em 0;
  font-size: 0.9em;
}

.portada-clara {
  background-image: url('images/living-room-acuarela.jpg');
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.presentacion-destacada {
  text-align: center;
  color: #ffffff;
  text-shadow: 3px 3px 8px rgba(0,0,0,0.4);
  padding: 2em;
}

.presentacion-destacada h1 {
  font-size: 3.2em;
  margin: 0;
  font-weight: bold;
  font-family: 'Segoe UI', sans-serif;
}

.presentacion-destacada h2 {
  font-size: 1.6em;
  margin-top: 0.8em;
  font-weight: normal;
  font-family: 'Segoe UI', sans-serif;
}

.presentacion-destacada h3 {
  font-size: 1.3em;
  margin-top: 0.5em;
  font-weight: normal;
  font-family: 'Segoe UI', sans-serif;
}

.portada-panorama {
  background-image: url('images/living-room-acuarela.jpg');
  background-size: cover;
  background-position: center;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.presentacion-panorama {
  display: inline-block;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 0.6em 1.6em;
  border-radius: 12px;
  text-align: center;
  color: #fefaf3;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
  margin: auto;
  max-width: 90%;
}

.portada-panorama {
  background-image: url('images/living-room-acuarela.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  width: 100vw;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  
}

.portada-panorama {
  position: relative;
  left: 0 !important; 
  top: 0;
  width: 100vw !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  background-image: url('images/living-room-acuarela.jpg');
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.iconos-servicios {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  margin-top: 2em;
  text-align: center;
}

.icono {
  flex: 1 1 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.icono img {
  max-width: 80px;
  margin-bottom: 0.5em;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.icono p {
  font-size: 1em;
  color: #3b2f2f;
  font-weight: 500;
}

/* Centrar título principal en todas las páginas */
main h1 {
  text-align: center;
  font-size: 2em;
  margin: 2em auto 1em auto;
}

/* Menú responsivo */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f4e9dc;
  padding: 1em;
  position: relative;
  z-index: 1000;
}



nav ul {
  display: flex;
  list-style: none;
  gap: 1em;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin: 0;
}

@media (max-width: 768px) {
  

  nav ul {
    display: none;
    flex-direction: column;
    background-color: #f4e9dc;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    text-align: center;
    padding: 1em 0;
  }

  nav ul.mostrar {
    display: flex;
  }

  nav ul li {
    margin: 0.5em 0;
  }
}

header img.logo {
  height: 50px;
  width: auto;
}

@media (min-width: 769px) {
  nav ul {
    display: flex !important;
  }
}

nav.nav-principal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f4e9dc;
  padding: 1em;
  flex-wrap: wrap;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.logo {
  height: 50px;
  width: auto;
}

.logo-texto {
  font-size: 1.2em;
  font-weight: bold;
  color: #3b2f2f;
}

@media (max-width: 768px) {
  

.nav-menu {
  display: none;
  flex-direction: column;
  overflow: hidden;
  background-color: #f4e9dc;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}

.nav-menu.mostrar {
  display: flex;
  flex-direction: column;
  max-height: 500px;
  opacity: 1;
}

  .nav-menu li {
    text-align: center;
    margin: 0.5em 0;
  }
}

@media (min-width: 769px) {
  

  .nav-menu {
    display: flex !important;
    gap: 1em;
    align-items: center;
  }

  .nav-menu li {
    margin: 0;
  }
}

.logo-container a {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.5em;
}

/* Espaciado adicional para evitar superposición con el header */

main {
  padding-top: 4em;
  box-sizing: border-box;
}

/* Ajustes responsivos para portada */
.imagen-portada {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.texto-portada {
  position: absolute;
  top: 10%;
  left: 10%;
  right: 10%;
  text-align: center;
  color: #f5f2e9;
  text-shadow: 1px 1px 4px #000000;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  z-index: 2;
}
@media (max-width: 768px) {
  .texto-portada { top: 20%; font-size: clamp(1rem, 4.5vw, 2rem);}
}



.logo-texto {
  font-size: 1em;
  font-weight: normal;
  font-family: inherit;
  color: #3b2f2f;
}

@media (max-width: 768px) {
  *, *::before, *::after {
    box-sizing: border-box !important;
  }

  html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    position: relative;
    left: 0 !important;
    top: 0 !important;
  }

  header {
    position: fixed;
    top: 0;
    left: 0;
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw !important;
    height: auto;
    z-index: 1000;
    background-color: #f4e9dc;
  }

  nav.nav-principal {
    margin: 0 !important;
    padding: 0.5em 0.6em !important;
    width: 100vw !important;
    max-width: 100vw !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  header img.logo {
    height: 30px;
  }

  



  .portada, .portada-panorama {
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important; /* altura completa si quieres */
    min-height: 70vh;
    background-size: cover !important; /* MUY importante */
    background-position: center center !important;
    background-repeat: no-repeat !important;
    box-sizing: border-box !important;
    position: relative;
    left: 0 !important;
    top: 0 !important;
  }
}

.presentacion-panorama h1 {
  font-size: 4em;
  font-weight: bold;
  font-family: 'Parisienne', cursive;
  color: #f3e8d5;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  margin: 0; /* 🔧 elimina margen arriba y abajo */
}


.presentacion-panorama h2 {
  font-size: 1.2em;
  font-weight: normal;
  color: #f3e8d5;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  margin-top: -1em;
}

.presentacion-panorama h3 {
  font-size: 1em;
  font-weight: normal;
  color: #f3e8d5;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  margin-top: -1em;
}
.presentacion-panorama h2,
.presentacion-panorama h3 {
  margin: 0.3em 0 0 0; /* 🔧 ajusta márgenes: arriba 0.3em, resto 0 */
}


/* Submenú vertical desplegable bajo Servicios */
nav ul li {
  position: relative;
}

nav ul li ul.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  flex-direction: column;
  background-color: #f4e9dc;
  padding: 0.5em 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 999;
  list-style: none;
  margin: 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}



nav ul li ul.submenu li {
  width: 100%;
  padding: 0;
  margin: 0;
}

nav ul li ul.submenu li a {
  display: block;
  padding: 0.5em 1em;
  color: #5a3825;
  background-color: transparent;
  text-align: left;
  white-space: nowrap;
  font-family: 'Segoe UI', 'Verdana', sans-serif;
  font-size: 1em;
}

nav ul li ul.submenu li a:hover {
  background-color: #8b6a52;
  color: #f5f0e6;
  border-radius: 4px;
}

.titulo-seccion {
  font-size: 2em;
  font-weight: normal;
  text-align: center;
  margin: 1em 0;
  color: #3b2f2f;
}

.contenido-seccion p {
  font-size: 1.05em;
  margin-bottom: 1.5em;
}


nav ul.submenu li::after {
  content: none !important;
}

.imagen-experiencia {
  float: right;
  max-width: 350px;
  height: auto;
  margin: 0 0 1em 1em;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .imagen-experiencia {
    float: none;
    display: block;
    margin: 1.5em auto;
    max-width: 80%;
  }
}


@media (max-width: 768px) {
  .imagen-biografia {
    float: none;
    display: block;
    margin: 1.5em auto;
    max-width: 80%;
  }
}

/* Submenú Servicios en móviles */

@media (max-width: 768px) {
	
	.submenu {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  display: flex;
  flex-direction: column;
}

.submenu.visible {
  max-height: 500px;
  opacity: 1;
}

  nav ul li ul.submenu {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    display: none;
    background-color: #f4e9dc;
    box-shadow: none;
    padding: 0;
  }

  nav ul li ul.submenu.visible {
    display: flex;
    flex-direction: column;
  }
  
  

  .submenu-toggle {
    background: none;
    border: none;
    color: #5a3825;
    font-size: 1em;
    cursor: pointer;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    background-color: #f4e9dc;
    width: 100%;
    padding: 1em 0;
  }

  .nav-menu.mostrar {
    display: flex;
  }
}

.card-back a {
  display: inline-block;
  padding: 0.6em 1em;
  background-color: #5a3825;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  margin-top: 1em;
}

.card-back a:hover {
  background-color: #3b2f2f;
  color: #fefdf9;
}


.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5em;
  margin-right: 0.5em;
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #3b2f2f;
  transition: background-color 0.3s ease;
}

.menu-toggle.activo {
  border: 1px solid #3b2f2f;
  background-color: #f4e9dc;
}

.menu-toggle.activo span {
  background-color: #3b2f2f;
}

.menu-toggle:hover {
  background-color: #3b2f2f;
}

.menu-toggle:hover span {
  background-color: #f5f0e6;
}

.menu-toggle.activo:hover {
  background-color: #3b2f2f;
}

.menu-toggle.activo:hover span {
  background-color: #f5f0e6;
}


@media (min-width: 769px) {
  .menu-toggle {
    display: none !important;
  }
}


@media (min-width: 769px) {
  nav ul li:hover > ul.submenu {
    display: flex;
    flex-direction: column;
    opacity: 1;
    visibility: visible;
  }
}


@media (min-width: 769px) {
  nav > ul.nav-menu > li:not(:last-child) {
    border-right: 1px solid rgba(90, 56, 37, 0.2);
    margin-right: 0.8em;
    padding-right: 0.8em;
  }
}
@media (max-width: 768px) {
  nav ul.nav-menu > li {
    margin: 0 !important;
  }
}


@media (max-width: 768px) {
  nav ul li ul.submenu.visible {
    margin: 0;
    padding: 0;
    gap: 0;
  }

  nav ul li ul.submenu.visible li {
    margin: 0;
    padding: 0;
  }

  nav ul li ul.submenu.visible li a {
    display: block;
    font-size: 0.88em;
    line-height: 1.1;
    padding: 0.25em 0.8em;
    background-color: #e8ddcf; /* un poco más oscuro que #f4e9dc */
    color: #3b2f2f;
    text-align: center;
    border: none;
  }
}
@media (max-width: 768px) {
  nav ul.nav-menu > li {
    margin: 0.15em 0 !important; /* reduce el espacio entre todos los ítems del menú */
  }

  nav ul li ul.submenu.visible {
    margin: 0;
    padding: 0;
    gap: 0;
  }

  nav ul li ul.submenu.visible li {
    margin: 0;
    padding: 0;
  }

  nav ul li ul.submenu.visible li a {
    display: block;
    font-size: 0.88em;
    line-height: 1.1;
    padding: 0.4em 1em;
    background-color: #e0cdbc; /* tono tierra más oscuro para destacar */
    color: #3b2f2f;
    text-align: center;
    border-bottom: 1px solid #c8b39f; /* línea de separación clara pero sutil */
  }

  nav ul li ul.submenu.visible li:last-child a {
    border-bottom: 1px solid #c8b39f; /* mantener la línea para uniformidad */
  }
}
@media (max-width: 768px) {
  nav ul.nav-menu > li {
    border-bottom: 1px solid #e6d9c9; /* línea sutil entre botones del menú */
    margin: 0.15em 0 !important;
  }

  nav ul.nav-menu > li:last-child {
    border-bottom: none; /* evitar doble borde al final */
  }
}
@media (max-width: 768px) {
  nav ul.nav-menu > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6em 1em;
    font-size: 1em;
    color: #5a3825;
    text-decoration: none;
    height: 100%;
    line-height: 1.2;
  }
}
@media (max-width: 768px) {
  nav ul.nav-menu {
    gap: 0 !important;
  }

  nav ul.nav-menu > li {
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: none !important;
  }

  nav ul.nav-menu > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6em 1em;
    font-size: 1em;
    color: #5a3825;
    text-decoration: none;
    height: 100%;
    line-height: 1.2;
  }
}
@media (max-width: 768px) {
  nav ul li ul.submenu.visible li a {
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  nav ul li ul.submenu.visible li a:hover {
    background-color: #8b6a52; /* tono tierra oscuro */
    color: #f5f0e6; /* beige claro */
  }
}
@media (max-width: 768px) {
  .nav-menu {
    display: flex; /* Siempre flex */
    flex-direction: column;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.8s ease, opacity 0.8s ease;
    background-color: #f4e9dc;
  }

  .nav-menu.mostrar {
    max-height: 400px; /* Ajusta este valor a lo que necesitas */
    opacity: 1;
  }
}

@media (max-width: 768px) {
  nav ul li ul.submenu {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: max-height 0.8s ease, opacity 0.8s ease, visibility 0s linear 0.8s;
    background-color: #f4e9dc;
  }

  nav ul li ul.submenu.visible {
    max-height: 300px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: max-height 0.8s ease, opacity 0.8s ease;
  }
}



@media (max-width: 768px) {
  body.portada-activa main{
    padding-top: 0 !important;
  }
}

@media (max-width: 768px) {
  .testimonios-grid {
    flex-direction: column;
    align-items: center;
  }

  .testimonio {
    max-width: 90%;
    width: 100%;
  }
}
@media (max-width: 768px) {
  header {
    height: 80px !important; /* Aumenta la altura del header */
    padding: 0.5em 1em !important; /* Un poco más de aire lateral */
  }

  .logo-container img.logo {
    height: 50px !important; /* Aumenta el tamaño del logo */
    width: auto;
  }

  .menu-toggle {
    width: 40px !important; /* Botón hamburguesa más grande */
    height: 40px !important;
    margin-right: 1em;
    padding: 0.5em !important;
    gap: 6px !important; /* Espacio entre las líneas del hamburguesa */
  }

  .menu-toggle span {
    height: 3px !important; /* Las líneas del botón también un poquito más gruesas */
  }
}
main.contenido-principal img.imagen-biografia,
main.contenido-principal img.imagen-experiencia,
main.contenido-principal img.imagen-modelo,
main.contenido-principal img.imagen-psicoterapia,
main.contenido-principal img.imagen-supervision,
main.contenido-principal img.imagen-autocuidado {
  float: right !important;
  max-width: 350px !important;
  height: auto !important;
  margin: 0 0 1em 1em !important;
  border-radius: 8px !important;
}

@media (max-width: 768px) {
  main.contenido-principal img.imagen-biografia,
  main.contenido-principal img.imagen-experiencia,
  main.contenido-principal img.imagen-modelo,
  main.contenido-principal img.imagen-psicoterapia,
  main.contenido-principal img.imagen-supervision,
  main.contenido-principal img.imagen-autocuidado {
    float: none !important;
    display: block !important;
    margin: 1.5em auto !important;
    max-width: 80% !important;
    height: auto !important;
  }
}

img.imagen-modelo {
  width: auto !important;
  max-width: 350px !important;
  float: right !important;
  margin: 0 0 1em 1em !important;
  border-radius: 8px !important;
  display: inline !important;
  height: auto !important;
}

@media (max-width: 768px) {
  img.imagen-modelo {
    float: none !important;
    display: block !important;
    margin: 1.5em auto !important;
    max-width: 80% !important;
    height: auto !important;
  }
}
img.imagen-modelo {
  width: auto !important;
  max-width: 350px !important;
  float: right !important;
  margin: 0 0 1em 2em !important; /* AQUI: aumentamos de 1em a 2em el margen izquierdo */
  border-radius: 8px !important;
  display: inline !important;
  height: auto !important;
}

@media (max-width: 768px) {
  .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    margin: 1em 0 0 0; /* <--- Aquí agregamos espacio arriba del menú */
    padding: 0;
    background-color: #f4e9dc;
    box-sizing: border-box;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
    list-style: none;
    padding: 0.5em 0;
    margin: 0;
  }

  .nav-menu li a {
    display: block;
    width: 100%;
    padding: 0.5em 0;
    text-decoration: none;
    color: #5a3825;
  }
}
/* Solo afecta a la página de login */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
    background-color: #f9f6f2;
}

/* Contenedor del formulario */
.login-page .login-container {
    background-color: #ffffff;
    margin-top: 60px;
    padding: 30px 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

/* Títulos */
.login-page .login-container h2 {
    margin-bottom: 25px;
    font-family: 'Parisienne', cursive;
    font-size: 32px;
    color: #5c4033;
}

/* Formularios */
.login-page .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.login-page .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #5c4033;
}

.login-page .form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
}

/* Botón */
.login-page button[type="submit"] {
    background-color: #5c4033;
    color: #ffffff;
    padding: 12px;
    width: 100%;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.login-page button[type="submit"]:hover {
    background-color: #3e2d24;
}

/* Mensaje de error */
.login-page .error-msg {
    color: red;
    margin-bottom: 15px;
}


/* ===== Dashboard Clínico Estilo Armónico ===== */

.dashboard-layout {
  display: flex;
  flex: 1;
  min-height: 100vh;
}

/* Sidebar */
.dashboard-sidebar {
  width: 220px;
  min-width: 220px; /* 👈 NUEVO: evita que se achique */
  background-color: #f8f1e7;
  color: #5a4a42;
  margin-top: 60px;
  padding-top: 20px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}


.dashboard-sidebar a {
  display: block;
  white-space: nowrap; /* 👈 NUEVO: evita salto de línea */
  overflow: hidden;
  text-overflow: ellipsis; /* 👈 NUEVO: si un texto fuera muy largo, pone "..." */
  color: #5a4a42;
  padding: 15px 20px;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
  font-family: 'Segoe UI', Verdana, serif;
}


.dashboard-sidebar a:hover,
.dashboard-sidebar a.active {
  background: #e5d7c7;
  color: #3d2f28;
  border-left: 4px solid #8b5a2b;
  padding: 15px 20px; /* Evita cambios raros en tamaño */
  border-radius: 0; /* Sin bordes redondeados */
}

/* Área de contenido principal */
.dashboard-main {
  flex: 1 1 auto;
  background-color: #fbf8f6; /* Color de fondo contenido */
  padding: 20px;
  display: flex;
  flex-direction: column;
}

/* Contenido cargado dinámicamente */
.dashboard-content {
  background: white;
  margin-top: 80px;
  padding: 20px 20px 20px 20px; /* 👈 Esto es: arriba, derecha, abajo, izquierda */
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
  font-family: 'Segoe UI', Verdana, serif;
  color: #5a4a42;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box; /* Muy importante */
  overflow-y: auto; /* 👈 NUEVO: scroll vertical interno */
  min-height: 0;    /* 👈 NUEVO: flexbox permite reducir tamaño si necesario */
}

/* Botón de cerrar sesión */
.btn-logout-dashboard {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  width: auto; /* 👈 NUEVO */
  background-color: #8b5a2b;
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  font-family: 'Segoe UI', Verdana, serif;
  font-size: 16px;
  font-weight: normal;
  box-shadow: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  align-self: flex-start;

}


.btn-logout-dashboard:hover {
  background-color: #5a3a1a;
  color: white;
  /* Se fijan las propiedades para evitar saltos */
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  font-weight: normal;
  box-shadow: none;
}

.dashboard-body {
  display: flex;
  flex: 1;
}


/* ===== Fin Dashboard Clínico Estilo Armónico ===== */


/* ===== Agenda Clínica Estilos ===== */

/* Estilos para el formulario emergente */
#formularioOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#formulario {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  width: 90%;
  max-width: 400px;
  font-family: 'Segoe UI', Verdana, serif;
  color: #5a4a42;
}

#formulario input[type="text"],
#formulario input[type="datetime-local"] {
  width: 100%;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: 'Segoe UI', Verdana, serif;
}

.form-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.form-buttons button {
  padding: 10px 20px;
  background-color: #8b5a2b;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Segoe UI', Verdana, serif;
}

.form-buttons button:hover {
  background-color: #5a3a1a;
}

/* ===== Fin Agenda Clínica Estilos ===== */


/* ===== Ajustes responsivos para Agenda Clínica ===== */

@media (max-width: 768px) {
  .fc .fc-button {
    padding: 2px 6px;
    font-size: 12px;
    min-width: auto;
  }
}

/* ===== Ajuste de altura para calendario y prevenir superposición con footer ===== */

#calendar {
  flex: 1 1 auto;
  min-height: 0; /* Ajusta si quieres más o menos espacio */
  max-height: calc(100vh - 180px); /* Impide que se coma el footer */
  overflow-y: auto;
  width: 100%;
}
.logout-link {
  display: block;
  margin-top: auto; /* 👈 Hace que se pegue abajo */
  color: #8b5a2b;
  background-color: #f8f1e7;
  padding: 15px 20px;
  text-decoration: none;
  font-family: 'Segoe UI', Verdana, serif;
  /*font-weight: bold;*/
  border-top: 1px solid #e5d7c7;
  transition: background 0.3s, color 0.3s;
}

.logout-link:hover {
  background-color: #e5d7c7;
  color: #5a3a1a;
}
/* ===== Formulario de Pacientes ===== */

.formulario-paciente {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 👈 Dos columnas iguales */
  gap: 20px; /* 👈 Espacio entre columnas y filas */
  margin-top: 20px;
}

.formulario-paciente label {
  font-weight: bold;
  font-family: 'Segoe UI', Verdana, serif;
  grid-column: span 2; /* 👈 Los labels ocupan las dos columnas */
}

.formulario-paciente input,
.formulario-paciente select,
.formulario-paciente textarea {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: 'Segoe UI', Verdana, serif;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
}

.formulario-paciente textarea {
  grid-column: span 2; /* 👈 El textarea ocupa todo el ancho */
}

.boton-guardar {
  grid-column: span 2; /* 👈 El botón también ocupa todo el ancho */
  margin-top: 20px;
  padding: 12px 20px;
  background-color: #8b5a2b;
  color: white;
  border: none;
  border-radius: 8px;
  font-family: 'Segoe UI', Verdana, serif;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.boton-guardar:hover {
  background-color: #5a3a1a;
}
.formulario-paciente {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Dos columnas */
  gap: 20px;
  margin-top: 20px;
}

.formulario-paciente .form-group {
  display: flex;
  flex-direction: column;
}
.contenido-interno {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
  font-family: 'Segoe UI', Verdana, serif;
  color: #5a4a42;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-height: 0; /* Muy importante para evitar altura forzada */
  overflow-y: auto;
  margin-top: 0; /* 👈 Evitamos el espacio innecesario */
}
.contenido-interno h2{
  text-align: center;
}

/* ===== Listado de Pacientes ===== */

.listado-pacientes {
  width: 100%;
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
  font-family: 'Segoe UI', Verdana, serif;
  color: #5a4a42;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tabla-pacientes {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.tabla-pacientes th,
.tabla-pacientes td {
  border: 1px solid #e0d8ce;
  padding: 10px;
  text-align: left;
}

.tabla-pacientes th {
  background-color: #f8f1e7;
}

.tabla-pacientes tr:nth-child(even) {
  background-color: #fbf8f6;
}

.acciones-pacientes {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}

.btn-agregar-paciente {
  background-color: #8b5a2b;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: 'Segoe UI', Verdana, serif;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-agregar-paciente:hover {
  background-color: #5a3a1a;
}

/* ===== Fin Listado de Pacientes ===== */

/* ===== Acciones en Tabla de Pacientes ===== */

.tabla-pacientes .acciones {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.btn-accion {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-accion:hover {
  transform: scale(1.2);
}

/* ===== Fin Acciones en Tabla de Pacientes ===== */
/* ===== Corrección de Tabla sin Scroll Horizontal ===== */

.dashboard-content {
  overflow-x: hidden; /* 👈 No permitimos scroll horizontal del dashboard */
}

.listado-pacientes {
  width: 100%;
  max-width: 100%;
  overflow-x: auto; /* Solo permite scroll si realmente es necesario */
  box-sizing: border-box; /* Muy importante para respetar padding y borders */
}

.tabla-pacientes {
  width: 100%;
  max-width: 100%;
  table-layout: fixed; /* 👈 Controla que las celdas se adapten al ancho */
  border-collapse: collapse; /* Reduce espacio entre celdas */
}

.tabla-pacientes th,
.tabla-pacientes td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 150px; /* Ajusta si quieres más o menos corte */
  box-sizing: border-box; /* 👈 Evita expandirse por padding */
  padding: 10px;
}

/* ===== Fin Corrección de Scroll ===== */
/* ===== Vista de Pacientes sin tabla tradicional ===== */

.contenedor-pacientes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.paciente-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 10px;
  border-bottom: 1px solid #e0d8ce; /* Línea separadora suave */
  background: #fff;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.paciente-item:hover {
  background-color: #f8f1e7;
}

.datos-paciente {
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', Verdana, serif;
  color: #5a4a42;
  gap: 3px;
}

.datos-paciente .rut {
  font-size: 14px;
  font-weight: bold;
}

.datos-paciente .nombre {
  font-size: 16px;
}

.datos-paciente .fecha {
  font-size: 13px;
  color: #7a6a5f;
}

.acciones-paciente {
  display: flex;
  gap: 10px;
}

.btn-accion {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-accion:hover {
  transform: scale(1.2);
}

/* ===== Fin Vista de Pacientes minimalista ===== */

/* ===== Barra Superior de Pacientes ===== */

.barra-superior-pacientes {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 20px;
}

.input-buscador {
  flex: 1;
  padding: 10px 15px;
  font-size: 15px;
  border: 1px solid #e0d8ce;
  border-radius: 8px;
  font-family: 'Segoe UI', Verdana, serif;
  color: #5a4a42;
  background-color: #fbf8f6;
}

.input-buscador::placeholder {
  color: #9c8f86;
}

/* El botón de agregar paciente ya está estilizado en .btn-agregar-paciente */

@media (max-width: 768px) {
  .barra-superior-pacientes {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-agregar-paciente {
    width: 100%;
    margin-top: 10px;
  }
}

.dashboard-content .formulario-container {
  padding: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
  font-family: 'Segoe UI', Verdana, serif;
  color: #5a4a42;
}

.dashboard-content .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.dashboard-content .form-group {
  display: flex;
  flex-direction: column;
}

.dashboard-content .form-group label {
  margin-bottom: 8px;
  font-weight: bold;
}

.dashboard-content .form-group input,
.dashboard-content .form-group select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
}

/* === Estilo personalizado para FullCalendar === */

/* Tipografía y color general */
.fc {
  font-family: 'Segoe UI', Verdana, serif !important;
  color: #3b2f2f !important; /* Marrón suave, coherente con el sitio */
}

/* Título principal (fecha visible) */
.fc-toolbar-title {
  color: #5a3825 !important;
  font-size: 1.5em !important;
}

/* Estilos para todos los botones del calendario (Hoy, Mes, Semana, Día, navegación) */
.fc-button {
  background-color: #5a3825 !important; /* Marrón oscuro */
  color: white !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 6px 12px !important;
  font-family: 'Segoe UI', Verdana, serif !important;
  font-size: 14px !important;
  transition: background-color 0.3s ease;
}

/* Hover sobre botones */
.fc-button:hover {
  background-color: #7a4c2e !important;
}

/* Botón activo (por ejemplo, vista actual seleccionada) */
.fc-button.fc-button-active {
  background-color: #8b5a2b !important;
  color: white !important;
}

/* Estilo general del formulario del modal de sesión */
.modal-formulario-sesion {
  background: #fdfaf6;
  border: 1px solid #d6c4b0;
  border-radius: 10px;
  padding: 20px;
  max-width: 600px;
  width: 95%;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  color: #3b2f2f;
  font-family: 'Segoe UI', Verdana, serif;
}

.modal-formulario-titulo {
  margin: 0 0 16px;
  text-align: center;
  color: #5a3825;
  font-family: 'Segoe UI', Verdana, serif;
  font-size: 1.3rem;
}

.modal-formulario-fila-doble {
  display: flex;
  gap: 2%;
  
}

.modal-formulario-campo {
  flex: 1;
  margin-bottom: 14px;
}

.modal-formulario-input {
  width: 100%;
  padding: 0.4em;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95em;
  box-sizing: border-box;
  resize: vertical;
}

.botones-modal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1em;
}

.boton-eliminar {
  flex-shrink: 0;
}

.boton-acciones {
  display: flex;
  gap: 0.5em;
}
/* Botón Eliminar: suave, casi invisible al inicio */
button.eliminar {
  background-color: transparent;
  color: #999;
  border: none;
  padding: 0.4em 1em;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
button.eliminar:hover {
  background-color: #a9745a; /* Color tierra */
  color: white;
}

/* Botón Cancelar: neutral, pero con forma */
.boton-acciones button:nth-child(1) {
  background-color: #e0e0e0;
  color: #333;
  border: none;
  padding: 0.4em 1em;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.boton-acciones button:nth-child(1):hover {
  background-color: #bbb;
}

/* Botón Guardar/Actualizar: lo defines tú con tu estilo principal */
.boton-acciones button:nth-child(2) {
  background-color: #a9745a; /* Color tierra */
  color: white;
  border: none;
  padding: 0.4em 1em;
  border-radius: 6px;
  cursor: pointer;
}
.boton-acciones button:nth-child(2):hover {
  background-color: #8d5f47;
}
.contenedor-fichas {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1rem;
}

.ficha {
  display: flex;
  border-radius: 6px;
  padding: 1rem 1.5rem;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s ease;
}

.ficha:hover {
  background-color: #f9f5f2;
  transform: scale(1.005);
}

.contenido-ficha h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #333;
}

.contenido-ficha .subtexto {
  font-size: 0.9rem;
  color: #666;
}

.acciones-ficha {
  display: flex;
  gap: 0.5rem;
}

.btn-icono {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: #7a4b2b;
  padding: 0.3rem;
}

.btn-icono:hover {
  color: #b35828;
}
.busqueda-y-filtro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0;
  gap: 1rem;
}

.form-filtro {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
}

.label-filtro {
  font-weight: 500;
  color: #5c3d27;
  font-size: 0.95rem;
  margin-bottom: 0;
}

.input-filtro {
  flex-grow: 1;
  padding: 0.6rem 0.8rem;
  border: 1px solid #e0d7d0;
  border-radius: 6px;
  background-color: #fdf9f6;
  font-size: 0.95rem;
  color: #3e2a1e;
  transition: border-color 0.3s ease;
}

.input-filtro:focus {
  outline: none;
  border-color: #a47145;
  background-color: #fff;
}
.barra-controles {
  display: flex;
  align-items: center; /* ✅ centra verticalmente todos los hijos */
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 1.5rem 0;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #eee;
}

.grupo-controles {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1 1 auto;
  min-width: 0;
}

/* Base común */
input-busqueda,
.input-filtro,
.btn-principal {
  box-sizing: border-box;
  font-family: inherit;
}

.btn-principal {
  padding: 0.5rem 1rem;
  background-color: #5a3825;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: normal;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn-principal:hover {
  background-color: #3d281b;
}


.input-busqueda {
  flex: 1 1 250px;
  min-width: 75%;
  padding: 0.5rem 1rem;
  border: 1px solid #e0dcd7;
  border-radius: 6px;
  background-color: #fdf9f6;
  color: #3e2a1e;
}

.form-filtro {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.label-filtro {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: #5c3d27;
  margin: 0;
}

.input-filtro {
  min-width: 100px;
  max-width: 150px;
  padding: 0.4rem 0.6rem;
  background-color: #fdf9f6;
  color: #3e2a1e;
  border: 1px solid #e0d7d0;
  border-radius: 6px;
}


.ficha.clickable {
  cursor: pointer;
  transition: box-shadow 0.3s, transform 0.2s;
}

.ficha.clickable:hover {
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  transform: scale(1.01);
}

.ficha.clickable:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transform: scale(1.01);
}

.contenido-ficha h3 {
  font-size: 1.1em;
  margin-bottom: 2px;
  color: #333;
}

.subtexto {
  font-size: 0.9em;
  color: #666;
}
.ficha-consultante {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow-x: hidden;
}

.encabezado-consultante {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.icono-foto {
  font-size: 80px;
  color: #a97a65;
  margin-right: 20px;
}

.datos-generales h1 {
  font-size: 1.8rem;
  margin: 0;
  color: #333;
}

.telefonos {
  color: #666;
  margin-top: 4px;
}

.detalle-grilla {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.item {
  display: flex;
  flex-direction: column;
}

.item label {
  font-weight: bold;
  color: #555;
  margin-bottom: 4px;
}

.item span {
  color: #333;
  background: #f7f4f3;
  padding: 6px 10px;
  border-radius: 6px;
}

.item-grande {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .item-grande {
    grid-column: span 1;
  }
}

.acciones-ficha {
  margin-top: 30px;
  text-align: right;
}

.card-consultante {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.consultante-header {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.avatar img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

.consultante-info {
  margin-left: 2rem;
}

.consultante-info h2 {
  margin: 0;
  font-size: 1.8rem;
}

.consultante-detalles {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.paciente-grilla {
  flex: 1 1 250px;
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 8px;
}

.consultante-botones {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem;
  gap: 1rem;
}

/* Estilo base común para todos los botones */
.btn-editar,
.btn-cerrar,
.btn-eliminar,
.btn-guardar,
.btn-cancelar,
.btn-actualizar {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  margin-left: 8px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Botón Editar */
.btn-editar {
  background-color: #a97a65;
  color: white;
}
.btn-editar:hover {
  background-color: #8a5f4a;
}

/* Botón Cerrar */
.btn-cerrar {
  background-color: #5a3825;
  color: #ccc;
}
.btn-cerrar:hover {
  background-color: #b3b3b3;
  color: black;
}

/* Botón Eliminar */
.btn-eliminar {
  background-color: #5a3825; /* Terracota oscuro */
  color: white;
}
.btn-eliminar:hover {
  background-color: #3e271b;
}

/* Botón Guardar */
.btn-guardar {
  background-color: #f4e9dc; /* Beige tostado claro */
  color: #5a3825;
  border: 1px solid #5a3825;
}
.btn-guardar:hover {
  background-color: #e9dfd1;
}

/* Botón Cancelar */
.btn-cancelar {
  background-color: #e0e0e0;
  color: #333;
}
.btn-cancelar:hover {
  background-color: #bbb;
}

/* Botón Actualizar (puede usar el mismo estilo que Guardar) */
.btn-actualizar {
  background-color: #a9745a; /* Color tierra */
  color: white;
}
.btn-actualizar:hover {
  background-color: #8d5f47;
}



.acciones {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.contenedor-estadisticas {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 20px;
}

.grupo-estadisticas {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

.estadistica {
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 20px;
  flex: 1 1 250px;
  max-width: 300px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.estadistica h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: #333;
}

.estadistica p {
  font-size: 2em;
  font-weight: bold;
  color: #007BFF;
  margin: 0;
}
.agenda-dia-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 0 16px;
  flex-wrap: wrap;
}


.agenda-dia-titulo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #5a3825;
  margin: 0;
  text-align: left;
  flex: 1; /* se expande hasta donde puede, empujando el input */
}



.agenda-dia-selector {
  display: flex;
  align-items: center;
  gap: 8px;
}

.agenda-dia-selector label {
  color: #5a3825;
  font-weight: 500;
}
.agenda-dia-selector input[type="date"] {
  font-size: 1rem;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #cbb8a9;
  background-color: #fefaf3;
  color: #5a3825;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.agenda-dia-selector input[type="date"]:focus {
  outline: none;
  border-color: #a9745a;
  box-shadow: 0 0 0 2px rgba(169, 116, 90, 0.2);
}
.agenda-dia-tarjeta {
  background-color: #f4e9dc; /* beige tostado claro */
  border: 1px solid #ddd;
  border-radius: 1rem;
  padding: 16px 24px;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  transition: box-shadow 0.2s ease;
}

.agenda-dia-tarjeta:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}
.agenda-dia-info {
  display: flex;
  flex-direction: column;
}

.agenda-dia-nombre {
  font-size: 1.1rem;
  font-weight: bold;
  color: #5a3825;
}

.agenda-dia-hora {
  font-size: 0.95rem;
  color: #333;
  margin-top: 4px;
}
.agenda-dia-boton {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 10px;
  border-radius: 50%;
  color: #5a3825;
  width: 42px;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.agenda-dia-boton.activo {
  background-color: #5a3825;
  color: #fefaf3;
}
.agenda-dia-contenedor {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px; /* da aire sin provocar desborde */
  box-sizing: border-box;
}
.agenda-dia-boton {
  /* Estilo base común */
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 10px;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

/* Estado visual según asistencia */
.agenda-dia-boton.agendada {
  background-color: transparent;
  color: #5a3825;
}

.agenda-dia-boton.asistio {
  background-color: #a9745a;
  color: #fefaf3;
}

.agenda-dia-boton.no_asistio {
  background-color: #5a3825;
  color: #fefaf3;
}
/* Tarjeta de configuración de usuario */
.usuario-config-card {
  position: relative;
  display: flex;
  align-items: center;
  background: #fefaf3;
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-width: 800px;
  width: 100%;
  margin: auto;
}

/* Solapa de rol */
.usuario-config-solapa {
  position: absolute;
  top: -15px;
  left: 20px;
  background-color: #a9745a;
  color: white;
  padding: 5px 15px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: bold;
}

/* Icono de configuración (engranaje) */
.usuario-config-icono {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 22px;
  cursor: pointer;
}

/* Avatar */
.usuario-config-avatar img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 30px;
  border: 3px solid #a9745a;
}

/* Datos del usuario */
.usuario-config-datos h2 {
  margin: 0;
  font-size: 26px;
  color: #5a3825;
}

.usuario-config-username {
  color: #888;
  font-style: italic;
  margin: 5px 0 10px;
}

.usuario-config-datos p {
  margin: 4px 0;
}

/* Modal */
.usuario-config-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}

/* Contenido del modal */
.usuario-config-modal-contenido {
  background: white;
  padding: 30px;
  border-radius: 15px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.usuario-config-modal-contenido h3 {
  margin-top: 0;
}

.usuario-config-modal-contenido label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

.usuario-config-modal-contenido input {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: 'Segoe UI', Verdana, serif;
}

.usuario-config-modal-contenido button {
  margin-top: 20px;
  background-color: #a9745a;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
}

/* Botón de cerrar (X) */
.usuario-config-cerrar {
  float: right;
  font-size: 24px;
  cursor: pointer;
}

/* Estilo del switch de estado del consultante */
.estado-consultante {
  margin-top: 1rem;
}

.switch-estado-consultante {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch-estado-consultante input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-estado-consultante {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
}

.slider-estado-consultante:before {
  position: absolute;
  content: "";
  height: 18px; width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

.switch-estado-consultante input:checked + .slider-estado-consultante {
  background-color: #5a3825;
}

.switch-estado-consultante input:checked + .slider-estado-consultante:before {
  transform: translateX(26px);
}

/* Estilos para vista crear_consultante_existente */
.crear-consultante-header {
  padding: 0.5rem 0;
  color: #5a3825;
  font-size: 1.5rem;
  font-weight: bold;
}

.crear-consultante-formulario {
  width: 100%;
  margin-top: 2rem;
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.crear-consultante-form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.crear-consultante-form-group {
  margin-bottom: 1rem;
  flex: 1;
  min-width: 200px;
}

.crear-consultante-form-group label {
  display: block;
  margin-bottom: 0.3rem;
}

.crear-consultante-form-group select,
.crear-consultante-form-group input[type="text"],
.crear-consultante-form-group input[type="search"] {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.crear-consultante-form-actions {
  text-align: right;
  margin-top: 1rem;
}

.crear-consultante-form-actions button {
  background-color: #5a3825;
  color: white;
  cursor: pointer;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: 6px;
  border: none;
}

.crear-consultante-paciente-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-x: hidden;
}

.crear-consultante-paciente-card {
  background-color: #f4e9dc;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  user-select: none;
  width: 100%;
  box-sizing: border-box;
}

.crear-consultante-paciente-card.selected {
  background-color: #a9745a;
  color: white;
  border-color: #5a3825;
}



/* Filtros y barra de acciones en listar_consultantes reorganizados */
.filtros-consultante-wrapper {
  width: 100%;
  margin-bottom: 1rem;
}

.filtros-consultante-contenido {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filtros-consultante-fila-superior {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.filtros-consultante-busqueda {
  flex: 1 1 250px;
  max-width: wrap;
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.filtros-consultante-filtros {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.filtros-consultante-label {
  font-size: 0.9rem;
}

.filtros-consultante-select {
  padding: 0.4rem 0.6rem;
  font-size: 0.95rem;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.filtros-consultante-fila-inferior {
  display: flex;
  justify-content: flex-end;
}

.filtros-consultante-botones {
  display: flex;
  gap: 0.75rem;
}

.vista-estadisticas-container {
  padding: 2rem;
  background-color: #fefaf3;
}

.estadistica-bloque {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.estadistica-bloque h2 {
  color: #5a3825;
  margin-top: 0;
}

.estadistica-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.estadistica-item {
  background: #f4e9dc;
  border-left: 6px solid #a9745a;
  padding: 1rem;
  border-radius: 8px;
}

.estadistica-item h4 {
  margin: 0;
  color: #5a3825;
}

.estadistica-item p {
  font-size: 1.3rem;
  font-weight: bold;
  margin-top: 0.5rem;
  color: #1e3a5f;
}
.modal-formulario-fila-triple {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal-formulario-fila-triple .modal-formulario-campo {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.tabla-sesiones {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.tabla-sesiones th, .tabla-sesiones td {
  padding: 0.5rem;
  border: 1px solid #ccc;
  text-align: left;
}

.tabla-sesiones th {
  background-color: #f4e9dc;
  color: #5a3825;
}

/* Sidebar oculto por defecto en móviles, animado y controlado con clase 'active' */
@media (max-width: 768px) {

  .dashboard-sidebar {
    position: fixed;
    top: 0;
    left: -100vw;
    width: 60vw;
    height: 100%;
    background-color: #f4e9dc;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.3);
    padding-top: 56px;
    transition: left 0.3s ease-in-out;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 16px;
  }

  .dashboard-sidebar.active {
    left: 0;
  }

  .dashboard-sidebar a {
    font-weight: bold;
    text-decoration: none;
    color: #5a3825;
    padding: 8px 0;
  }

  /* Solapa fija y pegada al borde del sidebar */
  .dashboard-solapa {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 40px;
    height: 120px;
    background-color: #a9745a;
    color: white;
    font-size: 20px;
    font-weight: bold;
    writing-mode: vertical-rl;
    text-align: center;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 1100;
    transition: left 0.3s ease-in-out;
  }

  .dashboard-sidebar.active + .dashboard-solapa {
    left: 60vw;
  }

  /* Ajuste del contenido principal para evitar solapamiento */
  .dashboard-main {
    margin-left: 0 !important;
  }
}
@media (min-width: 769px) {
  .dashboard-solapa {
    display: none !important;
  }
}
@media (max-width: 600px) {
  .barra-superior-pacientes {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
  }

  .barra-superior-pacientes .busqueda-y-filtro {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .busqueda-y-filtro .input-busqueda,
  .busqueda-y-filtro .input-filtro,
  .form-filtro select {
    width: 100%;
    font-size: 0.95rem;
    padding: 0.5rem 0.8rem;
  }

  .barra-superior-pacientes .btn-principal {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .barra-superior-pacientes .btn-principal span {
    display: none; /* Oculta el texto */
  }

  .barra-superior-pacientes .btn-principal::before {
    content: '➕';
    font-size: 1.2rem;
    margin-right: 0.2rem;
  }
}
.filtros-consultante-fila-superior {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

.input-busqueda {
  flex: 1 1 250px;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fdf9f6;
}

.filtros-consultante-filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  flex: 2 1 300px;
}

.filtros-consultante-label {
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: #5a3825;
}

.filtros-consultante-select {
  padding: 0.5rem;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
  width: 100%;
}

.filtros-consultante-fila-inferior {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.filtros-consultante-botones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn-icono i {
  margin-right: 0.4em;
}

@media (max-width: 600px) {
  .filtros-consultante-fila-superior,
  .filtros-consultante-fila-inferior {
    flex-direction: column;
    align-items: stretch;
  }

  .filtros-consultante-botones button {
    width: 100%;
    justify-content: center;
  }

  .btn-icono span {
    display: none;
  }

  .btn-icono i {
    margin-right: 0;
  }
}
@media (min-width: 769px) {
  .filtros-consultante-contenido {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .filtros-consultante-fila-superior,
  .filtros-consultante-fila-inferior {
    flex: 1 1 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    margin: 0;
  }

  .input-busqueda {
    flex: 1 1 200px;
    margin: 0;
  }

  .filtros-consultante-filtros {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
    margin: 0;
  }

  .filtros-consultante-label {
    margin: 0;
    font-size: 0.9rem;
  }

  .filtros-consultante-select {
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
    width: auto;
    min-width: 120px;
  }

  .filtros-consultante-botones {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    flex-shrink: 0;
  }

  .btn-icono {
    display: flex;
    align-items: center;
    white-space: nowrap;
  }

  .btn-icono i {
    margin-right: 0.3em;
  }
}
.filtros-consultante-barra-horizontal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 0;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.filtros-consultante-barra-horizontal input,
.filtros-consultante-barra-horizontal select {
  padding: 0.4rem 0.6rem;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
}

.input-busqueda {
  flex: 1 1 200px;
  min-width: 180px;
  background-color: #fdf9f6;
}

.filtros-consultante-label {
  font-weight: bold;
  font-size: 0.9rem;
  color: #5a3825;
  white-space: nowrap;
}

.btn-principal.btn-icono {
  display: flex;
  align-items: center;
  gap: 0.4em;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .filtros-consultante-barra-horizontal {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-principal.btn-icono span {
    display: none;
  }

  .btn-principal.btn-icono {
    justify-content: center;
  }
}
.input-busqueda {
  height: 40px !important;
  line-height: 1.2;
  resize: none;
  min-height: 0 !important;
  max-height: 40px !important;
  box-sizing: border-box;
}
@media (max-width: 480px) {
  .input-busqueda {
    font-size: 0.95rem;
    padding: 0.4rem 0.8rem;
  }
}
@media (max-width: 600px) {
  .consultante-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .consultante-info {
    margin-left: 0;
  }

  .consultante-info h2 {
    font-size: 1.4rem;
    word-break: break-word;
  }

  .paciente-grilla {
    flex: 1 1 100%;
    padding: 0.8rem;
    font-size: 0.95rem;
  }

  .paciente-grilla p {
    margin: 0.4rem 0;
    display: flex;
    flex-direction: column;
  }

  .paciente-grilla p strong {
    margin-bottom: 2px;
    font-weight: 600;
  }

  .consultante-sesiones h3 {
    font-size: 1.1rem;
  }

  .tabla-sesiones th,
  .tabla-sesiones td {
    font-size: 0.85rem;
    padding: 0.3rem;
  }

  .consultante-botones {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .consultante-botones button {
    width: 100%;
  }
}
/* Ficha por sesión, solo en móviles */
.fichas-sesiones-movil {
  display: none;
}

.ficha-sesion {
  background-color: #fdf9f6;
  border: 1px solid #e0d7d0;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  font-size: 0.95rem;
  color: #3e2a1e;
}

.ficha-sesion div {
  margin-bottom: 0.3rem;
}

/* En móviles, se oculta la tabla y se muestran fichas */
@media (max-width: 600px) {
  .tabla-sesiones-wrapper {
    display: none;
  }

  .fichas-sesiones-movil {
    display: block;
  }
}
.portada-carrusel {
  position: relative;
  width: 100%;
  height: 70vh; /* ✅ Más espacio vertical */
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
}

@media (max-width: 768px) {
  .portada-carrusel {
    padding-top: 80px !important;
  }
}

/* ==============================
   CARRUSEL PORTADA – BLOQUE LIMPIO
   Reemplaza todo el CSS previo
   relacionado con .portada-carrusel
   ============================== */

.portada-carrusel {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* --- SLIDE BASE --- */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 1;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}

/* --- SLIDE 1: PORTADA --- */
.slide-portada {
  background-image: url('images/living-room.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* --- SLIDE 2: HOMBRES --- */
.slide-hombres {
  background-image: url('images/mal-de-los-hombres.jpg');
  background-size: cover;
  background-position: center;
}

/* --- SLIDE 3: (MISMA ESTÉTICA QUE SLIDE 2, SI APLICA) --- */
.slide-limites {
  background-image: url('images/poner_limites.png');
  background-size: cover;
  background-position: center;
}


/* --- OVERLAY Y CONTENIDO --- */
.overlay-slide {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgba(0,0,0,0.55) 35%,
    rgba(0,0,0,0.15) 80%
  );
  display: flex;
  align-items: center;
}

.contenido-slide-imagen {
  max-width: 600px;
  margin-left: 8%;
  color: #fefaf3;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
}

.contenido-slide-imagen h2 {
  font-size: clamp(1.8rem, 6vw, 3rem);
  font-weight: 900;
  margin-bottom: 1em;
  color: #fffdf6;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.contenido-slide-imagen p {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 1.5em;
}

.boton-leer-mas {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.6em 1.2em;
  box-sizing: border-box;
  border: none;

  background-color: #fefaf3;
  color: #5a3825;
  font-weight: bold;
  border-radius: 6px;

  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.boton-leer-mas:hover {
  /* 🔒 repetir lo estructural */
  padding: 0.6em 1.2em;
  box-sizing: border-box;
  border: none;

  background-color: #e5d4c5;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* Flechas */
.flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 2.5em;
  color: #fff3e8;
  cursor: pointer;
  z-index: 10;
  padding: 0 0.3em;
  transition: color 0.3s;
}

.flecha:hover {
  color: #f3e8d5;
}

.flecha.izquierda { left: 10px; }
.flecha.derecha { right: 10px; }

/* Indicadores */
.indicadores {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
}

.punto {
  display: inline-block;
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background-color: #c8b8a8;
  border-radius: 50%;
  transition: background-color 0.3s;
}

.punto.active {
  background-color: #f3e8d5;
}

.contenido-con-imagen {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  align-items: flex-start;
  margin-top: 2em;
}

.contenido-con-imagen img {
  max-width: 480px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.contenido-con-imagen .texto {
  flex: 1;
  min-width: 280px;
}

@media (max-width: 768px) {
  .contenido-con-imagen {
    flex-direction: column;
    align-items: center;
  }

  .contenido-con-imagen .texto {
    width: 100%;
  }

  .contenido-con-imagen img {
    max-width: 100%;
  }
}
.dashboard-content.lista-espera {
  margin-top: -5px !important; /* o el valor que prefieras */
}
.contenedor-graficos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem;
    justify-items: center;
  }

  .contenedor-graficos canvas {
    width: 100% !important;
    max-width: 300px;
    aspect-ratio: 1 / 1;
    height: auto !important;
  }
  .contenedor-graficos,
.grafico-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 2rem;
}

.grafico-wrapper {
  position: relative;
  height: 300px; /* puedes ajustar según lo que necesites */
}

@media (max-width: 768px) {
  .grafico-wrapper {
    height: 250px;
  }
}

canvas {
  width: 100% !important;
  height: 100% !important;
}

.vista-estadisticas {
  background-color: #fffaf3;
  border-radius: 1rem;
  box-shadow: 0 0 10px rgba(90, 56, 37, 0.05);
  padding: 2rem;
  margin-bottom: 2rem;
}

.vista-estadisticas h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #5a3825;
  margin-bottom: 1rem;
}

.formulario-fechas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-bottom: 1.5rem;
}

.campo-fecha {
  display: flex;
  flex-direction: column;
  min-width: 150px;
}

.campo-fecha label {
  font-size: 0.875rem;
  color: #5a3825;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.campo-fecha select {
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  padding: 0.4rem 0.6rem;
  background-color: #fff;
  font-size: 0.95rem;
  color: #5a3825;
  appearance: none;
}

.tabla-sesiones {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  border: 1px solid #e5d8c3;
  border-radius: 0.5rem;
  overflow: hidden;
}

.tabla-sesiones th {
  background-color: #f4e9dc;
  color: #5a3825;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e0d4c2;
}

.tabla-sesiones td {
  padding: 0.75rem;
  font-size: 0.9rem;
  color: #3a2c23;
  border-top: 1px solid #f1e9df;
}

.tabla-sesiones tbody tr:hover {
  background-color: #fff7ec;
}

.total-sesiones {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #5a3825;
}

.mensaje-vacio {
  font-size: 0.9rem;
  color: #5a3825;
  margin-top: 1rem;
}
.formulario-fechas-horizontal {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  align-items: flex-end;
}

.formulario-fechas-horizontal .campo-fecha {
  display: flex;
  flex-direction: column;
  min-width: 140px;
}

.formulario-fechas-horizontal label {
  font-size: 0.875rem;
  color: #5a3825;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.formulario-fechas-horizontal select {
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  padding: 0.4rem 0.6rem;
  background-color: #fff;
  font-size: 0.95rem;
  color: #5a3825;
  appearance: none;
}
/* =====================
   CONTENEDOR DE KPIs
   ===================== */
.contenedor-indicadores {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

/* =====================
   TARJETA INDIVIDUAL
   ===================== */
.indicador {
  flex: 1;
  background-color: #fefaf3;
  border-radius: 16px;
  padding: 1.5rem;
  min-height: 160px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Número principal */
.indicador-numero {
  font-size: 3rem;
  font-weight: 600;
  color: #5a3825;
  line-height: 1;
}

/* Texto descriptivo */
.indicador-label {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #7a6a5a;
  text-align: center;
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 768px) {
  .contenedor-indicadores {
    flex-direction: column;
  }

  .indicador {
    min-height: 120px;
  }
}
