* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #800808;
  --secondary-color: #C50D0D;
  --accent-color: #f39c12;
  --danger-color: #e74c3c;
  --success-color: #27ae60;
  --bg-color: #f5f7fa;
  --text-color: #2c3e50;
  --border-color: #dce1e8;
  --white: #ffffff;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --nav-bg: #800000;
  --nav-text: #ffffff;
  --nav-hover: #f0f0f0;
  --nav-height: 70px;
  --footer-bg-color: #1a1a1a;
  --footer-text-main: #ffffff;
  --footer-text-muted: #bdc3c7;
  --footer-accent-line: #800000;
  --footer-border-inner: #333333;
  --footer-font-small: 15px;
  --footer-font-tiny: 13px;
  --hero-overlay-color: rgba(0, 0, 0, 0.6);
  --hero-accent: #800000;
  --hero-text: #ffffff;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

.navbar {
  background-color: var(--nav-bg);
  height: var(--nav-height);
  width: 100%;
  position: sticky; 
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

/* --- Tu código actualizado --- */

.logo {
    color: var(--nav-text);
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    
    /* 1. Agregamos esto para alinear el logo y el texto */
    display: flex;
    align-items: center;
    gap: 32px; /* Espacio entre el logo y las letras */
}

/* 2. Agregamos este bloque nuevo para el círculo del logo */
.logo::before {
    content: "";
    display: inline-block;
    width: 64px;  /* Tamaño sugerido para que se vea claro */
    height: 64px;
    
    /* IMPORTANTE: Cambia 'logo.png' por el nombre real de tu archivo de imagen */
    background-image: url('https://res.cloudinary.com/dc3tsnxkk/image/upload/v1777399982/logoIMP_r57u7v.png'); 
    
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%; /* Esto asegura que la imagen se vea circular */
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: var(--nav-text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links li a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn-turnos {
  background-color: transparent;
  color: white;
  padding: 8px 18px;
  border: 1.5px solid white;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  transition: all 0.3s ease;
}

.btn-turnos:hover {
  background-color: white;
  color: var(--nav-bg);
}

.btn-login,
.btn-logout {
  background-color: white;
  color: var(--nav-bg);
  padding: 8px 18px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-login:hover,
.btn-logout:hover {
  background-color: #f2f2f2;
  transform: scale(1.05);
}

.main-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.hero {
  text-align: center;
  padding: 3rem 0;
}

.hero h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.layout-columnas {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.columna-izquierda {
  flex: 2;
}

.columna-derecha {
  flex: 1;
  position: sticky;
  top: 20px;
}

.calendar-section {
  background-color: var(--white);
  padding: 1.2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.calendar-section h3 {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 1rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.calendar-day {
  min-height: 45px;
  padding: 2px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  flex-direction: column;
}

.calendar-legend {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 0.7rem;
}

.legend-color {
  width: 12px;
  height: 12px;
}

.legend-color.birthday {
  background-color: #ff6b9d;
}

.legend-color.anniversary {
  background-color: #9b59b6;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.btn-nav {
  background-color: var(--secondary-color);
  color: var(--white);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2rem;
}

.calendar-day.has-birthday {
  border: 2px solid #ff6b9d;
}

.calendar-day.has-anniversary {
  border: 2px solid #9b59b6;
}

.calendar-day.has-both {
  border: 2px solid #e67e22;
}

.event-marker {
  font-size: 0.7rem;
  margin-top: 2px;
}

.calendar-day:hover {
  background-color: #f0f7ff;
  transform: scale(1.02);
  transition: all 0.2s ease;
}

.calendar-day.today {
  background-color: var(--accent-color);
  color: var(--white);
  font-weight: bold;
}

@media (max-width: 1024px) {
  .layout-columnas {
    flex-direction: column;
  }
  .columna-derecha {
    width: 100%;
    position: static;
  }
}

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
}

.login-box {
  background-color: var(--white);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 400px;
}

.login-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
}

.tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: none;
  cursor: pointer;
  font-weight: bold;
  color: #666;
  transition: all 0.3s;
}

.tab-btn.active {
  color: #800000;
  border-bottom: 3px solid #800000;
}

.login-box h2 {
  text-align: center;
  color: var(--primary-color);
  margin-top: 10px;
  margin-bottom: 2rem;
  font-size: 1.2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
}

.btn-primary {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
}

.btn-secondary {
  padding: 0.75rem 1.5rem;
  background-color: #95a5a6;
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-success {
  padding: 0.75rem 1.5rem;
  background-color: var(--success-color);
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
}

.btn-success:hover {
  background-color: #229954;
}

.btn-secondary:hover {
  background-color: #7f8c8d;
}

.hint {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #7f8c8d;
}

.error-message,
.message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 4px;
  text-align: center;
}

.error-message {
  background-color: #fdecea;
  color: var(--danger-color);
}

.message.success {
  background-color: #d4edda;
  color: var(--success-color);
}

.message.error {
  background-color: #fdecea;
  color: var(--danger-color);
}

.dashboard-layout {
  display: flex;
  min-height: calc(100vh - 80px);
}

.sidebar {
  width: 250px;
  background-color: var(--white);
  box-shadow: var(--shadow);
}

.sidebar-nav {
  padding: 1rem 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s;
}

.nav-link:hover {
  background-color: var(--bg-color);
  border-left: 4px solid var(--primary-color);
}

.nav-link.active {
  background-color: var(--primary-color);
  color: var(--white);
  border-left: 4px solid var(--accent-color);
}

.dashboard-content {
  flex: 1;
  padding: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: var(--primary-color);
}

.form-persona {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
  border-bottom: none;
}

.form-section h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.photo-preview {
  margin-top: 1rem;
  text-align: center;
}

.photo-preview img {
  max-width: 200px;
  max-height: 200px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.search-box {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.search-box input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.personas-list,
.personas-grid {
  display: grid;
  gap: 1rem;
}

.persona-item {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.persona-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.persona-item img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.personas-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.personas-grid .persona-item {
  flex-direction: column;
  text-align: center;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(6px);
}

.modal-content {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.persona-fullscreen {
    background-color: #fff;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: center;
}

.btn-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--danger-color);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
}

.persona-detalle {
  text-align: center;
}

.persona-detalle img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.persona-info {
  text-align: left;
  margin-top: 2rem;
}

.info-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.info-label {
  font-weight: 600;
  color: var(--primary-color);
}

.grid-editar-hermanos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  padding: 20px 0;
}

.persona-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.persona-card:hover {
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border-color: #8b0000;
}

.card-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid #f0f0f0;
}

.card-icon-placeholder {
  font-size: 50px;
  background: #f5f5f5;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  color: #999;
}

.btn-editar-card {
  background-color: #8b0000;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  width: 100%;
  margin-top: 15px;
  transition: background 0.2s;
}

.btn-editar-card:hover {
  background-color: #a00000;
}

.rut-text {
  color: #666;
  font-size: 0.9em;
  margin: 5px 0;
}

.turnos-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.turnos-container {
  display: grid;
  gap: 1rem;
}

.turno-item {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 100px 1fr 200px;
  align-items: center;
  gap: 1.5rem;
}

.turno-semana {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
}

.turno-info h4 {
  margin-bottom: 0.5rem;
}

.turno-fechas {
  text-align: right;
  color: #7f8c8d;
}


.fa-facebook, .fa-facebook-f { color: #1877F2; }
.fa-youtube { color: #FF0000; }
.fa-instagram { color: #E4405F; }
.fa-spotify { color: #1DB954; }
.fa-google-drive { color: #4285F4; }
.social-channels {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-top: 2rem;
}

.social-channels h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.channel-card {
  background-color: var(--bg-color);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
}

.channel-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.channel-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.channel-name {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
@media (max-width: 768px) {
    /* Agrega espacio después de la cuadrícula de redes sociales */
    .social-channels-grid, 
    .redes-sociales-container { /* Usa el nombre de clase que tengas para el contenedor de iconos */
        margin-bottom: 40px !important; 
    }

    /* O agrega espacio antes del calendario */
    .calendar-section,
    #calendario-actividades { 
        margin-top: 40px !important;
        padding-top: 20px;
    }
}



.news-section {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-top: 2rem;
}

.news-section h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  box-sizing: border-box;
}

.news-card {
  background-color: var(--bg-color);
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

/* Esto asegura que las columnas se apilen correctamente */
@media (max-width: 768px) {
    .layout-columnas {
        display: block; /* Elimina el flex lateral */
        padding: 10px;  /* Espacio mínimo para que no toque los bordes del celular */
    }

    .columna-izquierda, .columna-derecha {
        width: 100%;    /* Ocupan todo el ancho disponible */
        margin: 0;
        padding: 0;
    }

    /* Ajuste para que la sección de noticias no tenga márgenes excesivos */
    .news-section {
        padding: 15px;
        margin-bottom: 20px;
    }
}


.news-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-content {
  padding: 1.5rem;
}

.news-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.news-date {
  font-size: 0.85rem;
  color: #7f8c8d;
  margin-bottom: 0.75rem;
}

.news-excerpt {
  color: var(--text-color);
  font-size: 1rem;
    color: #666;
    line-height: 1.6;
    /* TRUCO PARA CORTAR EL TEXTO: */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
  .dashboard-layout {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .turno-item {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .turno-fechas {
    text-align: center;
  }
}

.contenedor-anuncio-principal {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.tarjeta-carrusel {
  position: relative;
  width: 95%; 
  max-width: 900px;
  height: 302px;
  margin: 0 auto;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  background-color: #f0f0f0;
}

.carrusel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carrusel-slide {
  min-width: 100%;
  height: 100%;
}

.carrusel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carrusel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.4);
  color: #333;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s ease;
  z-index: 10;
}

.carrusel-btn:hover {
  background: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.carrusel-btn.prev { left: 20px; }
.carrusel-btn.next { right: 20px; }

.carrusel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: #ffffff;
  width: 25px;
  border-radius: 5px;
}


/* --- AJUSTE PARA CELULARES --- */
@media (max-width: 768px) {
/* Reglas de seguridad para evitar desbordes laterales */
    html, body {
        max-width: 100%;
        overflow-x: hidden; /* Prohíbe el scroll horizontal */
        margin: 0;
        padding: 0;
        position: relative; /* Ayuda a contener elementos absolutos */
    }
    .main-header {
        height: 40vh; /* En celular lo hacemos más bajito para que no ocupe todo */
    }

    /* Si el carrusel tiene texto encima, ajustamos el tamaño aquí */
    .ite-overlay-content h2 {
        font-size: 1.5rem;
        padding: 0 15px;
    }

    /* Ocultar las flechas en celular si estorban (opcional) */
    .carrusel-nav-hero {
        display: none; 
    }
}


.main-footer {
  background-color: var(--footer-bg-color);
  color: var(--footer-text-main);
  padding: 50px 20px 25px 20px;
  margin-top: 60px;
  border-top: 5px solid var(--footer-accent-line);
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.footer-container {
  max-width: 1100px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 auto;
  display: flex;
  gap: 30px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
}

.footer-map-container {
  display: flex;
  flex: 1;
  justify-content: flex-end;
  min-width: 300px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 10px 0;
  letter-spacing: 0.5px;
  color: var(--footer-text-main);
  text-transform: uppercase;
}

.footer-address {
  font-size: var(--footer-font-small);
  line-height: 1.6;
  color: var(--footer-text-muted);
  margin: 0;
  font-style: normal;
}

.footer-contact {
  font-size: var(--footer-font-small);
  color: var(--footer-text-muted);
  margin-top: 5px;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid var(--footer-border-inner);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  font-size: var(--footer-font-tiny);
  color: #7f8c8d;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .main-footer {
    padding: 40px 15px 20px 15px;
    text-align: center;
  }
  .footer-info {
    align-items: center;
  }
  .footer-address {
    font-size: 12px;
  }
}

.main-header {
  position: relative;
  height: 80vh; 
  min-height: 400px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hero-text);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--hero-overlay-color);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  padding: 0 20px;
  z-index: 1;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-divider {
  width: 80px;
  height: 4px;
  background-color: var(--hero-accent);
  margin: 15px auto;
  border-radius: 2px;
}

.hero-phrase {
  font-size: 1.2rem;
  font-style: italic;
  opacity: 0.9;
  margin-bottom: 30px;
}

.btn-hero {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--hero-accent);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: transform 0.3s ease, background 0.3s ease;
}

.btn-hero:hover {
  background-color: #FFD700;
  transform: translateY(-3px);
}

.hero-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}


.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover !important; /* ESTO ES CLAVE: Ajusta la imagen al área sin deformarla */
    object-position: center; /* Centra la parte importante de la foto */
}

@media (max-width: 768px) {
  .hero-title { font-size: 1.8rem; }
  .main-header { height: 50vh; }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

@media (max-width: 992px) {
  .nav-links {
    display: none;
  }
  .btn-turnos {
    font-size: 12px;
    padding: 6px 12px;
  }
  .btn-login, .btn-logout {
    font-size: 12px;
    padding: 6px 12px;
  }
}





/* --- ESTILOS PARA GESTIÓN DE TURNOS --- */

/* Contenedor principal del panel blanco */
.admin-controls {
    border-left: 5px solid #800000; /* Color institucional */
}

/* Lista de archivos actuales para borrar */
.lista-gestion {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.item-gestion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 6px;
    transition: background 0.3s;
}

.item-gestion:hover {
    background: #f1f1f1;
}

.item-gestion span {
    font-weight: 500;
    color: #333;
    font-size: 0.9em;
}

/* Botón de eliminar (Basura) */
.btn-eliminar {
    background: #ff4d4d;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.3s;
}

.btn-eliminar:hover {
    background: #cc0000;
}

/* Estilo para las imágenes en la vista pública */
.grid-publico img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    border: 1px solid #ddd;
    display: block;
}

/* Mensaje de carga y estados vacíos */
.loading {
    color: #666;
    font-style: italic;
    font-size: 0.9em;
    padding: 10px;
    border-left: 3px solid #ccc;
    background: #fdfdfd;
}



.pancito-web-section {
    padding: 30px; /* probar con 60px 20px */
    background-color: #f5f7fa; /* Fondo */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    
}

.pancito-titulo-seccion {
    text-align: center;
    color: #800000;
    font-size: 2.2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 10px;
    position: relative;
    text-transform: uppercase;
}

.pancito-titulo-seccion::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #800000;
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

.pancito-flex-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border: 2px solid #800000; /* Borde grueso negro del dibujo */
    border-radius: 25px;    /* Bordes muy redondeados */
    padding: 40px 60px;
    max-width: 2000px;
    gap: 40px;
    margin: 0 auto;
    overflow: hidden;
}

.pancito-texto-box {
    flex: 5;
    padding-right: 20px;
    text-align: left;
}

.pancito-imagen-box {
    flex: 0.8;
    display: flex;
    justify-content: center;
}

#render-img-pancito {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 2px solid #000; /* Marco de la imagen en el dibujo */
}

/* Ajustes para pantallas pequeñas (Tablet/Móvil) */
@media (max-width: 992px) {
    .pancito-flex-container {
        flex-direction: column;
        padding: 30px;
        text-align: center;
    }
    
    .pancito-texto-box {
        padding-right: 0;
        text-align: center;
        margin-bottom: 30px;
    }
    
    #render-img-pancito {
        width: 250px;
        height: 250px;
    }
}








/* VARIABLES ÚNICAS */
:root {
    --ite-transition-slide: all 1s ease-in-out;
}

/* 1. SECCIÓN PRINCIPAL DEL HERO PARA CARRUSEEEEEEL*/
.ite-hero-full-bg {
    position: relative;
    width: 100%;
    height: 100vh; /* Ocupa todo el alto de la pantalla */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

/* 2. CAPA DE OSCURECIMIENTO (Importante para legibilidad) 
.ite-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); Capa negra al 40% de opacidad
    z-index: 5;
}*/

/* 3. ESTILOS DEL TEXTO (Asegurando que sea blanco) */
.ite-welcome-text {
    color: white;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.ite-versiculo-text {
    color: #f0f0f0;
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 30px;
}

.ite-btn-ver-noticias {
    background-color: #800000;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

/* 4. CONTENEDOR DE IMÁGENES, LO QUE SE MUEVE (Detrás) */
.ite-carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: var(--ite-transition-slide);
    z-index: 0;
}

/* 5. IMÁGENES INDIVIDUALES (Ajustadas) */
.ite-carousel-item {
    min-width: 100%;
    height: 100%;
    object-fit: cover; /* Clave: La imagen se ajusta sin cortarse extrañamente */
    display: block;
}







/* --- VARIABLES ÚNICAS PARA EL MODAL DE NOTICIAS --- */
:root {
    --ite-news-modal-bg: rgba(0, 0, 0, 0.85);
    --ite-news-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --ite-news-accent: #800000; /* Color guinda de tu navbar */
    --ite-news-white: #ffffff;
}

/* --- CONTENEDOR PRINCIPAL (MODAL) --- */
.ite-news-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--ite-news-modal-bg);
    display: none; /* Se activa con JS: display: flex */
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Por encima de todo */
    backdrop-filter: blur(5px); /* Efecto de desenfoque al fondo */
    padding: 20px;
}

/* --- CAJA DE CONTENIDO --- */
.ite-news-modal-container {
    background-color: var(--ite-news-white);
    width: 100%;
    margin: auto;
    max-width: 400px;
    max-height: 85vh;
    border-radius: 15px;
    position: relative;
    overflow-y: auto;
    animation: iteNewsFadeIn 0.3s ease-out;
    box-shadow: var(--ite-news-card-shadow);
}

@keyframes iteNewsFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- BOTÓN CERRAR --- */
.ite-news-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 35px;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: color 0.2s;
}

.ite-news-modal-close:hover {
    color: var(--ite-news-accent);
}

/* --- ESTRUCTURA INTERNA DE LA NOTICIA --- */
.ite-news-modal-body {
    padding: 0; /* La imagen irá al ras arriba */
}

.ite-news-modal-img {
    width: 100%;
    height: auto;
    max-height: 600px;
    /*object-fit: cover;*/
    object-fit: contain; /* Ajusta la imagen sin recortarla, mostrando barras si es necesario */
    border-bottom: 5px solid var(--ite-news-accent);
}

.ite-news-modal-info {
    padding: 30px;
}

.ite-news-modal-title {
    font-size: 2rem;
    color: #222;
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 1.2;
}

.ite-news-modal-date {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ite-news-modal-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
    white-space: pre-line; /* Respeta los saltos de línea de la BDD */
}

/* --- RESPONSIVO PARA MÓVILES --- */
@media (max-width: 768px) {
    .ite-news-modal-container {
        width: 95%;
        margin: 10px auto;
        max-height: 90vh;
    }
    
    .ite-news-modal-img {
        height: 180px;
        width: 100%;
        border-radius: 8px;
    }
    
    .ite-news-modal-title {
        font-size: 1.5rem;
        margin-top: 5px;
        text-align: center;
    }

    .ite-news-modal-body {
        flex-direction: column;
        height: 100%;
    }
    .ite-news-modal-info {
        padding: 20px;
        text-align: left;
    }
    .news-grid {
        grid-template-columns: 1fr; /* Una noticia por fila en celular */
        padding: 5px; 
    }

    .news-card {
        margin-bottom: 15px;
    }

    .news-image {
        height: 180px; /* Imagen un poco más baja para ahorrar espacio */
    }
}



/* Contenedor de puntos dentro de la celda */
.dots-container {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-top: 3px;
    flex-wrap: wrap;
}

/* Estilo de cada bolita */
.event-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #888; /* Color por defecto */
}

/* Colores dinámicos basados en la categoría */
.dot-general { background-color: #800000; }    /* Azul */
.dot-actividad-especial { background-color: #e67e22; } /* Naranja */
.dot-aniversario { background-color: #f1c40f; } /* Amarillo/Dorado */
.dot-otro { background-color: #95a5a6; }        /* Gris */

/* --- VARIABLES ÚNICAS PARA EL CALENDARIO PÚBLICO --- */
:root {
    --itp-main-color: #b11313;      /* Guinda institucional */
    --itp-bg-light: #f9f9f9;
    --itp-dot-general: #800000;    /* Azul */
    --itp-dot-anniversary: #f1c40f; /* Amarillo */
    --itp-dot-special: #e67e22;    /* Naranja */
    --itp-border-radius: 4px;
}

/* --- ESTRUCTURA DEL GRID --- */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr); /* 7 columnas para los días */
    gap: 5px;
    padding: 10px;
}

/* Cabecera de días (Lun, Mar, Mié...) */
.itp-day-header {
    font-weight: bold;
    text-align: center;
    font-size: 0.85rem;
    color: var(--itp-main-color);
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.itp-today {
    background-color: #ffb300;
    color: white;
    font-weight: bold;
}

/* Celdas de los días */
.itp-calendar-day {
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    border-radius: var(--itp-border-radius);
    cursor: default;
    transition: background 0.2s;
    font-size: 0.9rem;
    position: relative;
}

/* Día con evento */
.itp-calendar-day.itp-has-event {
    cursor: pointer;
    background-color: #fffbfb;
}

.itp-calendar-day.itp-has-event:hover {
    background-color: #f0f0f0;
}

/* --- INDICADORES (DOTS) --- */
.itp-dots-container {
    display: flex;
    gap: 2px;
    margin-top: 4px;
}

.itp-event-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

/* Colores únicos por categoría */
.itp-dot-general { background-color: var(--itp-dot-general); }
.itp-dot-aniversario { background-color: var(--itp-dot-anniversary); }
.itp-dot-actividad-especial { background-color: var(--itp-dot-special); }

/* --- ESTILOS PARA EL MODAL DE DETALLES --- */
.itp-modal-event-item {
    padding: 12px;
    margin-bottom: 10px;
    background: var(--itp-bg-light);
    border-left: 5px solid var(--itp-main-color);
    border-radius: 0 var(--itp-border-radius) var(--itp-border-radius) 0;
}

.itp-modal-event-item strong {
    display: block;
    color: #333;
    margin-top: 5px;
}

.itp-category-badge {
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 10px;
    color: white;
    text-transform: uppercase;
    font-weight: bold;
}

/* Contenedor principal de detalles */
.itp-details-area {
    margin-top: 20px;
    display: none; /* Se activa al hacer clic */
    animation: fadeIn 0.3s ease-in-out;
}

.itp-details-card {
    background: #ffffff;
    border-radius: 15px;
    border-left: 5px solid #800000; /* Color azul como en la imagen 6b5e84 */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 20px;
}

.itp-details-header {
    color: #2c3e50;
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 15px;
    text-align: center;
}

.itp-detail-row {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.itp-detail-row:last-child {
    border-bottom: none;
}

.itp-event-title {
    margin: 0;
    font-weight: 800;
    color: #333;
    font-size: 0.95em;
}

.itp-event-category {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.85em;
}

/* Efecto visual al seleccionar un día */
.itp-calendar-day.itp-selected {
    background-color: #FCF3CF !important; /* Naranja como en la imagen 6b5e84 */

}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}




.itp-dropdown-content {
    display: none; /* Oculto por defecto */
    position: absolute;
    background-color: #800000;
    min-width: 220px;
    box-shadow: 0 0 8px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    border-top: 3px solid #800000;
    list-style: none !important;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

/* Esta clase la activaremos con JavaScript */
.itp-dropdown-content.itp-show {
    display: block;
    animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}








.itp-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}


/* Estilos Pastores */
.pastor-card {
    display: flex;
    gap: 40px;
    align-items: center;
    background: #fff;
    padding: 30px;
    border-radius: 12px;;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}


/* Estilos Administración (Grid) */
.cuerpos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 320px));
    gap: 2rem;
    padding: 2rem 0;
    justify-content: center;
}

.cuerpo-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.cuerpo-item:hover {
    transform: translateY(-5px);
}

.cuerpo-img {
    width: 100%;
    height: 350px;
    object-fit: contain;
    padding: 10px;
}

.cuerpo-content {
    padding: 1rem;
    text-align: center;
    align-items: center;
}

/* --- ESTILOS ÚNICOS PARA EL MODAL DE ADMINISTRACIÓN --- */

/* Contenedor principal del fondo */
#modaladmin-container {
    display: none; 
    position: fixed; 
    z-index: 9999; /* Asegura que esté por encima de todo */
    padding-top: 60px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.9); /* Fondo negro con opacidad */
}

/* La imagen que se amplía */
.modaladmin-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

/* Animación de entrada (Zoom) */
.modaladmin-content, #modaladmin-caption {  
    animation-name: modaladminZoom;
    animation-duration: 0.4s;
}

@keyframes modaladminZoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

/* Texto debajo de la imagen (Nombre del cargo) */
#modaladmin-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 15px 0;
    font-size: 1.2rem;
    font-family: sans-serif;
}

/* Botón de cerrar (X) */
.modaladmin-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    line-height: 1;
}

.modaladmin-close:hover,
.modaladmin-close:focus {
    color: #bbb;
    text-decoration: none;
    transform: scale(1.1);
}

/* Estilo para el cursor en las imágenes de la grilla */
.clickable-admin-img {
    cursor: zoom-in;
    transition: transform 0.2s;
}

.clickable-admin-img:hover {
    transform: scale(1.02);
}




/* Contenedor flexible para alinear imágenes y texto */
.pastor-flex-container {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    align-items: flex-start;
}

/* Galería de 1 o 2 fotos */
.pastor-gallery {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.img-pastor {
    width: 100%;
    max-width: 650px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.img-pastor:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

/* Área de texto */
.pastor-description {
    flex: 1.5;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    line-height: 1.8;
    font-size: 1.2rem;
}

/* Ajuste para celulares */
@media (max-width: 768px) {
    .pastor-flex-container {
        flex-direction: column;
    }
    .img-pastor {
        max-width: 100%;
    }
}




/* Contenedor principal de la sección de eventos */
.eventos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    align-items: center;
}

/* Ajuste de las tarjetas de evento */
.evento-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    flex-direction: column;
    box-sizing: border-box;
}

/* --- SOLUCIÓN AL TAMAÑO DE IMAGEN --- */
.evento-imagen {
    width: 100%;
    height: 250px; /* Altura fija para mantener uniformidad */
    object-fit: cover; /* Recorta la imagen para llenar el espacio sin deformarse */
    display: block;
}

/* Ajuste de la información del evento */
.evento-info {
    padding: 15px;
    text-align: center;
}

.evento-info h3 {
    margin: 10px 0;
    font-size: 1.2rem;
    color: #333;
}

@media (max-width: 768px) {
    /* 1. Ajuste del contenedor principal de eventos */
    .eventos-container {
        width: 100% !important;
        padding: 10px !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important; /* Centra las tarjetas horizontalmente */
        box-sizing: border-box !important;
    }

    /* 2. Ajuste de la tarjeta de evento */
    .event-card {
        width: 100% !important;    /* Ocupa el ancho disponible */
        max-width: 360px;          /* Evita que se vea gigante en pantallas medianas */
        margin: 0 auto 20px auto !important; /* Centrado horizontal y separación abajo */
        display: flex !important;
        flex-direction: column !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Corta cualquier imagen que quiera salirse */
    }

    /* 3. Ajustes de texto y botones que pediste */
    .event-card h4 {
        font-size: 1.2rem;
        margin: 10px 0;
        text-align: center; /* Asegura que el título esté centrado */
    }

    .event-card p {
        font-size: 0.9rem;
        margin-bottom: 5px;
        text-align: center;
    }

    /* Botón "Ver Detalles" centrado */
    .event-card .btn-detalles {
        display: block;      /* Cambiado a block para facilitar el centrado */
        width: fit-content;  /* Se ajusta al texto del botón */
        margin: 10px auto;   /* Centrado automático */
        padding: 8px 20px;
    }
}




/* Contenedor principal para dar aire a la página */
.administracion-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* --- ESTILO UNIFICADO PARA ENCABEZADOS --- */

/* 1. Unificamos el contenedor de ambas páginas */
.itp-section-header, 
.administracion-section-header {
    text-align: center;
    margin: 40px auto 10px auto; /* Margen superior e inferior igual para ambos */
    width: 100%;
    max-width: 1000px; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 2. Unificamos el texto H1 */
.itp-section-header h1, 
.administracion-section-header h1 {
    font-size: clamp(2rem, 5vw, 3rem); /* Tamaño idéntico */
    color: #2c3e50;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 10px 0; /* Quitamos márgenes extra que puedan variar */
    line-height: 1.2;
}

/* 3. Unificamos la línea decorativa (Underline) */
.itp-underline, 
.administracion-underline {
    width: clamp(100px, 50vw, 600px);
    height: 4px;
    background-color: #800000; /* Color institucional guinda */
    border-radius: 2px;
    margin: 0 auto 15px auto; /* Margen inferior igual para ambos */
}

/* Descripción / Subtítulo */
.administracion-subtitle {
    font-size: 1.2rem;
    color: #555;
    max-width: 700px; /* Evita que el texto sea muy largo horizontalmente */
    margin: 0 auto;   /* Centra el bloque de texto */
    line-height: 1.6;
}

/* Ajuste para la Grid de Cuerpos para que se vea simétrica */
.cuerpos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-items: center; /* Asegura que las tarjetas estén centradas en su celda */
}





/* --- 1. CONFIGURACIÓN GENERAL (ESCRITORIO) --- */
.menu-check, 
.hamburger, 
.nav-mobile-buttons {
    display: none; /* Todo esto se oculta en PC */
}

/* Estilo para los botones de escritorio (ya los tienes, pero asegura la clase) */
.nav-buttons.desk-only {
    display: flex;
    gap: 15px;
}

/* --- 2. RESPONSIVE (MÓVIL Y TABLET) --- */
@media (max-width: 1024px) {
    
    /* Ocultamos los botones que están fuera del <ul> */
    .nav-buttons.desk-only {
        display: none !important;
    }

    /* Mostramos la hamburguesa y el icono */
    .hamburger {
        display: block !important;
        color: white;
        font-size: 28px;
        cursor: pointer;
        order: 2; /* Lo posiciona a la derecha del logo */
    }

    /* Panel desplegable (ul) */
    .nav-links {
        display: none; /* Se esconde hasta que se haga clic */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Aparece justo bajo la franja roja */
        left: 0;
        width: 100%;
        background-color: #800000;
        padding: 5px 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.3);
        z-index: 1000;
    }

    /* Mostrar menú al activar el checkbox */
    .menu-check:checked ~ .nav-links {
        display: flex;
    }

    /* Ajuste de los items de la lista */
    .nav-links li {
        width: 100%;
        text-align: center;
        margin: 0.5px 0;
    }

    /* AQUÍ AGRANDAMOS LA LETRA Y SEPARAMOS DEL BORDE */
    .nav-links li a {
        display: flex;
        align-items: center;
        padding: 5px 30px; /* 30px de separación del borde izquierdo */
        font-size: 1.1rem;   /* Letra más grande y legible */
        color: white;
        text-decoration: none;
        transition: background 0.3s;
    }

    /* SECCIÓN DE BOTONES DENTRO DEL MENÚ */
    .nav-mobile-buttons {
        display: flex; /* Se activa solo en móvil */
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 15px;
        padding-top: 20px;
        border-top: 2px solid rgba(90, 4, 4, 0.2); /* Línea divisoria sutil */
    }

    /* Estilo de botones móviles para que sean fáciles de tocar */
    .nav-mobile-buttons .btn-turnos,
    .nav-mobile-buttons .btn-login {
        width: 80%;
        padding: 12px;
        border-radius: 6px;
        text-decoration: none;
        font-weight: bold;
        text-align: center !important;
    }

    .nav-mobile-buttons .btn-turnos {
        border: 2px solid white;
        background-color: #800000;
        color: white;
    }

    .nav-mobile-buttons .btn-login,
    .nav-mobile-buttons .btn-login:hover {
        background-color: white;
        color: #800000;
    }
}


.itp-dropdown-content.show {
    display: block !important;
    opacity: 1;
    visibility: visible;
}



/* Contenedor principal del fondo del modal */
.modal-admin-container {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 9999; /* Por encima de todo */
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9); /* Fondo negro semi-transparente */
}

/* Imagen dentro del modal */
.modal-content-pastor {
    margin: auto;
    display: block;
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 10px;
    object-fit: contain;
    animation: zoom 0.3s; /* Efecto de entrada */
}

/* Botón de cerrar (X) */
.close-modal-pastor {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

@keyframes zoom {
    from {transform: scale(0)} 
    to {transform: scale(1)}
}










/* Estilo de la Tarjeta */
.devocional-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-top: 4px solid #800000; /* Color tinto de la iglesia */
    margin-bottom: 40px;
}

/* Control de altura para el texto largo */
#pancito-limite-texto {
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease;
}

.texto-colapsado {
    max-height: 140px; /* Altura inicial en celus */
}

/* El degradado que avisa que hay más texto */
.texto-colapsado::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(transparent, white);
}

.texto-expandido {
    max-height: 2000px; /* Altura suficiente para cualquier texto */
}

/* Botón Seguir Leyendo */
.btn-leer-mas {
    display: inline-block;
    background-color: rgba(128, 0, 0, 0.05);
    border: none;
    color: #800000;
    border: 1px solid rgba(128, 0, 0, 0.2);
    border-radius: 50px; /* Estilo píldora */
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 15px 0;
    text-decoration: none;
    outline: none;
}

.btn-leer-mas:hover {
    background-color: #800000;
    color: white;
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.2);
    transform: translateY(-2px);
}