/* ============================================================
   TECNOPSICO SAS - Estilos Institucionales Unificados
   Autor: Equipo Tecnopsico / Ajustes visuales profesionales
   ============================================================ */

/* --------------------- 1. Tipografía y colores base ---------------------- */
body {
    font-family: 'Carlito', sans-serif;
    background-color: #e9ede7;
    color: #333;
    margin: 0;
    padding: 0;
}

h1, h2, h3, .font-anton {
    font-family: 'Anton', sans-serif;
    font-weight: 700;
    color: #2c2c2c;
}

p, ul, li {
    font-family: 'Carlito', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
}

/* --------------------- 2. Colores institucionales ---------------------- */
.bg-fondo     { background-color: #2596be !important; }
.bg-cuadros   { background-color: #6dcadb !important; }
.bg-menu      { background-color: #e9ede7 !important; }
.bg-boton     { background-color: #5cb4c4 !important; }
.text-danger  { color: #e7543b !important; }
.text-warning { color: #FFC926 !important; }

.bg-danger {
    background-image: linear-gradient(to right, #fac8fa, #DDA0DD);
}

/* --------------------- 3. Elementos generales ---------------------- */
.card {
    border-radius: 10px;
    border: none;
    transition: all 0.3s ease-in-out;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}
.card img {
    border-radius: 10px 10px 0 0;
}

/* --------------------- 4. Botón institucional ---------------------- */
.btn-tecno {
    background: linear-gradient(90deg, #f39c12, #ffb347);
    color: #fff !important;
    border: none;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}
.btn-tecno:hover {
    background: linear-gradient(90deg, #ffb347, #f39c12);
    transform: translateY(-3px);
}

/* --------------------- 5. Títulos y subtítulos ---------------------- */
.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-align: center;
    color: #2c2c2c;
    position: relative;
}
.section-title::after {
    content: '';
    width: 90px;
    height: 4px;
    background: linear-gradient(90deg, #f39c12, #ffb347);
    display: block;
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.subsection-title {
    color: #f39c12;
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: capitalize;
}

.content-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
    text-align: justify;
}

/* --------------------- 6. Imagen institucional ---------------------- */
.image-frame {
    overflow: hidden;
    border-radius: 10px;
}
.image-frame img {
    transition: transform 0.4s ease;
}
.image-frame:hover img {
    transform: scale(1.03);
}

/* --------------------- 7. Timeline (para Blog) ---------------------- */
.timeline {
    position: relative;
    margin: 60px auto;
    padding: 20px 0;
    max-width: 1100px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #f39c12, #ffb347);
    transform: translateX(-50%);
    border-radius: 2px;
}
.timeline ul {
    margin: 0;
    padding: 0;
}
.timeline ul li {
    list-style: none;
    position: relative;
    width: 50%;
    padding: 30px 40px;
    box-sizing: border-box;
}
.timeline ul li:nth-child(odd) {
    float: left;
    text-align: right;
    clear: both;
}
.timeline ul li:nth-child(even) {
    float: right;
    text-align: left;
    clear: both;
}
.timeline ul li::before {
    content: '';
    position: absolute;
    top: 35px;
    width: 20px;
    height: 20px;
    background: #f39c12;
    border: 3px solid #fff;
    border-radius: 50%;
    z-index: 10;
}
.timeline ul li:nth-child(odd)::before {
    right: -10px;
}
.timeline ul li:nth-child(even)::before {
    left: -10px;
}
.timeline-content {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px 25px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}
.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}
.timeline-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f39c12;
    margin-bottom: 10px;
}
.timeline-text {
    font-size: 1.05rem;
    color: #333;
    line-height: 1.6;
}

/* --------------------- 8. Tablas, alertas y formularios ---------------------- */
.alert {
    border-radius: 10px;
}
.form-control {
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 10px;
}
.form-control:focus {
    border-color: #f39c12;
    box-shadow: 0 0 0 0.2rem rgba(243,156,18,0.25);
}

/* --------------------- 9. Ajustes responsive globales ---------------------- */
@media (max-width: 1200px) {
    .section-title { font-size: 2.2rem; }
}
@media (max-width: 992px) {
    .timeline ul li {
        width: 100%;
        text-align: left !important;
        padding-left: 70px;
    }
    .timeline::before {
        left: 20px;
    }
    .timeline ul li::before {
        left: 10px;
    }
    .timeline ul li:nth-child(odd),
    .timeline ul li:nth-child(even) {
        float: none;
    }
    .section-title { font-size: 2rem; }
    .content-text { font-size: 1rem; }
}
@media (max-width: 768px) {
    .section-title { font-size: 1.7rem; }
    .lead { font-size: 1rem; }
    .card { margin-bottom: 1.5rem; }
    .btn-tecno { width: 100%; font-size: 1.1rem; }
}
@media (max-width: 576px) {
    .timeline-content { padding: 15px; }
    .timeline-title { font-size: 1.3rem; }
    .timeline-text { font-size: 0.95rem; }
    body { font-size: 0.95rem; }
}

.carousel-title {
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

/* === SECCIÓN NOSOTROS - EFECTO DESTACADOS === */
.section-nosotros {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  position: relative;
}

.section-nosotros::before {
  content: 'TECNOPSICO';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 700;
  font-size: 8rem;
  color: rgba(0, 0, 0, 0.05);
  z-index: 0;
}

.section-nosotros .info-card {
  position: relative;
  width: 45%;
  min-width: 320px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: linear-gradient(45deg, #0e2b2f, #00bcd4);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.5s ease;
}

.section-nosotros .info-card:nth-child(2n) {
  background: linear-gradient(45deg, #10214c, #7b1fa2);
}

.section-nosotros .info-card img {
  position: absolute;
  left: 60%;
  bottom: 0;
  transform: translateX(-50%);
  height: 380px;
  transition: all 0.5s ease;
  opacity: 0.8;
}

.section-nosotros .info-card:hover img {
  left: 75%;
  opacity: 1;
}

.section-nosotros .info-card .content {
  position: relative;
  z-index: 2;
  width: 50%;
  padding: 2rem;
  color: #fff;
  opacity: 0;
  transition: all 0.5s ease;
}

.section-nosotros .info-card:hover .content {
  opacity: 1;
  left: 0;
}

.section-nosotros .info-card h3 {
  text-transform: uppercase;
  font-size: 1.8rem;
  font-weight: 600;
}

.section-nosotros .info-card p {
  font-size: 1rem;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
  .section-nosotros {
    flex-direction: column;
    align-items: center;
  }

  .section-nosotros .info-card {
    width: 90%;
    height: auto;
    flex-direction: column;
    text-align: center;
  }

  .section-nosotros .info-card img {
    position: static;
    transform: none;
    width: 80%;
    height: auto;
  }

  .section-nosotros .info-card .content {
    opacity: 1;
    width: 100%;
    padding: 1.5rem;
  }
}

/* === ESTILOS MODALES NOSOTROS === */
.modal-content {
  border-radius: 1rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.modal-header {
  border-bottom: none;
}

.modal-body {
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
}

.btn-light {
  color: #333;
  background-color: #fff;
  border: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn-light:hover {
  background-color: #e7543b;
  color: #fff;
}

/* Responsividad de los modales */
@media (max-width: 768px) {
  .modal-dialog {
    max-width: 90%;
  }
}

/* ==========================================================
   EFECTO DE APARICIÓN SUAVE PARA LOS MODALES (FADE-UP)
   ========================================================== */

/* Estado inicial del modal oculto */
.modal.fade .modal-dialog {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.45s ease;
}

/* Estado visible (animado) */
.modal.fade.show .modal-dialog {
  opacity: 1;
  transform: translateY(0);
}

/* Ajustes para dispositivos pequeños */
@media (max-width: 768px) {
  .modal-dialog {
    margin: 1.5rem auto;
    transition: all 0.4s ease-in-out;
  }
}

/* Mejora estética adicional */
.modal-content {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  background-color: #ffffff;
}

.modal-header.bg-boton {
  background: linear-gradient(90deg, #e7543b 0%, #d13b2b 100%);
}

.modal-body {
  padding: 1.8rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
}

.modal-header .close {
  font-size: 1.5rem;
  color: #fff;
  opacity: 0.9;
  transition: all 0.2s ease-in-out;
}

.modal-header .close:hover {
  transform: scale(1.2);
  opacity: 1;
}

/* ============================================================
   CARRUSEL PRINCIPAL - TECNOPSICO SAS
   ============================================================ */

#carouselTecnopsico .carousel-item {
  position: relative;
  height: 480px;
  overflow: hidden;
}

#carouselTecnopsico .carousel-img {
  object-fit: contain;
  background-color: #000;
}

#carouselTecnopsico .carousel-item.active .carousel-img {
  transform: scale(1.05);
}

#carouselTecnopsico .carousel-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

#carouselTecnopsico .carousel-caption {
  z-index: 2;
  position: absolute;
  bottom: 40px;
  left: 5%;
  right: 5%;
  text-align: left;
  color: #fff;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}

#carouselTecnopsico .caption-bg {
  background: rgba(0, 0, 0, 0.55);
  padding: 1.5rem;
  border-radius: 12px;
  display: inline-block;
  animation: fadeSlideUp 1.2s ease-in-out;
}

#carouselTecnopsico .carousel-title {
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #f39c12;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

@keyframes fadeSlideUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

#carouselTecnopsico .carousel-indicators li {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
}

#carouselTecnopsico .carousel-indicators .active {
  background-color: #f39c12;
}

/* --- Responsivo carrusel principal --- */
@media (max-width: 768px) {
  #carouselTecnopsico .carousel-item { height: 300px; }
  #carouselTecnopsico .carousel-img { height: 300px; }
  #carouselTecnopsico .carousel-caption {
    bottom: 20px;
    text-align: center;
  }
  #carouselTecnopsico .carousel-title {
    font-size: 1.3rem;
  }
  #carouselTecnopsico .caption-bg {
    padding: 1rem;
  }
}

/* ============================================================
   MINI CARRUSELES (Clientes / Alianzas / Reconocimientos)
   ============================================================ */

.logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 400px;
  padding: 10px 0;
  margin-bottom: 0;
}

.logo-section h5 {
  min-height: 45px;
  margin-bottom: 15px;
}

/* Contenedor del mini carrusel */
.mini-carousel {
  width: 230px;
  flex: 1;
  position: relative;
  margin-bottom: 10px;
}

.mini-carousel .carousel-inner {
  width: 100%;
}

.mini-carousel .carousel-item {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s ease-in-out;
}

/* Caja blanca con el logo centrado */
.logo-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  padding: 10px;
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-container img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  transition: transform 0.4s ease, filter 0.3s ease;
}

.logo-container img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Controles */
.mini-carousel .carousel-control-prev,
.mini-carousel .carousel-control-next {
  width: 15%;
  top: 50%;
  transform: translateY(-50%);
}

.mini-carousel .carousel-control-prev-icon,
.mini-carousel .carousel-control-next-icon {
  filter: invert(100%);
  width: 18px;
  height: 18px;
}

/* Botón "Ver más" */
.logo-section .btn-tecno.btn-sm {
  margin-top: 10px;
  align-self: center;
}

/* === Responsive === */
@media (max-width: 992px) {
  .logo-section {
    height: auto;
    margin-bottom: 25px;
  }
}

/* === Noticias blog lateral === */
.card-header h5 {
    font-weight: 700;
    font-size: 1.1rem;
}

.text-tecno {
    color: #f39c12; /* Naranja institucional */
}

.btn-tecno {
    background-color: #007bff;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-tecno:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.image-frame img {
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    background-color: #fff;
}

/*****************************************************************/
/* APARIENCIA QUE SOLO APLICA PARA EL ADMINISTRADOR DE LA PAGINA */
/* === MENÚ LATERAL INSTITUCIONAL === */
/*****************************************************************/
.menu-lateral {
    background: #f7fff9;
    min-height: 100vh;
    border-right: 2px solid #d2f0dd;
    padding-bottom: 20px;
    transition: all 0.3s ease;
}

.menu-header {
    background: linear-gradient(90deg, #198754, #13653f);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    font-weight: 600;
    border-bottom: 2px solid #12663a;
}

.menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-title {
    background-color: #e6f5ea;
    color: #13653f;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 8px 14px;
    border-left: 3px solid #198754;
    margin-top: 8px;
}

.menu-item a {
    display: block;
    color: #333;
    padding: 6px 16px;
    font-size: 0.85rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.menu-item a:hover {
    background-color: #d1e7dd;
    color: #0d6efd;
    transform: translateX(3px);
}

.menu-item.active a,
.menu-item a.active {
    background-color: #c9f0d6;
    font-weight: 600;
    color: #198754;
}

/* Submenú plegable */
.has-submenu > a {
    position: relative;
    cursor: pointer;
}

.submenu {
    display: none;
    margin-left: 10px;
    padding-left: 10px;
    border-left: 2px dashed #cde8d4;
}

.submenu li a {
    font-size: 0.8rem;
    padding: 4px 12px;
    color: #555;
}

.has-submenu.open .submenu {
    display: block;
}

.has-submenu a i.fa-chevron-down {
    transition: transform 0.3s;
}

.has-submenu.open a i.fa-chevron-down {
    transform: rotate(180deg);
}

/* === Versión móvil === */
@media (max-width: 576px) {
    #menuLateral {
        position: fixed;
        top: 0;
        left: -260px;
        width: 240px;
        height: 100vh;
        z-index: 1050;
        background-color: #ffffff;
        box-shadow: 3px 0 10px rgba(0, 0, 0, 0.2);
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    #menuLateral.open {
        left: 0;
    }

    .menu-header {
        position: sticky;
        top: 0;
        z-index: 2;
    }

    /* Botón cerrar */
    #btnCerrarMenu {
        position: absolute;
        top: 8px;
        right: 8px;
    }
}

/* ============================================================
   SECCIÓN: Clientes / Alianzas / Reconocimientos (sin carrusel)
   ============================================================ */

.logo-grid-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between; /* Asegura que el botón quede alineado abajo */
  height: 440px; /* Altura total fija para todas las secciones */
  padding-bottom: 10px;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 15px;
  justify-items: center;
  align-items: center;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

.logo-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  padding: 10px;
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

.logo-card img {
  max-width: 90px;
  max-height: 90px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo-card img:hover {
  transform: scale(1.05);
}

/* Ajuste para que todos los bloques tengan igual altura */
.logo-grid-section .btn-tecno {
  margin-top: auto;
}

@media (max-width: 992px) {
  .logo-grid-section {
    height: auto;
    margin-bottom: 30px;
  }

  .logo-grid {
    max-width: 300px;
  }
}

/* ============================================================
   SECCIÓN DE SERVICIOS MODERNA - TECNOPSICO SAS (Versión Final Unificada)
   ============================================================ */

/* ==== Fondos pastel para líneas ==== */
.bg-linea-tecnologia {
    background: linear-gradient(135deg, #e3f2fd, #cde8fa);
}
.bg-linea-psicologia {
    background: linear-gradient(135deg, #f2e7fd, #e4d3f8);
}

.service-line {
    border-radius: 1.2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    padding: 2rem;
}

/* ==== Encabezados y descripción ==== */
.service-line h2 {
    color: #222;
    font-weight: 700;
    margin-bottom: 0.8rem;
}
.service-line p {
    color: #333;
    font-weight: 400;
    font-size: 1rem;
}

/* ==== Cuadrícula de servicios ==== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    justify-items: center;
}

/* ==== Tarjetas ==== */
.service-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    width: 100%;
    max-width: 280px;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

/* ==== Imagen con overlay ==== */
.image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.service-card:hover img {
    transform: scale(1.05);
    opacity: 0.3;
}

/* ==== Overlay con contenido ==== */
.overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(0,0,0,0.55);
    color: #fff;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 1rem;
}
.image-wrapper:hover .overlay {
    opacity: 1;
}
.overlay h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}
.overlay p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #f2f2f2;
}

/* ==== Animación de aparición general (Fade-Up) ==== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   BOTONES UNIFORMES Y ANIMADOS
   ============================================================ */
.service-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 0.8rem 0;
    padding: 0 0.6rem;
}

/* Diseño vertical: ícono arriba, texto abajo */
.service-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 90px;
    height: 80px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    text-transform: none;
    transition: all 0.3s ease;
    padding: 0.6rem;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInButtons 0.6s forwards;
}
.service-btn i {
    font-size: 1.4rem;
    display: block;
}

/* ==== Animación secuencial de los tres botones ==== */
.service-btn:nth-child(1) { animation-delay: 0.2s; }
.service-btn:nth-child(2) { animation-delay: 0.35s; }
.service-btn:nth-child(3) { animation-delay: 0.5s; }

@keyframes fadeInButtons {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-up.visible .service-btn {
    animation-play-state: running;
}

/* === Botón "Ver más" (Azul pastel) === */
.btn-tecno {
    background-color: #5fa8d3;
    color: #fff;
    border: none;
}
.btn-tecno:hover {
    background-color: #457b9d;
    transform: translateY(-3px);
}

/* === Botón "Pedir información" (blanco con hover rojo suave) === */
.btn-info-action {
    background-color: #ffffff;
    color: #333;
    border: 1px solid #ccc;
}
.btn-info-action:hover {
    background-color: #e76f51;
    color: #fff;
    border-color: #e76f51;
    transform: translateY(-3px);
}

/* === Botón "Agregar al carrito" (violeta pastel) === */
.add-to-cart {
    background-color: #a96bc7;
    color: #fff;
    border: none;
    position: relative;
}
.add-to-cart:hover {
    background-color: #8c4db1;
    transform: translateY(-3px);
}

/* === Efecto pulse del carrito === */
.add-to-cart:hover::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 100%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation: pulse 0.6s ease-out;
    border: 2px solid rgba(255,255,255,0.6);
}
@keyframes pulse {
    from { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    to { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* === Hover global de botones === */
.service-btn:hover {
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

/* ==== Responsividad ==== */
@media (max-width: 768px) {
    .service-btns {
        gap: 0.5rem;
    }
    .service-btn {
        width: 80px;
        height: 70px;
        font-size: 0.8rem;
    }
    .service-btn i {
        font-size: 1.2rem;
    }
}

/* ==== Contador del carrito ==== */
#cart-count {
    font-size: 0.75rem;
    font-weight: 600;
    background: #e53935;
    color: #fff;
    padding: 0.25rem 0.45rem;
    min-width: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

/* Efecto de "pulse" cuando se actualiza */
#cart-count.pulse {
    animation: pulseCount 0.4s ease;
}

@keyframes pulseCount {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* ============================================================
   SECCIÓN PSICÓLOGOS – AJUSTES FINALES
   ============================================================ */

/* CARD PRINCIPAL */
.psico-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(6px);
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    transition: transform .35s ease, box-shadow .35s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.45);
    margin-bottom: 25px;  /* separación entre filas */
}

/* Bordecito diagonal corporativo */
.psico-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    border-top: 40px solid #003B73;
    border-left: 40px solid transparent;
    opacity: 0.9;
    z-index: 5;
}

/* Hover card */
.psico-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* CONTENEDOR DE IMAGEN */
.psico-img-wrapper {
    width: 100%;
    height: 220px;   /* imagen más pequeña */
    overflow: hidden;
    padding-top: 12px;   /* bordecito superior */
    background: #fff;
    position: relative;
    z-index: 1;
}

/* IMAGEN — se muestra completa sin distorsión */
.psico-img {
    width: 100%;
    height: 100%;
    object-fit: contain;   /* evita recorte y distorsión */
    object-position: center;
    background: #fff;
    transition: transform 0.4s ease-in-out, filter 0.3s ease;
}

/* Hover imagen */
.psico-card:hover .psico-img {
    transform: scale(1.03);
    filter: brightness(1.05);
}

/* CONTENIDO */
.psico-content {
    padding: 18px;
    flex-grow: 1; /* empuja footer abajo */
}

/* Nombre del profesional */
.psico-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #003B73;
    margin-bottom: 8px;
}

/* Especialidad */
.psico-especialidad {
    margin: 4px 0;
    font-size: 0.95rem;
    color: #444;
}

/* Ciudad */
.psico-ciudad {
    font-size: .9rem;
    color: #777;
}

/* FOOTER */
.psico-footer {
    padding: 16px;
    text-align: center;
}

/* BOTÓN CORPORATIVO */
.btn-tecno {
    background-color: #003B73;
    color: white;
    border-radius: 30px;
    padding: 6px 22px;
    transition: background .3s, transform .3s;
}

.btn-tecno:hover {
    background-color: #0059a5;
    transform: translateY(-2px);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .psico-img-wrapper {
        height: 180px;
    }
}





