/* 
Theme Name: Colegio Reina del Mundo
Theme URI: https://insight.pe/
Description: Colegio Reina del Mundo is a child theme of Hello Elementor, created by Insight Team
Author: Insight Team
Author URI: https://insight.pe/
Template: hello-elementor
Version: 1.0.0
Text Domain: rdm
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* ====== Tabla con estilo del sitio ====== */
table{
  width: 100%;
  border-collapse: collapse;
  background: var(--e-global-color-4493c9a);
  color: var(--e-global-color-text);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  overflow: hidden;                  
}

/* Cabecera pegajosa con línea de acento */
thead th{
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--e-global-color-8d0e3cd);
  color: white;
  text-align: left;
  font-weight: 700;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  border-right: 1px solid rgba(255,255,255,0.1);
}
thead th:last-child{
  border-right: none;
}
thead tr{
  position: relative;
}

/* Celdas cuerpo */
tbody td{
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--e-global-color-53bea8c);
  border-right: 1px solid var(--e-global-color-53bea8c);
  vertical-align: middle;
  color: var(--e-global-color-text);
}
tbody td:last-child{
  border-right: none;
}

/* Hover con scale y shadow sutil */
tbody tr{
  transition: all 0.2s ease;
  background: #fff;
}
tbody tr:hover{
  transform: scale(1.01);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 1;
  position: relative;
}

/* Primera/última columna con respiración extra */
thead th:first-child, tbody td:first-child{ padding-left: 1.1rem; }
thead th:last-child,  tbody td:last-child{  padding-right: 1.1rem; }

/* Enlaces con color de marca */
table a{
  color: var(--e-global-color-primary);
  text-decoration: none;
  font-weight: 700;
}
table a:hover{ text-decoration: underline; }

/* Caption descriptivo arriba */
caption{
  caption-side: top;
  text-align: left;
  padding: .5rem 0 .75rem;
  font-weight: 700;
  color: var(--e-global-color-secondary);
}

/* Estados tipo “chip” usando solo elementos (strong, em, small, etc.) */
td strong{
  display:inline-block;
  padding:.28rem .6rem;
  font-weight: 700;
  border-radius: 999px;
  background: color-mix(in srgb, var(--e-global-color-e4be3d0) 12%, white);
  color: var(--e-global-color-d19e2bb);
  line-height: 1;
}

/* --------- Responsive --------- */
/* Permite scroll horizontal suave sin clases extra */
@media (max-width: 900px){
  /* si el contenedor es bloque, el overflow del padre maneja el scroll */
  table{ display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table{ min-width: 720px; } /* evita colapsar columnas estrechas */
}

/* Variante compacta (sin clases: usa prefers-reduced-motion como “switch” opcional) */
@media (prefers-reduced-motion: reduce){
  thead th, tbody td{ padding: .6rem .75rem; }
}