/* Custom Artisan CSS */
:root {
  --primary-blue: #004b87;
  --light-blue: #e3f2fd;
  --accent-blue: #0073e6;
  --text-dark: #2c3e50;
  --bg-white: #ffffff;
  --bg-gray: #f8f9fa;
  --container-max: 1200px;
  --font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.logged-in {
	--adminbar-h: 32px;
}
.global-box-sizing,
.global-box-sizing *, * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  font-family: var(--font-family);
	font-size: 20px;	
}
.site-body {
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
	margin: 0;
	padding: 0;
}


body:has(.site-page) {
	background-color: var(--bg-gray);
    min-height: 100vh;
}

.container {
	width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}
.custom-logo {
	width: auto;
	max-height: 100px;
	object-fit: contain;
}

footer .custom-logo {
	max-height: 140px;
}


/* ==================================================== */
/* HEADER                                               */
/* ==================================================== */

.site-header {
  background: var(--bg-white);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: fixed;
  width: 100%;
  top: var(--adminbar-h, 0);
  z-index: 1000;
}

/* ==================================================== */
/* NAVBAR                                               */
/* ==================================================== */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
}

.brand-link {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-blue);
  text-decoration: none;
  max-width: 12ch;
  line-height: 1;
}

/* ==================================================== */
/* MENÚ PRINCIPAL                                       */
/* ==================================================== */

.nav-links-menu,
.nav-links-menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* LI PRINCIPALES */

.nav-links-menu > li {
  position: relative;
}

/* LINKS */

.nav-links-menu a {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--primary-blue);
  transition: color 0.3s ease;
  padding: 10px 0;
	font-size: 18px;
}

.nav-links-menu a:hover {
  color: var(--accent-blue);
}

/* ==================================================== */
/* SUBMENÚ                                              */
/* ==================================================== */

.nav-links-menu .sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;

  min-width: 220px;

  background: var(--bg-white);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);

  padding: 8px 0;

  z-index: 100;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
}

/* Mostrar submenú */

.nav-links-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ITEMS SUBMENU */

.nav-links-menu .sub-menu li {
  position: relative;
}

/* LINKS SUBMENU */

.nav-links-menu .sub-menu a {
  width: 100%;
  padding: 12px 18px;
  color: var(--text-dark);
  white-space: nowrap;
}

.nav-links-menu .sub-menu a:hover {
  background: var(--bg-gray);
  color: var(--primary-blue);
}

/* ==================================================== */
/* SUBMENÚS ANIDADOS                                   */
/* ==================================================== */

.nav-links-menu .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  margin-left: 10px;
}

/* ==================================================== */
/* INDICADOR VISUAL DROPDOWN                           */
/* ==================================================== */

.nav-links-menu .menu-item-has-children > a::after {
  content: "▾";
  font-size: 1rem;
  transition: transform 0.3s ease;
}

/* Rotación icono */

.nav-links-menu .menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}

/* Flecha lateral para submenús anidados */

.nav-links-menu .sub-menu .menu-item-has-children > a::after {
  content: "▸";
  transform: none;
}

.nav-links-menu .sub-menu .menu-item-has-children:hover > a::after {
  transform: none;
}

/* ==================================================== */
/* RESPONSIVE                                           */
/* ==================================================== */

@media (max-width: 768px) {

  .nav-links-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .nav-links-menu > li {
    width: 100%;
  }

  .nav-links-menu a {
    width: 100%;
    padding: 14px 0;
  }

  .nav-links-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 15px;
    display: none;
  }

  .nav-links-menu li:hover > .sub-menu {
    display: block;
  }

  .nav-links-menu .sub-menu .sub-menu {
    margin-left: 0;
  }
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-blue);
}

.hamburger-icon {
  width: 24px;
  height: 24px;
  stroke: var(--primary-blue);
}

/* Sections */
.site-section {
  padding: 80px 0;
}

/* Hero */
.hero-section {
  margin-top: 60px;
  background: linear-gradient(135deg, var(--bg-white) 0%, var(--light-blue) 100%);
	padding: 3rem 0;
}

.hero-content {
  display: grid;
  align-items: center;
  gap: 40px;
	grid-template-columns: 1fr 1fr;
}

.hero-text-block {
  flex: 1 1 400px;
}

.hero-title {
  font-size: 3rem;
  color: var(--primary-blue);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.1rem;
}

.hero-video-container,
.hero-video-container picture,
.hero-video-container video {
  width: 100%;
	height: 100%;
	min-height: 40vh;
	object-fit: contain;
}

/* Banner Event Data */
.evento-banner-section {
  background: var(--primary-blue);
  color: var(--bg-white);
  text-align: center;
  padding: 40px 20px;
}

.evento-title {
  font-size: 2rem;
  margin-bottom: 10px;
}

.evento-text {
  font-size: 1.25rem;
}

/* Actividades */
.actividades-section {
  background-color: var(--light-blue);
  display: flex;
  align-items: center;
}

.section-title-center {
  text-align: center;
  color: var(--primary-blue);
  margin-bottom: 40px;
  font-size: 2.5rem;
}

.actividades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  text-align: center;
  width: 100%;
}

.actividad-card {
  background: var(--bg-white);
  padding: 40px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.actividad-card:hover {
  transform: translateY(-5px);
}

.actividad-icon {
  width: 64px;
  height: 64px;
  stroke: var(--primary-blue);
  margin-bottom: 20px;
}

.actividad-title {
  color: var(--primary-blue);
}

/* Inscripcion */
.inscripcion-section {
  text-align: center;
}

.inscripcion-text {
  margin-bottom: 20px;
}

.cta-btn {
  display: inline-block;
  background: var(--accent-blue);
  color: var(--bg-white);
  padding: 15px 30px;
  font-size: 1.25rem;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 115, 230, 0.3);
  transition: background 0.3s ease, transform 0.3s ease;
}

.cta-btn:hover {
  background: var(--primary-blue);
  color: var(--bg-white);
  transform: scale(1.05);
}

/* Aranceles */
.aranceles-section {
  background: var(--bg-gray);
}

.aranceles-title {
  text-align: center; 
  color: var(--primary-blue); 
  margin-bottom: 30px;
}

.table-responsive {
  overflow-x: auto;
  margin-top: 30px;
}

.aranceles-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  border-radius: 8px;
  overflow: hidden;
}

.aranceles-table-cell,
.aranceles-table-head-cell {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid #eeeeee;
}

.aranceles-table-head-cell {
  background: var(--primary-blue);
  color: var(--bg-white);
  font-weight: 600;
}

/* Areas Tematicas */
.areas-tematicas-section {
  /* section padding inherited */
}

.areas-tematicas-title {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-blue);
}

.areas-list {
  column-count: 3;
  column-gap: 40px;
  list-style-position: inside;
}

.area-item {
  margin-bottom: 10px;
  break-inside: avoid;
}


/* ==================================================== */
/* INICIO TABLAS GENÉRICAS                              */
/* ==================================================== */
.table-responsive {
  overflow-x: auto;
  margin-top: 30px;
  margin-bottom: 50px;
}

.site-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  border-radius: 8px;
  overflow: hidden;
}

.site-table thead th {
  background: var(--primary-blue);
  color: var(--bg-white);
  font-weight: 600;
  padding: 15px 20px;
  text-align: left;
}

.site-table tbody td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid #eeeeee;
  vertical-align: top;
}

.site-table tbody tr:last-child td {
  border-bottom: none;
}

/* Modifier: header grande */
.site-table.table-large-header thead th {
  font-size: 1.5rem;
}

/* Modifier: Layout 50/50 para columnas con layout flex behavior on mobile */
.site-table.split-table tbody td:first-child {
/*   width: 50%; */
  border-right: 1px solid #f0f0f0;
}

.site-table.split-table tbody td:last-child {
/*   width: 100%; */
}

.site-table .table-title {
  font-weight: 600;
  color: var(--primary-blue);
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.site-table .table-subtitle {
  color: var(--text-dark);
  font-size: 0.95rem;
  margin-bottom: 5px;
}

.site-table .table-item {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 8px;
}

.site-table .table-item:last-child {
  margin-bottom: 0;
}

.site-table .table-role {
  font-weight: 600;
  color: var(--text-dark);
}

@media (max-width: 768px) {
  .site-table.split-table tbody td {
    display: block;
    width: 100%;
  }
  .site-table.split-table tbody td:first-child {
    border-right: none;
    border-bottom: 1px dashed #eaeaea;
    padding-bottom: 10px;
  }
  .site-table.split-table tbody td:last-child {
    padding-top: 10px;
  }
}
/* ==================================================== */
/* FIN TABLAS GENÉRICAS                                 */
/* ==================================================== */




/* ==================================================== */
/* INICIO PÁGINAS GENÉRICAS (Sede, etc.)                */
/* ==================================================== */
.default-page-section {
  background-color: var(--bg-white);
  min-height: 100vh;
}
.site-page {
	padding-bottom: 64px;
}
.site-page_header {
  margin-bottom: 40px;
  border-bottom: 2px solid var(--light-blue);
  padding: 40px 0 20px;
}

.post-breadcrumb {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px;
}

.post-breadcrumb a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: text-decoration 0.3s ease;
}

.post-breadcrumb a:hover {
  text-decoration: underline;
}

.site-page_header h1 {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-top: 10px;
}

.page-content p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: var(--text-dark);
}

.page-content p strong {
  color: var(--primary-blue);
}

.page-content h2 {
  font-size: 1.8rem;
  color: var(--primary-blue);
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-content h3 {
  font-size: 1.4rem;
  color: var(--primary-blue);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-content .styled-list {
  list-style-type: none;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-content .styled-list li {
  position: relative;
  margin-bottom: 10px;
  line-height: 1.6;
  padding-left: 20px;
}

.page-content .styled-list li::before {
  content: '■';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-blue);
  font-size: 0.7rem;
  line-height: 2.2;
}
/* ==================================================== */
/* FIN PÁGINAS GENÉRICAS                                */
/* ==================================================== */

/* Contacto */
.contacto-section {
  background: var(--primary-blue);
  color: var(--bg-white);
}

.contacto-title-main {
  text-align: center; 
  margin-bottom: 40px; 
  color: var(--bg-white);
}

.contacto-link {
  color: var(--light-blue);
  text-decoration: none;
}

.contacto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
}

.contacto-icon {
  width: 48px;
  height: 48px;
  stroke: var(--light-blue);
  margin-bottom: 15px;
}

.contacto-title {
  /* specific styling if needed */
}

/* Footer */
.site-footer {
  background: #00284d;
  color: #bbccdd;
  padding: 40px 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-title {
  color: var(--bg-white);
  margin-bottom: 15px;
}

.footer-text {
  max-width: 300px;
}

.footer-links {
  list-style: none; /* Required for UL / WordPress menu */
}

.footer-link-item {
  margin-bottom: 8px;
}

.footer-link {
  color: #bbccdd;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--bg-white);
}

.social-icons-container {
  display: flex;
  gap: 15px;
}

.social-icon-svg {
  width: 24px;
  height: 24px;
  stroke: #bbccdd;
  transition: stroke 0.3s ease;
}

.social-link:hover .social-icon-svg {
  stroke: var(--bg-white);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .areas-list {
    column-count: 1;
  }
  
  .nav-links-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 60px;
    left: 0;
    background: var(--bg-white);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
  }
  
  .nav-links-menu.active {
    display: flex;
  }
  
  .hamburger-btn {
    display: block;
  }
}
