@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --primary: #7a2d2d;
  --secondary: #2f5d50;
  --background: #e8dcc8;
  --text: #2b2b2b;
}

/* =========================================================
   BASE GLOBAL
   - Reglas de tipografía y reseteo general
   - Fondo principal y comportamiento global de viewport
   ========================================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Montserrat", Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
}

.textura_papel{
  background-image: url('../images/fondo.jpg');
  background-color: rgba(255, 255, 255, 0.3);
  background-blend-mode: lighten;
  background-size: auto;
  background-position: center center;
  background-repeat: no-repeat;
}

body {
  color: var(--text);
  line-height: 1.6;
  background-color: var(--background);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  padding-top: 95px !important;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

.container,
.container-fluid {
  max-width: 100%;
}

/* =========================================================
   HEADER / NAVBAR (unificado desde templates)
   - Estilo visual del header fijo
   - Comportamiento de links y marca/logo
   ========================================================= */
.navbar {
  padding: 0.8rem 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-weight: bold;
}

.site-header .navbar-nav .nav-link {
  /* Solo spacing/posición para links del menú del header */
  margin-left: 1.2rem;
  position: relative;
}

.site-header .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.site-header .navbar-nav .nav-link:hover::after {
  width: 80%;
}

/* Header principal */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.site-header-topbar {
  background-color: #6b3d2e;
  height: 15px;
  width: 100%;
}

.site-navbar {
  background-color: #f5ede3;
  padding: 0.5rem 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.site-brand {
  flex: 1;
  transform-origin: left center;
}

.header-logo {
  height: 55px;
}

.header-logo-text {
  line-height: 1.1;
}

.header-title {
  font-size: 1.3rem;
  color: #3d2817;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: 1px;
}

.header-subtitle {
  font-size: 0.85rem;
  color: #6b4423;
  font-style: italic;
  font-family: 'Georgia', serif;
}

.site-navbar-toggler {
  border-color: #6b4423;
  padding: 0.375rem 0.5rem;
  margin: 0;
}

.site-nav-list {
  gap: 2rem;
}

.site-header .nav-link {
  /* Base común para cualquier nav-link dentro del header */
  color: #3d2817 !important;
  font-weight: 500;
  font-family: 'Georgia', serif;
}

.site-header .nav-link:hover {
  color: #8b3a3a !important;
}

.nav-item-socios {
  margin-left: 1rem;
}

.socios-link {
  text-decoration: none;
  color: #6b3d2e;
  font-weight: 600;
  font-family: 'Georgia', serif;
  border: 2px solid #6b3d2e;
  padding: 0.25rem 0.75rem;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

.site-user-name {
  color: #3d2817;
  font-weight: 500;
}

/* Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
}

.hero-overlay h2 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Curva decorativa inferior del hero */
.hero-curve {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 100px;
  background: #f5f1e8;
  clip-path: ellipse(100% 100% at 50% 100%);
  z-index: 3;
}

/* Buttons */
.btn-danger {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}

.btn-danger:hover {
  background-color: #5a1f1f !important;
  border-color: #5a1f1f !important;
}

.btn-success {
  background-color: var(--secondary) !important;
  border-color: var(--secondary) !important;
}

.btn-success:hover {
  background-color: #1f3d2f !important;
  border-color: #1f3d2f !important;
}

/* Cards */
.card {
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  border-radius: 0.5rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

.card img {
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.event-card .card-body {
  padding: 1.5rem;
}

.event-card .card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--text);
}

/* Sections */
section {
  padding: 3rem 0;
}

section h2 {
  font-family: 'Playfair Display', serif;
  color: var(--text);
  margin-bottom: 2rem;
}

/* =========================================================
   LAYOUT BASE (migrado desde base.html)
   - Mensajes flotantes
   - Sidebar móvil y overlay
   - Área principal con/sin sidebar
   ========================================================= */
.site-messages-container {
  position: fixed;
  top: 95px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: 90%;
  max-width: 600px;
}

.site-content-min-height {
  min-height: calc(100vh - 180px);
}

.mobile-sidebar {
  position: fixed;
  top: 95px;
  left: -100%;
  width: 70%;
  height: calc(100vh - 95px);
  overflow-y: auto;
  z-index: 2000;
  transition: left 0.3s ease;
}

.mobile-sidebar-admin {
  background-color: #7a2d2d !important;
}

.mobile-sidebar-user {
  background-color: #1e2250 !important;
}

.sidebar-overlay {
  position: fixed;
  top: 95px;
  left: 0;
  width: 100%;
  height: calc(100vh - 95px);
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
}

.main-content-area {
  margin-left: 0;
  width: 100%;
  padding: 20px;
  min-height: 100vh;
}

/* Footer */
footer {
  margin-top: 3rem;
}

footer a {
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--primary) !important;
}

.site-footer {
  background-color: #6b3d2e;
  padding: 2rem 0;
  position: relative;
  width: 100%;
}

.site-footer-social-link {
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.site-footer-social-icon {
  font-size: 1.2rem;
}

.site-footer-text {
  color: #f5ede3;
  font-size: 0.9rem;
  font-family: 'Georgia', serif;
}

.site-footer-accent {
  color: #d4a574;
}

.site-footer a:hover {
  opacity: 1 !important;
  transform: scale(1.1);
}

.sidebar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
}

.nav-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  position: relative;
  height: 50px;
  width: 100%;
}

.nav-link-icon:hover .nav-bg {
  width: 200px; /* ancho del "despliegue" hacia la derecha al pasar el ratón */
  opacity: 1;
}

.nav-link-icon:hover .icon-circle {
  transform: translateX(-50%); /* mantiene el círculo fijo en el borde (sin desplazarse) */
}

.nav-bg {
  position: absolute;
  left: calc(100% - 10px); /* punto de inicio del fondo: centrado con el círculo en el borde */
  width: 0;
  height: 50px; /* alto del fondo desplegable (igual al alto del botón) */
  background-color: #a82835;
  border-radius: 25px; /* extremos redondeados tipo píldora */
  z-index: 0;
  opacity: 0;
  transition: width 0.4s ease, opacity 0.3s ease; /* velocidad de apertura/cierre */
}

.icon-circle {
  position: absolute;
  left: 125%; /* mueve el círculo más a la derecha (ajusta este valor a mano si quieres más/menos) */
  width: 50px;
  height: 50px; /* tamaño del círculo del icono */
  border-radius: 50%;
  background-color: #a82835;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  z-index: 2;
  transform: translateX(-50%); /* deja media circunferencia fuera y media dentro del sidebar */
  transition: transform 0.4s ease;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-text {
  position: absolute;
  left: calc(100% + 10px); /* arranca el texto justo a la derecha del borde/círculo */
  white-space: nowrap;
  font-weight: 500;
  font-size: 0.95rem;
  color: white;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease 0.1s;
}

.nav-link-icon:hover .nav-text {
  opacity: 1;
}

.sidebar {
  width: 60px !important;
}

/* =========================================================
   BREAKPOINTS DE ESTRUCTURA GLOBAL
   - 992px: comportamiento navbar desktop
   - 991px: ajuste header fijo + sidebar móvil
   - 768px: compactación de tipografías/espaciado
   ========================================================= */
@media (min-width: 992px) {
  .site-header .navbar-toggler {
    display: none !important;
  }
}

@media (max-width: 991px) {
  body {
    padding-top: 80px !important;
  }

  .header-logo {
    height: 45px !important;
  }

  .header-title {
    font-size: 1.1rem !important;
  }

  .header-subtitle {
    font-size: 0.75rem !important;
  }

  .site-navbar {
    padding: 0.4rem 0 !important;
  }

  .site-header .navbar-nav {
    padding-top: 1rem;
    gap: 0.5rem !important;
  }

  .site-header .navbar-nav .nav-item {
    padding: 0.5rem 0;
  }

  .site-header .navbar-toggler {
    align-self: center;
    margin-right: 0.5rem;
  }

  .site-header .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1.5rem !important;
  }

  .site-brand {
    flex: 0 1 auto !important;
    max-width: calc(100% - 60px);
  }

  .site-messages-container {
    top: 80px;
  }

  .mobile-sidebar {
    top: 80px;
    height: calc(100vh - 80px);
  }

  .sidebar-overlay {
    top: 80px;
    height: calc(100vh - 80px);
  }

  .sidebar-container {
    align-items: stretch;
    gap: 0.9rem;
    padding: 0.75rem 0.25rem;
  }

  .nav-link-icon {
    justify-content: flex-start;
    height: 56px;
    padding: 0 0.75rem;
    border-radius: 28px;
  }

  .nav-bg {
    display: none;
  }

  .icon-circle {
    position: relative;
    left: auto;
    transform: none;
    flex: 0 0 50px;
  }

  .nav-link-icon:hover .icon-circle {
    transform: none;
  }

  .nav-text {
    position: relative;
    left: auto;
    opacity: 1;
    margin-left: 0.8rem;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-overlay h2 {
    font-size: 1.8rem !important;
  }

  .site-header .navbar-nav .nav-link {
    margin-left: 0 !important;
    padding: 0.5rem 0;
  }

  .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
  }
}

@media (min-width: 768px) {
  #mobileSidebar {
    left: 0 !important;
    width: 70px !important; /* ancho fijo del rail lateral en desktop/tablet */
    overflow: visible !important;
  }

  .main-content-area {
    margin-left: 84px !important; /* separa el contenido para no pisar el sidebar */
    width: calc(100% - 84px) !important; /* compensa el espacio que ocupa el sidebar */
    padding: 1.5rem 40px !important;
  }
}

/* Dashboard Sidebar */
.sidebar-dashboard {
  /* Background controlado por template Django */
  color: white;
  min-height: 100%;
}

.sidebar-dashboard .nav-link {
  display: block;
  padding: 0.7rem 1rem;
  margin-bottom: 0.6rem;
  cursor: pointer;
  color: white !important;
  text-decoration: none;
  border-radius: 0.3rem;
  transition: background 0.3s ease;
}

.sidebar-dashboard .nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-dashboard .nav-link.active {
  background: var(--primary);
  font-weight: 600;
}

/* Dashboard */
.dashboard-title,
.dashboard-section-title {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
}

.dashboard-event-image {
  height: 180px;
  object-fit: cover;
  width: 100%;
}

.dashboard-primary-text {
  color: var(--primary);
}

.dashboard-secondary-text {
  color: var(--secondary);
}

.dashboard-transparent-bg {
  background: transparent;
}

.dashboard-quick-access-card {
  background: #e7e0d1;
  cursor: pointer;
}

.dashboard-stat-card-primary-soft {
  background: #fce8e8;
  border: 2px solid var(--primary);
}

.dashboard-stat-card-secondary-soft {
  background: #e8f4f1;
  border: 2px solid var(--secondary);
}

.dashboard-stat-card-primary-warm {
  background: #f5ede1;
  border: 2px solid var(--primary);
}

/* ===== Template: membership_request ===== */
.tpl-membership-request .membership-title,
.tpl-membership-request .membership-benefits-title {
  font-family: 'Playfair Display', serif;
}

/* ===== Template: admin_panel ===== */
.admin-panel-title {
  color: #7a2d2d;
}

/* ===== Template: events ===== */
.tpl-events .calendar-wrapper {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 12px 24px;
}

.tpl-events #calendar {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #e9ecef;
}

.tpl-events .fc-event {
  cursor: pointer;
}

.tpl-events .calendar-header {
  border-left: 5px solid #7a2d2d;
  background: #f8f9fa;
  border-radius: 10px;
  padding: 16px;
  margin: 0 auto 16px;
}

.tpl-events .calendar-header h1 {
  margin: 0;
  font-size: 1.7rem;
}

.tpl-events .calendar-header p {
  margin: 8px 0 0;
  color: #495057;
}

.tpl-events .event-legend {
  margin: 0 0 18px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.tpl-events .legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.tpl-events .legend-color {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.tpl-events .modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.tpl-events .modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #dee2e6;
  width: 90%;
  max-width: 640px;
  border-radius: 10px;
}

.tpl-events .close {
  color: #6c757d;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.tpl-events .close:hover,
.tpl-events .close:focus {
  color: #212529;
}

.tpl-events .form-group {
  margin-bottom: 15px;
}

.tpl-events .form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.tpl-events .form-group input,
.tpl-events .form-group textarea,
.tpl-events .form-group select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  box-sizing: border-box;
}

.tpl-events .events-modal-actions {
  margin-top: 20px;
}

.tpl-events .events-btn-delete {
  display: none;
}

/* ===== Template: act ===== */
.tpl-act.acts-section {
  background-color: #e8dcc8;
  padding: 0;
  margin: 0;
}

.tpl-act .hero-section {
  background: linear-gradient(to bottom, rgba(71, 40, 7, 0.54), rgba(0, 0, 0, 0.15)),
              url('../images/puerta_sede.png') center/cover no-repeat;
  height: 60vh;
  position: relative;
  border-bottom-left-radius: 100% 25%;
  border-bottom-right-radius: 100% 25%;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.50);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tpl-act .hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  color: #ffffff;
  text-shadow: 2px 3px 14px rgba(29, 26, 26, 0.74);
  text-align: center;
  padding: 0 20px;
}

.tpl-act .ornament-divider {
  text-align: center;
  margin: 60px 0 40px;
  position: relative;
}

.tpl-act .ornament-divider span {
  position: absolute;
  top: 50%;
  height: 1px;
  width: 40%;
  background-color: #3d2817;
  z-index: 0;
}

.tpl-act .ornament-divider span:first-child { left: 0; }
.tpl-act .ornament-divider span:last-child { right: 0; }

.tpl-act .ornament-divider img {
  width: 100px;
  height: auto;
  z-index: 1;
  position: relative;
}

.tpl-act .act-card-container {
  margin: 80px auto;
  max-width: 1400px;
  padding: 0 30px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
}

.tpl-act .act-card-large {
  position: relative;
  height: 380px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
  cursor: pointer;
  border: 6px solid #8b6f47;
}

.tpl-act .act-card-link {
  text-decoration: none;
}

.tpl-act .act-card-large:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.tpl-act .act-card-large::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(107, 61, 46, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 1;
  transition: all 0.4s ease;
}

.tpl-act .act-card-large:hover::before {
  background: linear-gradient(135deg, rgba(107, 61, 46, 0.5) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.tpl-act .act-card-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tpl-act .act-card-large:hover img {
  transform: scale(1.05);
}

.tpl-act .act-card-content {
  position: absolute;
  z-index: 2;
  color: white;
  padding: 25px;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
}

.tpl-act .act-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: bold;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.8);
  margin-bottom: 10px;
  line-height: 1.2;
}

.tpl-act .act-card-description {
  font-size: 0.95rem;
  font-family: 'Georgia', serif;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  margin-bottom: 12px;
}

.tpl-act .act-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: #3d2817;
}

.tpl-act .act-empty-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
}

.tpl-act .act-empty-description {
  font-family: 'Georgia', serif;
  font-size: 1.1rem;
  margin-top: 20px;
}

.tpl-act .ornament-divider-bottom {
  margin-bottom: 60px;
}

/* ===== Template: act_detail ===== */
.tpl-act-detail.act-detail-section {
  background-color: #e8dcc8;
  padding: 0;
  margin: 0;
}

.tpl-act-detail .hero-section {
  height: 60vh;
  position: relative;
  border-bottom-left-radius: 100% 25%;
  border-bottom-right-radius: 100% 25%;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.50);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tpl-act-detail .hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(71, 40, 7, 0.54), rgba(0, 0, 0, 0.15));
  z-index: 1;
}

.tpl-act-detail .hero-bg-image {
  position: absolute !important;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  display: block;
}

.tpl-act-detail .hero-content {
  position: relative;
  width: 100%;
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
  z-index: 2;
}

.tpl-act-detail .hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  color: #ffffff;
  text-shadow: 2px 3px 14px rgba(29, 26, 26, 0.74);
  margin-bottom: 20px;
}

.tpl-act-detail .hero-description {
  font-family: 'Georgia', serif;
  font-size: 1.3rem;
  color: #f5f1e8;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.tpl-act-detail .ornament-divider {
  text-align: center;
  margin: 60px 0 40px;
  position: relative;
}

.tpl-act-detail .ornament-divider span {
  position: absolute;
  top: 50%;
  height: 1px;
  width: 40%;
  background-color: #3d2817;
  z-index: 0;
}

.tpl-act-detail .ornament-divider span:first-child { left: 0; }
.tpl-act-detail .ornament-divider span:last-child { right: 0; }

.tpl-act-detail .ornament-divider img {
  width: 100px;
  height: auto;
  z-index: 1;
  position: relative;
}

.tpl-act-detail .section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #3d2817;
  text-align: center;
  margin-bottom: 50px;
}

.tpl-act-detail .editions-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px 80px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 35px;
}

.tpl-act-detail .edition-card {
  background-color: #f5f1e8;
  border: 4px solid #8b6f47;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.tpl-act-detail .edition-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.tpl-act-detail .edition-header {
  background: linear-gradient(135deg, #6b3d2e 0%, #8b5a47 100%);
  padding: 20px 25px;
  color: white;
}

.tpl-act-detail .edition-year-badge {
  display: inline-block;
  background-color: rgba(139, 111, 71, 0.9);
  padding: 6px 16px;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tpl-act-detail .edition-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  margin: 0 0 8px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.tpl-act-detail .edition-date {
  font-family: 'Georgia', serif;
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
}

.tpl-act-detail .edition-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tpl-act-detail .edition-image-container {
  position: relative;
  border-bottom: 3px solid #8b6f47;
  overflow: hidden;
}

.tpl-act-detail .edition-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  display: block;
}

.tpl-act-detail .edition-card:hover .edition-image {
  transform: scale(1.05);
}

.tpl-act-detail .edition-image-placeholder {
  width: 100%;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d4c4a8 0%, #e8dcc8 100%);
  font-size: 4rem;
  color: #8b6f47;
}

.tpl-act-detail .edition-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  flex: 1;
}

.tpl-act-detail .edition-description {
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #3d2817;
  text-align: left;
  margin-bottom: 20px;
}

.tpl-act-detail .edition-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tpl-act-detail .btn-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.tpl-act-detail .btn-gallery {
  background-color: #8b3a3a;
  color: white;
}

.tpl-act-detail .btn-video {
  background-color: #5a7a4d;
  color: white;
}

.tpl-act-detail .btn-gallery:hover,
.tpl-act-detail .btn-video:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  color: white;
  text-decoration: none;
}

.tpl-act-detail .btn-gallery:hover { background-color: #a84a4a; }
.tpl-act-detail .btn-video:hover { background-color: #739963; }

.tpl-act-detail .no-editions {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: #3d2817;
}

.tpl-act-detail .no-editions h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 15px;
}

.tpl-act-detail .no-editions p {
  font-family: 'Georgia', serif;
  font-size: 1.1rem;
}

.tpl-act-detail .ornament-divider-bottom {
  margin-bottom: 60px;
}

/* ===== Template: gallery ===== */
.tpl-gallery.gallery-section {
  background-color: #e8dcc8;
  padding: 0;
  margin: 0;
  min-height: 100vh;
}

.tpl-gallery .hero-section {
  background: linear-gradient(to bottom, rgba(71, 40, 7, 0.54), rgba(0, 0, 0, 0.15));
  height: 50vh;
  position: relative;
  border-bottom-left-radius: 100% 25%;
  border-bottom-right-radius: 100% 25%;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.50);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tpl-gallery .gallery-hero-bg,
.tpl-home .home-hero-bg,
.tpl-who-we-are .who-hero-bg {
  position: absolute !important;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  display: block;
}

.tpl-gallery .hero-content {
  position: relative;
  width: 100%;
  text-align: center;
  padding: 0 20px;
  z-index: 2;
}

.tpl-gallery .hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: #ffffff;
  text-shadow: 2px 3px 14px rgba(29, 26, 26, 0.74);
  margin-bottom: 10px;
}

.tpl-gallery .hero-subtitle {
  font-family: 'Georgia', serif;
  font-size: 1.3rem;
  color: #f5f1e8;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.tpl-gallery .ornament-divider {
  text-align: center;
  margin: 60px 0 50px;
  position: relative;
}

.tpl-gallery .ornament-divider span {
  position: absolute;
  top: 50%;
  height: 1px;
  width: 40%;
  background-color: #3d2817;
  z-index: 0;
}

.tpl-gallery .ornament-divider span:first-child { left: 0; }
.tpl-gallery .ornament-divider span:last-child { right: 0; }

.tpl-gallery .ornament-divider img {
  width: 100px;
  height: auto;
  z-index: 1;
  position: relative;
}

.tpl-gallery .gallery-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px 80px;
}

.tpl-gallery .gallery-edition-description {
  text-align: center;
  font-family: 'Georgia', serif;
  font-size: 1.1rem;
  color: #3d2817;
  margin: 0 auto 50px;
  max-width: 800px;
}

.tpl-gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 50px;
  padding: 20px 0;
}

.tpl-gallery .photo-card {
  perspective: 1000px;
  height: 400px;
  cursor: pointer;
}

.tpl-gallery .photo-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.tpl-gallery .photo-card.flipped .photo-inner {
  transform: rotateY(180deg);
}

.tpl-gallery .photo-front,
.tpl-gallery .photo-back {
  /* Base compartida de ambas caras de la tarjeta (geometría/3D) */
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.tpl-gallery .photo-front {
  background: #f5f1e8;
  padding: 15px 15px 60px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(139, 111, 71, 0.2), inset 0 0 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #d4c4a8;
  transform: rotate(0deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tpl-gallery .photo-card:nth-child(3n+1) .photo-front { transform: rotate(-2deg); }
.tpl-gallery .photo-card:nth-child(3n+2) .photo-front { transform: rotate(1.5deg); }
.tpl-gallery .photo-card:nth-child(3n+3) .photo-front { transform: rotate(-1deg); }

.tpl-gallery .photo-card:hover .photo-front {
  transform: rotate(0deg) translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.tpl-gallery .photo-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  filter: sepia(0.08) contrast(1.05);
  border: 1px solid #d4c4a8;
}

.tpl-gallery .photo-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #d4c4a8 0%, #e8dcc8 100%);
  font-size: 3rem;
  color: #8b6f47;
}

.tpl-gallery .photo-caption {
  font-family: 'Georgia', serif;
  font-size: 1rem;
  color: #3d2817;
  text-align: center;
  margin-top: 15px;
  font-weight: 600;
  min-height: 25px;
}

.tpl-gallery .featured-badge {
  position: absolute;
  top: 25px;
  right: 25px;
  background-color: rgba(218, 165, 32, 0.9);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.tpl-gallery .view-full-btn {
  position: absolute;
  top: 25px;
  left: 25px;
  background-color: rgba(107, 61, 46, 0.9);
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 3;
}

.tpl-gallery .view-full-btn:hover {
  background-color: rgba(139, 90, 71, 1);
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.tpl-gallery .lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.tpl-gallery .lightbox.active { display: flex; }

.tpl-gallery .lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tpl-gallery .lightbox-image {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border: 4px solid #8b6f47;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  border-radius: 5px;
}

.tpl-gallery .lightbox-caption {
  background-color: rgba(107, 61, 46, 0.95);
  color: white;
  padding: 15px 25px;
  margin-top: 15px;
  border-radius: 5px;
  font-family: 'Georgia', serif;
  font-size: 1.1rem;
  text-align: center;
  max-width: 600px;
}

.tpl-gallery .lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3rem;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10000;
  line-height: 1;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(107, 61, 46, 0.8);
  border-radius: 50%;
}

.tpl-gallery .lightbox-close:hover {
  transform: scale(1.1);
  background-color: rgba(139, 90, 71, 0.9);
}

.tpl-gallery .photo-back {
  /* Estilo visual específico de la cara trasera (contenido) */
  background: linear-gradient(135deg, #6b3d2e 0%, #8b5a47 100%);
  padding: 30px;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #8b6f47;
}

.tpl-gallery .back-content { width: 100%; }

.tpl-gallery .back-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.tpl-gallery .back-description {
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 25px;
  color: #f5f1e8;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  max-height: 180px;
  overflow-y: auto;
}

.tpl-gallery .back-uploader {
  font-family: 'Georgia', serif;
  font-size: 0.9rem;
  color: #f5f1e8;
  border-top: 1px solid rgba(245, 241, 232, 0.3);
  padding-top: 15px;
  margin-top: auto;
}

.tpl-gallery .back-hint {
  font-size: 0.8rem;
  color: rgba(245, 241, 232, 0.7);
  margin-top: 15px;
  font-style: italic;
}

.tpl-gallery .no-images {
  text-align: center;
  padding: 100px 20px;
  color: #3d2817;
  grid-column: 1 / -1;
}

.tpl-gallery .no-images h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 15px;
}

.tpl-gallery .no-images p {
  font-family: 'Georgia', serif;
  font-size: 1.1rem;
}

.tpl-gallery .ornament-divider-bottom {
  margin-bottom: 60px;
}

/* ===== Template: home ===== */
.tpl-home .btn-socio {
  background-color: #6b3d2e;
  color: white;
  border: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 5px;
}

.tpl-home .btn-socio:hover {
  background-color: #8b5a47;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  color: white;
}

.tpl-home .btn-eventos {
  background-color: #5a7a4d;
  color: white;
  border: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.tpl-home .btn-eventos:hover {
  background-color: #739963;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  color: white;
}

.tpl-home .home-hero {
  height: 70vh;
  position: relative;
  border-bottom-left-radius: 100% 25%;
  border-bottom-right-radius: 100% 25%;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.50);
  overflow: hidden;
}

.tpl-home .home-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(71, 40, 7, 0.54), rgba(0, 0, 0, 0.15));
  border-bottom-left-radius: 100% 25%;
  border-bottom-right-radius: 100% 25%;
}

.tpl-home .home-hero-content {
  max-width: 600px;
  margin-bottom: 80px;
  margin-left: 80px;
}

.tpl-home .home-hero-title {
  font-family: 'Playfair Display', serif;
  text-shadow: 2px 3px 14px rgba(29, 26, 26, 0.74);
  line-height: 1.2;
  color: #ffffff;
}

.tpl-home .home-block-section {
  background-color: #e8dcc8;
  background-repeat: repeat;
  margin: 0 30px;
}

.tpl-home .home-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  color: #3d2817;
}

.tpl-home .home-divider-line {
  flex: 1;
  height: 1px;
  background-color: #3d2817;
  margin-left: 20px;
  margin-top: 10px;
}

.tpl-home .home-frame-image {
  border: 4px solid #8b6f47;
  border-radius: 5px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tpl-home .home-body-text {
  color: #3d2817;
  font-family: 'Georgia', serif;
}

.tpl-home .home-btn-primary {
  background-color: #8b3a3a;
  color: white;
  border: none;
  font-weight: 500;
  border-radius: 4px;
  width: fit-content;
}

.tpl-home .home-btn-primary:hover {
  background-color: #a84a4a;
  color: white;
}

.tpl-home .home-btn-transition {
  transition: all 0.3s ease;
}

.tpl-home .home-centered-heading {
  position: relative;
}

.tpl-home .home-centered-heading-line {
  position: absolute;
  top: 50%;
  height: 1px;
  width: 37%;
  background-color: #3d2817;
  z-index: 0;
}

.tpl-home .home-centered-heading-line:first-child {
  left: 0;
}

.tpl-home .home-centered-heading-line:last-child {
  right: 0;
}

.tpl-home .home-centered-heading-title {
  position: relative;
  z-index: 1;
}

.tpl-home .home-event-card {
  border: 3px solid #8b6f47;
  background-color: #f5f1e8;
  border-radius: 2px;
}

.tpl-home .home-event-card-image {
  border-bottom: 3px solid #8b6f47;
}

.tpl-home .home-event-card-body {
  background-color: #f5f1e8;
}

.tpl-home .home-event-card-title {
  font-family: 'Playfair Display', serif;
  color: #3d2817;
  font-size: 1.4rem;
}

.tpl-home .home-event-card-text {
  color: #5d4a35;
  font-size: 0.95rem;
}

.tpl-home .carousel-3d-container {
  perspective: 1200px;
  position: relative;
  height: 350px;
  margin: 50px auto;
  max-width: 100%;
}

.tpl-home .carousel-3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1s ease;
}

.tpl-home .carousel-3d-item {
  position: absolute;
  width: 280px;
  height: 240px;
  left: 50%;
  top: 50%;
  margin-left: -140px;
  margin-top: -120px;
  border: 4px solid #8b6f47;
  border-radius: 5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.5s ease;
  background-size: cover;
  background-position: center;
}

.tpl-home .carousel-3d-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

.tpl-home .carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  background-color: rgba(107, 61, 46, 0.8);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tpl-home .carousel-nav:hover {
  background-color: #8b5a47;
  transform: translateY(-50%) scale(1.1);
}

.tpl-home .carousel-nav.prev { left: 0; }
.tpl-home .carousel-nav.next { right: 0; }

/* ===== Template: who_we_are ===== */
/* Sección: Quiénes Somos
   - Marcos de fotos con efecto rotación y pergamino (.photo-frame)
   - Imágenes con filtro sepia (.photo-frame img)
   - Texto estilo pergamino (.parchment-text)
   - Hero section con imagen de fondo
   - Degradados decorativos (.gradient-brush) */

.tpl-who-we-are .photo-frame {
  background: #f5f1e8;
  padding: 12px 12px 40px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(139, 111, 71, 0.2), inset 0 0 10px rgba(0, 0, 0, 0.05);
  transform: rotate(-3deg);
  transition: transform 0.3s ease;
  border: 1px solid #d4c4a8;
}

.tpl-who-we-are .photo-frame:nth-child(even) {
  transform: rotate(2deg);
}

.tpl-who-we-are .photo-frame:hover {
  transform: rotate(0deg) scale(1.05);
  z-index: 10;
}

.tpl-who-we-are .photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.15) contrast(1.1);
}

.tpl-who-we-are .parchment-text {
  font-family: 'Georgia', serif;
  font-size: 1rem;
  line-height: 1.8;
  color: #3d2817;
  text-align: justify;
  text-justify: inter-word;
  padding: 0 15px;       /* Padding uniforme */
}

.tpl-who-we-are .who-parchment-left {
  text-align: justify;    /* Mismo formato que el resto */
}

.tpl-who-we-are .gradient-brush {
  position: absolute;
  width: 90%;        /* Proporcional al tamaño de la foto */
  height: 90%;     /* Misma altura que la foto */
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
  top: 50%;
  transform: translateY(-50%);   /* Centra verticalmente */
}


.tpl-who-we-are .who-gradient-right {
  right: 20%;

}

.tpl-who-we-are .who-gradient-left {
  left: 20%;

}

.tpl-who-we-are .gradient-right-to-left {
  background: linear-gradient(to left, rgba(139, 111, 71, 0.4) 0%, rgba(163, 133, 87, 0.25) 60%, rgba(212, 196, 168, 0.15) 90%, transparent 100%);
}

.tpl-who-we-are .gradient-left-to-right {
  background: linear-gradient(to right, rgba(139, 111, 71, 0.4) 0%, rgba(163, 133, 87, 0.25) 60%, rgba(212, 196, 168, 0.15) 90%, transparent 100%);
}

.tpl-who-we-are .who-hero {
  height: 70vh;
  position: relative;
  border-bottom-left-radius: 100% 25%;
  border-bottom-right-radius: 100% 25%;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.50);
  overflow: hidden;
}

.tpl-who-we-are .who-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(71, 40, 7, 0.54), rgba(0, 0, 0, 0.15));
  border-bottom-left-radius: 100% 25%;
  border-bottom-right-radius: 100% 25%;
}

.tpl-who-we-are .who-hero-content {
  max-width: 600px;
  margin-bottom: 80px;
  margin-left: 80px;
}

.tpl-who-we-are .who-hero-title {
  font-family: 'Playfair Display', serif;
  text-shadow: 2px 3px 14px rgba(29, 26, 26, 0.74);
  line-height: 1.2;
  color: #ffffff;
}

.tpl-who-we-are .who-container {
  max-width: 100%;
  width: 100%;
  padding: 0 80px;        /* Más padding para acercar elementos */
}

.tpl-who-we-are .who-centered-ornament {
  position: relative;
}

.tpl-who-we-are .who-ornament-line {
  position: absolute;
  top: 50%;
  height: 1px;
  width: 45%;
  background-color: #3d2817;
  z-index: 0;
}

.tpl-who-we-are .who-ornament-line:first-child {
  left: 0;
}

.tpl-who-we-are .who-ornament-line:last-child {
  right: 0;
}

.tpl-who-we-are .who-ornament-star {
  width: 100px;
  height: auto;
  z-index: 1;
  position: relative;
}

.tpl-who-we-are .who-row-relative {
  position: relative;
}


.tpl-who-we-are .who-inline-star {
  width: 30px;
  height: auto;
  vertical-align: baseline;   /* Alinea con la línea base del texto */
  margin-right: 8px;          /* Espacio entre estrella y texto */
  display: inline-block;
  position: relative;
  top: -2px;                  /* Ajuste fino de alineación */
}


.tpl-who-we-are .who-photo-frame-size {
  width: 90%;
  max-width: 400px;      /* Ancho máximo de foto */
  aspect-ratio: 4 / 5;   /* Proporciones consistentes */
}

.tpl-who-we-are .who-photo-image-fixed {
  width: 100%;
  height: 100%;          /* Se adapta al contenedor */
}

.tpl-who-we-are .who-shifted-image-column {
  position: relative;
  top: 20px;
}

@media (min-width: 769px) and (max-width: 1024px) {
  .tpl-act .hero-section,
  .tpl-act-detail .hero-section,
  .tpl-home .home-hero,
  .tpl-who-we-are .who-hero {
    height: 50vh;
    border-bottom-left-radius: 100% 20%;
    border-bottom-right-radius: 100% 20%;
  }

  .tpl-home .home-hero-content,
  .tpl-who-we-are .who-hero-content {
    margin-bottom: 50px;
    margin-left: 60px;
    padding: 0 20px;
  }

  .tpl-home .hero-buttons {
    gap: 1rem !important;
  }

  .tpl-home .carousel-3d-container {
    height: 300px;
  }

  .tpl-home .carousel-3d-item {
    width: 250px;
    height: 210px;
    margin-left: -125px;
    margin-top: -105px;
  }

  .tpl-home .carousel-nav {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  .tpl-home .home-block-section {
    margin: 0 20px;
  }

  .tpl-who-we-are .photo-frame {
    transform: rotate(-2deg);
    margin: 15px 0;
    width: 85% !important;
    max-width: 350px !important;
  }

  .tpl-who-we-are .photo-frame:nth-child(even) {
    transform: rotate(1.5deg);
  }

  .tpl-who-we-are .photo-frame img {
    height: 250px !important;
  }

  .tpl-who-we-are .parchment-text {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .tpl-who-we-are .gradient-brush {
    width: 400px;
    height: 250px;
    opacity: 0.5;
  }

  .tpl-who-we-are .who-gradient-right { left: 100px !important; }
  .tpl-who-we-are .who-gradient-left { left: 380px !important; }

  .tpl-act .act-card-container,
  .tpl-act-detail .editions-container,
  .tpl-gallery .gallery-container {
    padding: 0 20px 60px;
  }

  .tpl-act .act-card-container,
  .tpl-act-detail .editions-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .tpl-act .hero-section,
  .tpl-home .home-hero,
  .tpl-who-we-are .who-hero {
    height: 30vh;
    border-bottom-left-radius: 100% 15%;
    border-bottom-right-radius: 100% 15%;
  }

  .tpl-act-detail .hero-section {
    height: 40vh;
    border-bottom-left-radius: 100% 15%;
    border-bottom-right-radius: 100% 15%;
  }

  .tpl-home .home-hero-content,
  .tpl-who-we-are .who-hero-content {
    margin-bottom: 20px;
    margin-left: 60px;
    padding: 0 15px;
  }

  .tpl-home .hero-buttons {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }

  .tpl-home .hero-section .btn {
    padding: 0.5rem 1.5rem !important;
    font-size: 0.85rem !important;
    width: 100%;
  }

  .tpl-home .carousel-3d-container {
    height: 250px;
  }

  .tpl-home .carousel-3d-item {
    width: 220px;
    height: 190px;
    margin-left: -110px;
    margin-top: -95px;
  }

  .tpl-home .carousel-nav {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .tpl-home .home-block-section {
    margin: 0 15px;
  }

  .tpl-who-we-are .photo-frame {
    transform: rotate(0deg);
    margin: 20px 0;
  }

  .tpl-who-we-are .parchment-text {
    font-size: 0.95rem;
    text-align: left;
  }

  .tpl-who-we-are .gradient-brush {
    display: none;
  }

  .tpl-act .act-card-container,
  .tpl-act-detail .editions-container,
  .tpl-gallery .gallery-container {
    padding: 0 15px 40px;
  }

  .tpl-act .act-card-container,
  .tpl-act-detail .editions-container,
  .tpl-gallery .gallery-grid {
    grid-template-columns: 1fr;
  }
}