/* ==========================================================================
   Corporate Events Directory - Frontend Styles (v1.1.1)
   ========================================================================== */

:root {
  --ced-primary: #0f172a;       /* Azul oscuro corporativo */
  --ced-accent: #2563eb;        /* Azul vibrante para enlaces/botones */
  --ced-accent-hover: #1d4ed8;
  --ced-bg-card: #ffffff;
  --ced-bg-subtle: #f8fafc;
  --ced-border: #e2e8f0;
  --ced-text-main: #1e293b;
  --ced-text-muted: #64748b;
  --ced-radius: 12px;
  --ced-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

/* Contenedores de Sección */
.ced-single-section {
  background: var(--ced-bg-card);
  border: 1px solid var(--ced-border);
  border-radius: var(--ced-radius);
  padding: 28px;
  margin: 28px 0;
  box-shadow: var(--ced-shadow);
  color: var(--ced-text-main);
}

.ced-single-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ced-primary);
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ced-bg-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   Información de Contacto (Phone, Email, Website)
   ========================================================================== */
.ced-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.ced-contact-item {
  background: var(--ced-bg-subtle);
  border: 1px solid var(--ced-border);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ced-contact-item:hover {
  transform: translateY(-2px);
  border-color: var(--ced-accent);
}

.ced-contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--ced-text-muted);
}

.ced-contact-item a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ced-accent);
  text-decoration: none;
  word-break: break-word;
}

.ced-contact-item a:hover {
  color: var(--ced-accent-hover);
  text-decoration: underline;
}

/* ==========================================================================
   Ubicación / Dirección (Location)
   ========================================================================== */
.ced-location-box {
  background: var(--ced-bg-subtle);
  border-left: 4px solid var(--ced-accent);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ced-text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.ced-location-box::before {
  content: "📍";
  font-size: 1.25rem;
}

/* ==========================================================================
   Galería de Fotos (Photo Gallery)
   ========================================================================== */
.ced-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.ced-gallery-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  background: var(--ced-bg-subtle);
  border: 1px solid var(--ced-border);
}

.ced-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.ced-gallery-item:hover img {
  transform: scale(1.06);
}

/* ==========================================================================
   Video Responsivo (YouTube / Vimeo / oEmbed)
   ========================================================================== */
.ced-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Relación de aspecto 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}

.ced-video iframe,
.ced-video video,
.ced-video object,
.ced-video embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   Detalles y Especificaciones Técnicas
   ========================================================================== */
.ced-info-status {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  margin-bottom: 18px;
}

.ced-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px 24px;
  margin: 0;
}

.ced-detail-row {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ced-border);
}

.ced-detail-row dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: var(--ced-text-muted);
  margin-bottom: 4px;
}

.ced-detail-row dd {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ced-text-main);
  line-height: 1.5;
}

/* ==========================================================================
   Documentos Técnicos
   ========================================================================== */
.ced-document-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.ced-document-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--ced-bg-subtle);
  border: 1px solid var(--ced-border);
  border-radius: 8px;
  color: var(--ced-primary);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.ced-document-list li a::before {
  content: "📄";
  font-size: 1.2rem;
}

.ced-document-list li a:hover {
  background: var(--ced-accent);
  color: #ffffff;
  border-color: var(--ced-accent);
}